mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
clean up error reporting a little
This commit is contained in:
parent
625915288c
commit
3fa3ab59a9
2 changed files with 2 additions and 4 deletions
|
@ -11,7 +11,7 @@ extern int pr_source_line;
|
|||
void
|
||||
yyerror (const char *s)
|
||||
{
|
||||
fprintf (stderr, "%d, %s %s\n", pr_source_line, yytext, s);
|
||||
fprintf (stderr, "%s:%d, %s %s\n", strings + s_file, pr_source_line, yytext, s);
|
||||
}
|
||||
|
||||
int yylex (void);
|
||||
|
|
|
@ -917,10 +917,8 @@ Options: \n\
|
|||
s_file = ReuseString (filename);
|
||||
pr_source_line = 1;
|
||||
clear_frame_macros ();
|
||||
if (yyparse ()) {
|
||||
printf ("%s\n", filename);
|
||||
if (yyparse ())
|
||||
return 1;
|
||||
}
|
||||
fclose (yyin);
|
||||
#else
|
||||
char *src2;
|
||||
|
|
Loading…
Reference in a new issue