Skip to content

Commit

Permalink
yyerror: no - filename, no ending dot (for easier pasting)
Browse files Browse the repository at this point in the history
  • Loading branch information
Reini Urban committed Apr 18, 2013
1 parent f9a9ec6 commit 4a50614
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion syn/compile.c
Expand Up @@ -635,7 +635,10 @@ YY_LOCAL(void) yyerror(struct _GREG *G, char *message)\n\
fputc('\\\"', stderr);\n\
}\n\
}\n\
fprintf(stderr, \" at %s:%d.\\n\", G->filename, G->lineno);\n\
if (!strcmp(\"-\", G->filename))\n\
fprintf(stderr, \" at line %d\\n\", G->lineno);\n\
else\n\
fprintf(stderr, \" at %s:%d\\n\", G->filename, G->lineno);\n\
exit(1);\n\
}\n\
\n\
Expand Down

0 comments on commit 4a50614

Please sign in to comment.