From: Gunnar Beutner Date: Thu, 31 May 2012 07:49:12 +0000 (+0200) Subject: Regenerated parser. X-Git-Tag: v0.0.1~454 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=11536f51fdc170686837ed8258898af3b52b9647;p=icinga2 Regenerated parser. --- diff --git a/dyn/Makefile.am b/dyn/Makefile.am index 7987149bb..72ad1daa3 100644 --- a/dyn/Makefile.am +++ b/dyn/Makefile.am @@ -11,7 +11,7 @@ AM_YFLAGS = -d libdyn_la_SOURCES = \ configcontext.cpp \ configcontext.h \ - config_lexer.ll + config_lexer.ll \ config_parser.yy \ i2-dyn.h \ dynamicobject.cpp \ diff --git a/dyn/config_parser.cc b/dyn/config_parser.cc index 55d4656f0..3864ba15b 100644 --- a/dyn/config_parser.cc +++ b/dyn/config_parser.cc @@ -67,7 +67,7 @@ /* Line 268 of yacc.c */ -#line 71 "icinga_parser.cc" +#line 71 "config_parser.cc" /* Enabling traces. */ #ifndef YYDEBUG @@ -134,7 +134,7 @@ typedef union YYSTYPE { /* Line 293 of yacc.c */ -#line 10 "icinga_parser.yy" +#line 10 "config_parser.yy" char *text; int num; @@ -142,7 +142,7 @@ typedef union YYSTYPE /* Line 293 of yacc.c */ -#line 146 "icinga_parser.cc" +#line 146 "config_parser.cc" } YYSTYPE; # define YYSTYPE_IS_TRIVIAL 1 # define yystype YYSTYPE /* obsolescent; will be withdrawn */ @@ -166,9 +166,9 @@ typedef struct YYLTYPE /* Copy the second part of user declarations. */ /* Line 343 of yacc.c */ -#line 30 "icinga_parser.yy" +#line 30 "config_parser.yy" -#include "i2-configfile.h" +#include "i2-dyn.h" using namespace icinga; @@ -181,7 +181,7 @@ void yyerror(YYLTYPE *locp, ConfigContext *context, const char *err) message << locp->first_line << ":" << locp->first_column << "-" << locp->last_line << ":" << locp->last_column - << ": " << err << std::endl; + << ": " << err << endl; throw runtime_error(message.str()); } @@ -191,7 +191,7 @@ void yyerror(YYLTYPE *locp, ConfigContext *context, const char *err) /* Line 343 of yacc.c */ -#line 195 "icinga_parser.cc" +#line 195 "config_parser.cc" #ifdef short # undef short @@ -1498,7 +1498,7 @@ yyreduce: /* Line 1806 of yacc.c */ -#line 1502 "icinga_parser.cc" +#line 1502 "config_parser.cc" default: break; } /* User semantic actions sometimes alter yychar, and that requires @@ -1736,6 +1736,6 @@ yyreturn: /* Line 2067 of yacc.c */ -#line 109 "icinga_parser.yy" +#line 109 "config_parser.yy" diff --git a/dyn/config_parser.h b/dyn/config_parser.h index 4f4432db5..407779cf6 100644 --- a/dyn/config_parser.h +++ b/dyn/config_parser.h @@ -77,7 +77,7 @@ typedef union YYSTYPE { /* Line 2068 of yacc.c */ -#line 10 "icinga_parser.yy" +#line 10 "config_parser.yy" char *text; int num; @@ -85,7 +85,7 @@ typedef union YYSTYPE /* Line 2068 of yacc.c */ -#line 89 "icinga_parser.h" +#line 89 "config_parser.h" } YYSTYPE; # define YYSTYPE_IS_TRIVIAL 1 # define yystype YYSTYPE /* obsolescent; will be withdrawn */ diff --git a/dyn/config_parser.yy b/dyn/config_parser.yy index 0432255b9..bdce167c8 100644 --- a/dyn/config_parser.yy +++ b/dyn/config_parser.yy @@ -28,7 +28,7 @@ %token T_INHERITS %{ -#include "i2-configfile.h" +#include "i2-dyn.h" using namespace icinga;