aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMitch Bradley <wmb@firmworks.com>2016-10-29 08:52:11 -1000
committerMitch Bradley <wmb@firmworks.com>2016-10-29 08:52:11 -1000
commit23357c646d8134e5842a581922cfcd1c28aedccd (patch)
tree32371a4e21667bd27d1c72aa3ac6279240ef66d6
parentc5a74e6bb2d6e062ee5d4d14f5a2e599b29661a2 (diff)
downloadcforth-23357c646d8134e5842a581922cfcd1c28aedccd.tar.gz
Fix T16 compilation
A recent change broke the compilation of versions that use T16 token encoding to save space. That change increased the default dictionary size to a larger value than T16 encoding can handle. This fix ensures sets the default dictionary size, when using T16, to the max value possible for T16.
-rwxr-xr-xsrc/cforth/config.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cforth/config.h b/src/cforth/config.h
index 9473af6..b209655 100755
--- a/src/cforth/config.h
+++ b/src/cforth/config.h
@@ -129,6 +129,10 @@ typedef token_t *xt_t;
#define MAXVARS 0x300
#define MAXUSER (MAXVARS * sizeof(cell))
+#if !defined(MAXDICT) && defined(T16)
+ #define MAXDICT (0x1fffcL) /* The extent of token-space reach */
+#endif
+
#ifndef MAXDICT
#ifdef BITS64
#define MAXDICT (0x80000L)