Code

Declare sdb_fe_yyparse() in parser.h.
authorSebastian Harl <sh@tokkee.org>
Tue, 31 Dec 2013 00:23:01 +0000 (01:23 +0100)
committerSebastian Harl <sh@tokkee.org>
Tue, 31 Dec 2013 00:23:01 +0000 (01:23 +0100)
Apparently, older versions of bison do not include the function prototype in
the generated header file. Double-declarations don't hurt (as long as they
match).

src/include/frontend/parser.h

index b942248b6a175d15d68d5f2ca2d378d89c2eeabe..5491e9cac7778c24047ebb71896cdedf44b5781a 100644 (file)
@@ -41,6 +41,9 @@ sdb_fe_scanner_init(const char *str);
 void
 sdb_fe_scanner_destroy(sdb_fe_yyscan_t scanner);
 
+int
+sdb_fe_yyparse(sdb_fe_yyscan_t scanner);
+
 #ifdef __cplusplus
 } /* extern "C" */
 #endif