From: Sebastian Harl Date: Sun, 23 Feb 2014 04:41:11 +0000 (-0800) Subject: frontend, liboconfig: Added missing prototypes for yylex/yyparse. X-Git-Tag: sysdb-0.1.0~184 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=6aac7e41c75b385673e3492e7e3c7548d2d7ca29;p=sysdb.git frontend, liboconfig: Added missing prototypes for yylex/yyparse. --- diff --git a/src/frontend/grammar.y b/src/frontend/grammar.y index 876f48a..8b2a8bf 100644 --- a/src/frontend/grammar.y +++ b/src/frontend/grammar.y @@ -36,6 +36,9 @@ #include +int +sdb_fe_yylex(YYSTYPE *yylval, YYLTYPE *yylloc, sdb_fe_yyscan_t yyscanner); + sdb_fe_yyextra_t * sdb_fe_yyget_extra(sdb_fe_yyscan_t scanner); diff --git a/src/liboconfig/oconfig.c b/src/liboconfig/oconfig.c index 427f957..1f7093d 100644 --- a/src/liboconfig/oconfig.c +++ b/src/liboconfig/oconfig.c @@ -25,6 +25,7 @@ #include "oconfig.h" extern FILE *yyin; +int yyparse (void); oconfig_item_t *ci_root; const char *c_file; diff --git a/src/liboconfig/parser.y b/src/liboconfig/parser.y index 19f58b2..469509d 100644 --- a/src/liboconfig/parser.y +++ b/src/liboconfig/parser.y @@ -29,6 +29,9 @@ static int yyerror (const char *s); extern int yylineno; extern char *yytext; +/* Lexer functions */ +int yylex (void); + extern oconfig_item_t *ci_root; extern char *c_file; %}