From: Nick Bowler Date: Tue, 12 Jul 2011 22:20:12 +0000 (-0400) Subject: Fix yyerror's signature. X-Git-Tag: v1~135 X-Git-Url: https://git.draconx.ca/gitweb/cdecl99.git/commitdiff_plain/55bdf89305c086f1eb4c0d1b96f2a621ec1027e9 Fix yyerror's signature. This only worked because we ignore those parameters. --- diff --git a/src/parse.y b/src/parse.y index 706bdd8..c76bc65 100644 --- a/src/parse.y +++ b/src/parse.y @@ -54,7 +54,7 @@ } %code provides { -void yyerror(YYLTYPE *, struct cdecl **, void *, const char *); +void yyerror(YYLTYPE *, void *, struct cdecl **, const char *); int yyparse(void *scanner, struct cdecl **out); } @@ -386,7 +386,8 @@ direct_declarator: { %% void -yyerror(YYLTYPE *loc, struct cdecl **out, yyscan_t scanner, const char *err) +yyerror(YYLTYPE *loc, yyscan_t scanner, struct cdecl **out, + const char *err) { if (strstr(err, "T_LEX_ERROR")) return;