diff options
author | Jan Maria Matejka <mq@ucw.cz> | 2019-05-21 16:33:37 +0000 |
---|---|---|
committer | Jan Maria Matejka <mq@ucw.cz> | 2019-05-21 16:33:37 +0000 |
commit | 96d757c13fe4b2e21b265275af9ac7d1e2c3f075 (patch) | |
tree | 5a672d7d65d46591fc449486dd4c03d03d507a52 /conf | |
parent | 20c6ea70ccb69f3c1d9ca46cc7941eb686f283c6 (diff) |
Filter: Store variables and function arguments on stack
Diffstat (limited to 'conf')
-rw-r--r-- | conf/conf.h | 3 | ||||
-rw-r--r-- | conf/confbase.Y | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/conf/conf.h b/conf/conf.h index f14c0e21..d88d9a44 100644 --- a/conf/conf.h +++ b/conf/conf.h @@ -116,7 +116,8 @@ struct symbol { const struct filter *filter; /* For SYM_FILTER */ struct rtable_config *table; /* For SYM_TABLE */ struct f_dynamic_attr *attribute; /* For SYM_ATTRIBUTE */ - struct f_val *val; /* For SYM_CONSTANT or SYM_VARIABLE */ + struct f_val *val; /* For SYM_CONSTANT */ + uint offset; /* For SYM_VARIABLE */ }; char name[0]; diff --git a/conf/confbase.Y b/conf/confbase.Y index e104e54f..9978aec8 100644 --- a/conf/confbase.Y +++ b/conf/confbase.Y @@ -70,7 +70,7 @@ CF_DECLS struct f_dynamic_attr fda; struct f_static_attr fsa; struct f_lval flv; - const struct f_line *fl; + struct f_line *fl; const struct filter *f; struct f_tree *e; struct f_trie *trie; |