Skip to content

Commit

Permalink
Fix mismatched declaration of yyerror function.
Browse files Browse the repository at this point in the history
  • Loading branch information
kblaschke committed Nov 11, 2023
1 parent 04e91f1 commit f140ac5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion projectm-eval/Compiler.h
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ int prjm_eval_parse (prjm_eval_compiler_context_t* cctx, yyscan_t scanner);
int yylex(YYSTYPE* yylval_param, YYLTYPE* yylloc_param, prjm_eval_compiler_context_t* cctx, yyscan_t yyscanner)
YY_DECL;

int yyerror(YYLTYPE* yyllocp, prjm_eval_compiler_context_t* cctx, yyscan_t yyscanner, const char* message);
void yyerror(YYLTYPE* yyllocp, prjm_eval_compiler_context_t* cctx, yyscan_t yyscanner, const char* message);


#endif /* !YY_PRJM_EVAL_COMPILER_H_INCLUDED */
2 changes: 1 addition & 1 deletion projectm-eval/Compiler.y
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ typedef void* yyscan_t;
int yylex(YYSTYPE* yylval_param, YYLTYPE* yylloc_param, prjm_eval_compiler_context_t* cctx, yyscan_t yyscanner)
YY_DECL;

int yyerror(YYLTYPE* yyllocp, prjm_eval_compiler_context_t* cctx, yyscan_t yyscanner, const char* message);
void yyerror(YYLTYPE* yyllocp, prjm_eval_compiler_context_t* cctx, yyscan_t yyscanner, const char* message);
}

/* Token declarations */
Expand Down

0 comments on commit f140ac5

Please sign in to comment.