diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2019-09-04 06:53:49 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2019-09-04 06:53:49 -0700 |
commit | c5ed63758375f0f5f15f5055d78a9933bd8fa3d1 (patch) | |
tree | e30ac0d110ebd0f909e5883a514d5972e7f375a5 | |
parent | f6c24e7d02d69e4052baf40bfc63e8aae509b269 (diff) | |
download | txr-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.h | 2 | ||||
-rw-r--r-- | struct.c | 1 |
2 files changed, 1 insertions, 2 deletions
@@ -124,8 +124,6 @@ struct string { val alloc; }; -#define SLOT_CACHE_SIZE 8 - typedef struct { cnum id; cnum slot; @@ -60,6 +60,7 @@ #define STATIC_SLOT_BASE 0x10000000 +#define SLOT_CACHE_SIZE 8 struct stslot { val home_type; |