X-Git-Url: https://git.draconx.ca/gitweb/cdecl99.git/blobdiff_plain/3df85155e2dbf9307dd64bd222bf74389c45a75c..b36da52d0e7798814d23cdc9979fc1900f8e9e51:/src/parse.y diff --git a/src/parse.y b/src/parse.y index 5bcd9a9..9c644da 100644 --- a/src/parse.y +++ b/src/parse.y @@ -19,7 +19,7 @@ } %name-prefix "cdecl__yy" -%parse-param {yyscan_t scanner} +%parse-param {void *scanner} %parse-param {struct cdecl **out} %lex-param {yyscan_t scanner} %define api.pure @@ -57,6 +57,7 @@ } %code provides { +void cdecl__free(struct cdecl *); void cdecl__yyerror(YYLTYPE *, void *, struct cdecl **, const char *); int cdecl__yyparse(void *scanner, struct cdecl **out); } @@ -132,7 +133,7 @@ static void free_decl(struct cdecl *x) } } -void cdecl_free(struct cdecl *decl) +void cdecl__free(struct cdecl *decl) { free_decl(decl); } @@ -579,8 +580,7 @@ english_vla: T_IDENT | { %% void -yyerror(YYLTYPE *loc, yyscan_t scanner, struct cdecl **out, - const char *err) +yyerror(YYLTYPE *loc, yyscan_t scanner, struct cdecl **out, const char *err) { if (strstr(err, "T_LEX_ERROR")) return;