aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShinya Sato <shinnya.sato@gmail.com>2022-03-03 21:17:36 +0900
committerShinya Sato <shinnya.sato@gmail.com>2022-03-03 21:17:36 +0900
commit350f8ee62029d4441ba08da9d96d0e15d5517b34 (patch)
tree826a732ecd23fab107f9ddd113188692f2cc8d97
parentf19a057cfcfd77c5567ff8d536db84a40037f10d (diff)
downloadinpla-350f8ee62029d4441ba08da9d96d0e15d5517b34.tar.gz
inpla-350f8ee62029d4441ba08da9d96d0e15d5517b34.zip
v0.8.1
-rw-r--r--src/config.h7
-rw-r--r--src/inpla.y2
2 files changed, 8 insertions, 1 deletions
diff --git a/src/config.h b/src/config.h
index 5d56177..0a46711 100644
--- a/src/config.h
+++ b/src/config.h
@@ -8,6 +8,13 @@
//#define FIXED_HEAP // The heap size is fixed. (Default)
+#ifdef EXPANDABLE_HEAP
+// HOOP_SIZE must be two to power
+#define HOOP_SIZE (1 << 18)
+#endif
+
+
+
/* Optimisation ------------------------------------
Comment out definitions if not needed.
diff --git a/src/inpla.y b/src/inpla.y
index 72d6e1f..ea533f0 100644
--- a/src/inpla.y
+++ b/src/inpla.y
@@ -586,7 +586,7 @@ int yyerror(char *s) {
// HOOP_SIZE must be power of two
//#define INIT_HOOP_SIZE (1 << 10)
-#define HOOP_SIZE (1 << 18)
+//#define HOOP_SIZE (1 << 18)
#define HOOP_SIZE_MASK ((HOOP_SIZE) -1)
typedef struct HoopList_tag {