From 7d6f193908a0b277a5b44f0d22651dccec033b70 Mon Sep 17 00:00:00 2001 From: John Fultz Date: Mon, 2 Nov 2015 13:35:10 -0600 Subject: Add interface for generating gaddags. I wanted to throw this in a background thread, and I will, but for now, we need to get something out the door, and this seems sensible anyway. Couple of other bug fixes... * Add a copyright. * Popup menu says "Add new lexica..." but should say "Add new lexicon...". * Copyrights were refusing to wordwrap, thus forcing the settings pane to be wide. --- quackleio/gaddagfactory.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'quackleio') diff --git a/quackleio/gaddagfactory.h b/quackleio/gaddagfactory.h index 3017085..a7289db 100644 --- a/quackleio/gaddagfactory.h +++ b/quackleio/gaddagfactory.h @@ -22,6 +22,10 @@ #include #include "flexiblealphabet.h" +// This isn't a strict maximum...you can go higher...but too much higher, and you risk overflowing +// node pointers, which will get you garbage words. The OSPS dictionary is known to trigger +// such overflows. +const int QUACKLE_MAX_GADDAG_WORDCOUNT = 500000; class GaddagFactory { public: -- cgit v1.2.3