]> granicus.if.org Git - icinga2/commitdiff
Regenerated parser.
authorGunnar Beutner <gunnar.beutner@netways.de>
Thu, 31 May 2012 08:16:32 +0000 (10:16 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Thu, 31 May 2012 08:16:32 +0000 (10:16 +0200)
dyn/config_parser.cc
dyn/config_parser.yy
dyn/configcontext.h
dyntest/Makefile.am
dyntest/dyntest.cpp

index 3864ba15be993225390b02886e78c91112016d73..a03cc1289595aa5de30e8ad668577645f625903b 100644 (file)
@@ -186,12 +186,19 @@ void yyerror(YYLTYPE *locp, ConfigContext *context, const char *err)
        throw runtime_error(message.str());
 }
 
+int yyparse(ConfigContext *context);
+
+void ConfigContext::Compile(void)
+{
+       yyparse(this);
+}
+
 #define scanner (context->GetScanner())
 
 
 
 /* Line 343 of yacc.c  */
-#line 195 "config_parser.cc"
+#line 202 "config_parser.cc"
 
 #ifdef short
 # undef short
@@ -490,10 +497,10 @@ static const yytype_int8 yyrhs[] =
 /* YYRLINE[YYN] -- source line where rule number YYN was defined.  */
 static const yytype_uint8 yyrline[] =
 {
-       0,    54,    54,    55,    58,    58,    61,    64,    65,    68,
-      71,    72,    75,    76,    79,    80,    83,    84,    87,    90,
-      91,    92,    95,    98,    98,    98,    98,   101,   104,   106,
-     107
+       0,    61,    61,    62,    65,    65,    68,    71,    72,    75,
+      78,    79,    82,    83,    86,    87,    90,    91,    94,    97,
+      98,    99,   102,   105,   105,   105,   105,   108,   111,   113,
+     114
 };
 #endif
 
@@ -1498,7 +1505,7 @@ yyreduce:
       
 
 /* Line 1806 of yacc.c  */
-#line 1502 "config_parser.cc"
+#line 1509 "config_parser.cc"
       default: break;
     }
   /* User semantic actions sometimes alter yychar, and that requires
@@ -1736,6 +1743,6 @@ yyreturn:
 
 
 /* Line 2067 of yacc.c  */
-#line 109 "config_parser.yy"
+#line 116 "config_parser.yy"
 
 
index bdce167c87864eec35614745bae9c706e8fe9dc0..0ff18e9db629c17fe4e5038b0e7aff6a425da306 100644 (file)
@@ -46,6 +46,13 @@ void yyerror(YYLTYPE *locp, ConfigContext *context, const char *err)
        throw runtime_error(message.str());
 }
 
+int yyparse(ConfigContext *context);
+
+void ConfigContext::Compile(void)
+{
+       yyparse(this);
+}
+
 #define scanner (context->GetScanner())
 
 %}
index 6dca6f9ec6ec9ee10b944dc4587df3571eba60fc..d040a816b56d902ca7094042c1e1ff0cdb8f3c55 100644 (file)
@@ -29,6 +29,8 @@ public:
        ConfigContext(istream *input = &cin);
        virtual ~ConfigContext(void);
 
+       void Compile(void);
+
        size_t ReadInput(char *buffer, size_t max_bytes);
        void *GetScanner(void) const;
 
@@ -42,6 +44,4 @@ private:
 
 }
 
-int yyparse(icinga::ConfigContext *context);
-
 #endif /* CONFIGCONTEXT_H */
index 3c271c109a49aea596b9454e0748b77d3f67bf56..8dcdc755c03bd34fa90f46a29899672b461756f7 100644 (file)
@@ -12,9 +12,6 @@ dyntest_CPPFLAGS = \
        $(BOOST_CPPFLAGS) \
        -I${top_srcdir}/base \
        -I${top_srcdir}/dyn \
-       -I${top_srcdir}/jsonrpc \
-       -I${top_srcdir}/icinga \
-       -I${top_srcdir}/components/configfile \
        -I${top_srcdir}
 
 dyntest_LDFLAGS = \
@@ -22,5 +19,4 @@ dyntest_LDFLAGS = \
 
 dyntest_LDADD = \
        ${top_builddir}/base/libbase.la \
-       ${top_builddir}/dyn/libdyn.la \
-       ${top_builddir}/components/configfile/configfile.la
+       ${top_builddir}/dyn/libdyn.la
index 3ad489a210edda69e92e678bcc4088b409064ff7..68b0733de456a691f0a23749230784e468cf2767 100644 (file)
@@ -1,4 +1,4 @@
-#include <i2-configfile.h>
+#include <i2-dyn.h>
 
 using namespace icinga;