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
|
void
|
||||||
yyerror (const char *s)
|
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);
|
int yylex (void);
|
||||||
|
|
|
@ -917,10 +917,8 @@ Options: \n\
|
||||||
s_file = ReuseString (filename);
|
s_file = ReuseString (filename);
|
||||||
pr_source_line = 1;
|
pr_source_line = 1;
|
||||||
clear_frame_macros ();
|
clear_frame_macros ();
|
||||||
if (yyparse ()) {
|
if (yyparse ())
|
||||||
printf ("%s\n", filename);
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
|
||||||
fclose (yyin);
|
fclose (yyin);
|
||||||
#else
|
#else
|
||||||
char *src2;
|
char *src2;
|
||||||
|
|
Loading…
Reference in a new issue