summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorJan Maria Matejka <mq@ucw.cz>2018-06-26 14:29:03 +0200
committerJan Maria Matejka <mq@ucw.cz>2018-06-26 14:29:03 +0200
commitf851f0d7e30cbd1e2ba20a5bf06a584acc136828 (patch)
treed9f5b0fb7df29698ed34821d37486e55d4061ace /filter
parent1771f70d7473b8c8e0c6bd47d5c35cc5fbe7eb19 (diff)
Config: Dropping CF_ADDTO.
Diffstat (limited to 'filter')
-rw-r--r--filter/config.Y15
1 files changed, 4 insertions, 11 deletions
diff --git a/filter/config.Y b/filter/config.Y
index cf499b66..bbb8a640 100644
--- a/filter/config.Y
+++ b/filter/config.Y
@@ -438,7 +438,7 @@ CF_KEYWORDS(FUNCTION, PRINT, PRINTN, UNSET, RETURN,
CF_GRAMMAR
-CF_ADDTO(conf, filter_def)
+conf: filter_def ;
filter_def:
FILTER SYM { $2 = cf_define_symbol($2, SYM_FILTER, NULL); cf_push_scope( $2 ); }
filter_body {
@@ -449,12 +449,12 @@ filter_def:
}
;
-CF_ADDTO(conf, filter_eval)
+conf: filter_eval ;
filter_eval:
EVAL term { f_eval_int($2); }
;
-CF_ADDTO(conf, bt_test_suite)
+conf: bt_test_suite ;
bt_test_suite:
BT_TEST_SUITE '(' SYM ',' text ')' {
if (!($3->class & SYM_FUNCTION))
@@ -588,7 +588,7 @@ function_body:
}
;
-CF_ADDTO(conf, function_def)
+conf: function_def ;
function_def:
FUNCTION SYM { DBG( "Beginning of function %s\n", $2->name );
$2 = cf_define_symbol($2, SYM_FUNCTION, NULL);
@@ -804,13 +804,6 @@ constructor:
;
-/*
- * Maybe there are no dynamic attributes defined by protocols.
- * For such cases, we force the dynamic_attr list to contain
- * at least an invalid token, so it is syntantically correct.
- */
-CF_ADDTO(dynamic_attr, INVALID_TOKEN { $$ = (struct f_dynamic_attr) {}; })
-
rtadot: /* EMPTY, we are not permitted RTA. prefix */
;