From f167f706e0d60acb712ff59ddc005facff75c85b Mon Sep 17 00:00:00 2001 From: Vladimir Prus Date: Fri, 23 Jan 2004 14:16:29 +0000 Subject: [PATCH] Fix file:line printing so that Emacs and other tools are not confused. Patch from Samuel Krempp. [SVN r21887] --- historic/jam/src/scan.c | 2 +- jam_src/scan.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/historic/jam/src/scan.c b/historic/jam/src/scan.c index 2839ed313..b6943228c 100644 --- a/historic/jam/src/scan.c +++ b/historic/jam/src/scan.c @@ -65,7 +65,7 @@ void yyerror( char *s ) { if( incp ) - printf( "%s: line %d: ", incp->fname, incp->line ); + printf( "%s:%d: ", incp->fname, incp->line ); printf( "%s at %s\n", s, symdump( &yylval ) ); diff --git a/jam_src/scan.c b/jam_src/scan.c index 2839ed313..b6943228c 100644 --- a/jam_src/scan.c +++ b/jam_src/scan.c @@ -65,7 +65,7 @@ void yyerror( char *s ) { if( incp ) - printf( "%s: line %d: ", incp->fname, incp->line ); + printf( "%s:%d: ", incp->fname, incp->line ); printf( "%s at %s\n", s, symdump( &yylval ) );