Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions test/compare_parsers/ansic.y
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

%{
#define YYSTYPE string_t
int yyerror(char* s);
%}

%token IDENTIFIER CONSTANT STRING_LITERAL SIZEOF
Expand Down Expand Up @@ -471,8 +472,7 @@ identifier
extern int column;
extern int line;

yyerror(s)
char *s;
int yyerror(char* s)
{
fprintf (stderr, "syntax error line - %d, column - %d\n", line, column + 1);
}
2 changes: 1 addition & 1 deletion test/compare_parsers/test_yaep.c
Original file line number Diff line number Diff line change
Expand Up @@ -827,7 +827,7 @@ static const char *description =
#include <unistd.h>
#endif

main (int argc, char **argv)
int main (int argc, char **argv)
{
ticker_t t;
int code, ambiguous_p;
Expand Down
3 changes: 2 additions & 1 deletion test/compare_parsers/test_yyparse.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ static int level = 0;

#include "test_common.c"

extern int get_lex (void);
#define yylex get_lex
#include "y.tab.c"
#undef yylex
Expand Down Expand Up @@ -100,7 +101,7 @@ static void store_lexs( YaepAllocator * alloc ) {
}
}

main()
int main()
{
ticker_t t;
int code;
Expand Down