summaryrefslogtreecommitdiff
path: root/conf/conf.h
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2023-06-13 11:09:41 +0200
committerOndrej Zajicek <santiago@crfreenet.org>2023-09-12 15:36:53 +0200
commit6b95353ebdaa724252492f941ebe75f80e9e545a (patch)
tree75d59bd4237b9b9ced3ffb26c43c5e8c0203dcfc /conf/conf.h
parent51f2e7afaf069508685281e8c1b8bb1ceda79d8f (diff)
Conf: Allowing conf scope to be explicitly read only
Diffstat (limited to 'conf/conf.h')
-rw-r--r--conf/conf.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/conf/conf.h b/conf/conf.h
index ec8c97e8..8558fcba 100644
--- a/conf/conf.h
+++ b/conf/conf.h
@@ -137,9 +137,10 @@ struct sym_scope {
HASH(struct symbol) hash; /* Local symbol hash */
uint slots; /* Variable slots */
- byte active; /* Currently entered */
- byte block; /* No independent stack frame */
byte soft_scopes; /* Number of soft scopes above */
+ byte active:1; /* Currently entered */
+ byte block:1; /* No independent stack frame */
+ byte readonly:1; /* Do not add new symbols */
};
extern struct sym_scope *global_root_scope;