]> git.draconx.ca Git - cdecl99.git/blobdiff - src/parse.y
Fix yyerror's signature.
[cdecl99.git] / src / parse.y
index 706bdd819a6bd914660c46d114ef5643c354f73d..c76bc65035fd6b88d72a4d9c2c8b058a2d157a66 100644 (file)
@@ -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;