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

View file

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