summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2019-09-04 06:53:49 -0700
committerKaz Kylheku <kaz@kylheku.com>2019-09-04 06:53:49 -0700
commitc5ed63758375f0f5f15f5055d78a9933bd8fa3d1 (patch)
treee30ac0d110ebd0f909e5883a514d5972e7f375a5
parentf6c24e7d02d69e4052baf40bfc63e8aae509b269 (diff)
downloadtxr-c5ed63758375f0f5f15f5055d78a9933bd8fa3d1.tar.gz
txr-c5ed63758375f0f5f15f5055d78a9933bd8fa3d1.tar.bz2
txr-c5ed63758375f0f5f15f5055d78a9933bd8fa3d1.zip
structs: move SLOT_CACHE_SIZE macro.
Only struct.c refers to this symbol, and so only struct.c needs to be recompiled when someone experiments with different values. * lib.h (SLOT_CACHE_SIZE): Macro deleted here. * struct.c (SLOT_CACHE_SIZE): Macro moved here.
-rw-r--r--lib.h2
-rw-r--r--struct.c1
2 files changed, 1 insertions, 2 deletions
diff --git a/lib.h b/lib.h
index 403a18de..d960e5f4 100644
--- a/lib.h
+++ b/lib.h
@@ -124,8 +124,6 @@ struct string {
val alloc;
};
-#define SLOT_CACHE_SIZE 8
-
typedef struct {
cnum id;
cnum slot;
diff --git a/struct.c b/struct.c
index 27853839..faaa5aa9 100644
--- a/struct.c
+++ b/struct.c
@@ -60,6 +60,7 @@
#define STATIC_SLOT_BASE 0x10000000
+#define SLOT_CACHE_SIZE 8
struct stslot {
val home_type;