From 51e5d6643fa63478a4ddc1a0ec5570879675ae11 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Wed, 4 Sep 2019 06:53:49 -0700 Subject: 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. --- lib.h | 2 -- struct.c | 1 + 2 files changed, 1 insertion(+), 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; -- cgit v1.2.3