diff options
author | Martin Mares <mj@ucw.cz> | 1999-11-17 13:00:21 +0100 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 1999-11-17 13:00:21 +0100 |
commit | ffb59d243a350ed525850e864b38af0ecb0ffea5 (patch) | |
tree | c3fe6231d5cd814afc901bcf992c0967014e09fc /conf | |
parent | ea9bb932a31e5df14e3a1a5f580e62b6aedc0247 (diff) | |
download | bird-ffb59d243a350ed525850e864b38af0ecb0ffea5.tar bird-ffb59d243a350ed525850e864b38af0ecb0ffea5.zip |
Command line interface now works.
Diffstat (limited to 'conf')
-rw-r--r-- | conf/confbase.Y | 2 | ||||
-rw-r--r-- | conf/gen_parser.m4 | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/conf/confbase.Y b/conf/confbase.Y index bf4ed33..bc8f535 100644 --- a/conf/confbase.Y +++ b/conf/confbase.Y @@ -58,7 +58,7 @@ CF_GRAMMAR /* Basic config file structure */ config: conf_entries END { return 0; } - | CLI_MARKER cli_cmd END { return 0; } + | CLI_MARKER cli_cmd { return 0; } ; conf_entries: diff --git a/conf/gen_parser.m4 b/conf/gen_parser.m4 index d38df21..70f2c2e 100644 --- a/conf/gen_parser.m4 +++ b/conf/gen_parser.m4 @@ -42,7 +42,8 @@ m4_define(CF_ADDTO, `m4_define([[CF_rule_$1]],m4_ifdef([[CF_rule_$1]],CF_rule_$1 m4_define(CF_CLI, `m4_define([[CF_cmd]], cmd_[[]]m4_translit($1, [[ ]], _))DNL m4_divert(2)CF_KEYWORDS(m4_translit($1, [[ ]], [[,]])) m4_divert(3)CF_ADDTO(cli_cmd, CF_cmd) -CF_cmd: $1 ') +CF_cmd: $1 $2 END') +m4_define(CF_CLI_HELP, `') # ENUM declarations are ignored m4_define(CF_ENUM, `') |