summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>1998-12-06 18:39:08 +0100
committerMartin Mares <mj@ucw.cz>1998-12-06 18:39:08 +0100
commit0846203e896d8ab009217968e391b5e13ea3c4c6 (patch)
tree62d010c71567ee6862a91dde6eab6fceb2762a6a
parent166b9c4912f1a52d7910c630280cf5a076eb1990 (diff)
downloadbird-0846203e896d8ab009217968e391b5e13ea3c4c6.tar
bird-0846203e896d8ab009217968e391b5e13ea3c4c6.zip
Fixed bug in CF_ADDTO. How it's possible it has ever worked?
-rw-r--r--conf/gen_parser.m42
1 files changed, 1 insertions, 1 deletions
diff --git a/conf/gen_parser.m4 b/conf/gen_parser.m4
index 23db068..a08b330 100644
--- a/conf/gen_parser.m4
+++ b/conf/gen_parser.m4
@@ -37,7 +37,6 @@ m4_define(CF_KEYWORDS, `m4_define([[CF_toks]],[[]])CF_iterate([[CF_keywd]], [[$@
m4_define(CF_dyn_rules,)
m4_define(CF_ADDTO, `m4_define([[CF_rule_$1]],m4_ifdef([[CF_rule_$1]],CF_rule_$1 | ,[[m4_define([[CF_dyn_rules]],CF_dyn_rules[[CF_RULE($1)
]])]])$2)DNL')
-m4_define(CF_RULE, `$1: CF_rule_$1')
# After all configuration templates end, we finally generate the grammar file.
m4_m4wrap(`
@@ -53,6 +52,7 @@ m4_undivert(3)DNL
/* Dynamic rules */
+m4_define(CF_RULE, [[$1: CF_rule_$1 ;]])
CF_dyn_rules
%%
m4_undivert(4)DNL