summaryrefslogtreecommitdiff
path: root/conf
diff options
context:
space:
mode:
authorJan Maria Matejka <mq@ucw.cz>2019-05-21 16:33:37 +0000
committerJan Maria Matejka <mq@ucw.cz>2019-05-21 16:33:37 +0000
commit96d757c13fe4b2e21b265275af9ac7d1e2c3f075 (patch)
tree5a672d7d65d46591fc449486dd4c03d03d507a52 /conf
parent20c6ea70ccb69f3c1d9ca46cc7941eb686f283c6 (diff)
Filter: Store variables and function arguments on stack
Diffstat (limited to 'conf')
-rw-r--r--conf/conf.h3
-rw-r--r--conf/confbase.Y2
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;