diff options
author | Maria Matejka <mq@ucw.cz> | 2022-11-07 10:28:01 +0100 |
---|---|---|
committer | Maria Matejka <mq@ucw.cz> | 2022-11-07 10:28:01 +0100 |
commit | 7bbd0b5a3b670cfbe72df21054465b71a632962f (patch) | |
tree | 5b1ca17e997224af1f5837b5ef2b1900366ea1dd /conf/conf.h | |
parent | 40bae8e1b788a535466ac673629fc93b6a258576 (diff) | |
parent | 37b644413723670928f6b54f2abe0c852eb0b652 (diff) |
Merge commit '37b64441' into thread-next
Diffstat (limited to 'conf/conf.h')
-rw-r--r-- | conf/conf.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/conf/conf.h b/conf/conf.h index ffefa519..ce4a3c5a 100644 --- a/conf/conf.h +++ b/conf/conf.h @@ -96,7 +96,7 @@ void order_shutdown(int gr); /* Pools */ - +extern pool *config_pool; extern linpool *cfg_mem; #define cfg_alloc(size) lp_alloc(cfg_mem, size) @@ -137,6 +137,7 @@ struct sym_scope { uint slots; /* Variable slots */ byte active; /* Currently entered */ + byte block; /* No independent stack frame */ byte soft_scopes; /* Number of soft scopes above */ }; @@ -232,6 +233,12 @@ void cf_pop_scope(void); void cf_push_soft_scope(void); void cf_pop_soft_scope(void); +static inline void cf_push_block_scope(void) +{ cf_push_scope(NULL); conf_this_scope->block = 1; } + +static inline void cf_pop_block_scope(void) +{ ASSERT(conf_this_scope->block); cf_pop_scope(); } + char *cf_symbol_class_name(struct symbol *sym); /* Parser */ |