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
commit51e5d6643fa63478a4ddc1a0ec5570879675ae11 (patch)
treee30ac0d110ebd0f909e5883a514d5972e7f375a5
parent2428eb747884ff3e99ff2a4692d0424092b60b78 (diff)
downloadtxr-51e5d6643fa63478a4ddc1a0ec5570879675ae11.tar.gz
txr-51e5d6643fa63478a4ddc1a0ec5570879675ae11.tar.bz2
txr-51e5d6643fa63478a4ddc1a0ec5570879675ae11.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;