summaryrefslogtreecommitdiff
path: root/quackleio
diff options
context:
space:
mode:
authorJohn Fultz <jfultz@wolfram.com>2015-11-02 13:35:10 -0600
committerJohn Fultz <jfultz@wolfram.com>2015-11-02 13:36:32 -0600
commit7d6f193908a0b277a5b44f0d22651dccec033b70 (patch)
tree73b8817e3e3ba2dc99eeec8c56c4d61e47bc09ac /quackleio
parent00a4b2a209ce4b90f4dca4d98b964853ce3196ff (diff)
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.
Diffstat (limited to 'quackleio')
-rw-r--r--quackleio/gaddagfactory.h4
1 files changed, 4 insertions, 0 deletions
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 <cstdint>
#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: