summaryrefslogtreecommitdiffstats
path: root/src/config.y
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2012-03-24 23:10:10 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2012-03-24 23:10:10 +0100
commit0b61ebf351a69a3451727254eec2c7e1cc024b4c (patch)
tree05b656fad541547b812193bc69061dd0d0b8059c /src/config.y
parent01683df316a73475ff59b665a3652718b55ac519 (diff)
downloadfastd-0b61ebf351a69a3451727254eec2c7e1cc024b4c.tar
fastd-0b61ebf351a69a3451727254eec2c7e1cc024b4c.zip
Remove context argument from lexer call
Diffstat (limited to 'src/config.y')
-rw-r--r--src/config.y5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/config.y b/src/config.y
index c81b370..9a0d333 100644
--- a/src/config.y
+++ b/src/config.y
@@ -1,6 +1,5 @@
%define api.pure
%name-prefix "fastd_config_"
-%lex-param {fastd_context *ctx}
%lex-param {yyscan_t scanner}
%parse-param {fastd_context *ctx}
%parse-param {fastd_config *conf}
@@ -17,6 +16,8 @@
struct in6_addr addr6;
}
+%token <str> TOK_ERROR;
+
%token <num> TOK_INTEGER
%token <str> TOK_STRING
%token <str> TOK_IDENTIFIER
@@ -52,7 +53,7 @@
}
%code provides {
- #include <fastd.h>
+ #include <fastd.h>
int fastd_config_parse (fastd_context *ctx, fastd_config *conf, void *scanner);
}