diff --git a/components/configfile/.gitignore b/components/configfile/.gitignore new file mode 100644 index 000000000..f76429b0f --- /dev/null +++ b/components/configfile/.gitignore @@ -0,0 +1,3 @@ +icinga_lexer.cc +icinga_parser.cc +icinga_parser.h diff --git a/components/configfile/icinga_lexer.ll b/components/configfile/icinga_lexer.ll index e15183bfb..36af88fc6 100644 --- a/components/configfile/icinga_lexer.ll +++ b/components/configfile/icinga_lexer.ll @@ -1,7 +1,7 @@ %{ #include #include "configcontext.h" -#include "icinga.tab.h" +#include "icinga_parser.h" #define YY_EXTRA_TYPE ConfigContext * #define YY_USER_ACTION yylloc->first_line = yylineno; @@ -14,7 +14,6 @@ do { \ %} %option reentrant noyywrap yylineno -%option prefix="icinga" %option bison-bridge bison-locations %x IN_C_COMMENT diff --git a/components/configfile/icinga_parser.yy b/components/configfile/icinga_parser.yy index fc6adb1a6..744172ec9 100644 --- a/components/configfile/icinga_parser.yy +++ b/components/configfile/icinga_parser.yy @@ -1,5 +1,4 @@ %pure-parser -%name-prefix="icinga" %locations %defines @@ -32,9 +31,9 @@ #include #include "configcontext.h" -int icingalex(YYSTYPE *lvalp, YYLTYPE *llocp, void *scanner); +int yylex(YYSTYPE *lvalp, YYLTYPE *llocp, void *scanner); -void icingaerror(YYLTYPE *locp, ConfigContext *context, const char *err) +void yyerror(YYLTYPE *locp, ConfigContext *context, const char *err) { std::cout << locp->first_line << ":" << locp->first_column << "-"