clean up error reporting a little

This commit is contained in:
Bill Currie 2001-06-25 23:42:49 +00:00
parent 625915288c
commit 3fa3ab59a9
2 changed files with 2 additions and 4 deletions

View File

@ -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);

View File

@ -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;