From b79455e0d24690f5bdb0fc3f78376f2249289f1c Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Fri, 14 May 2004 18:35:51 +0000 Subject: r738: Use same error message format as is used by compilers when reporting syntax errors (some editors parse these strings and jump to the erroneous line directly) (This used to be commit 6857efacccb1af69abd46e8867a0b4b3c26801db) --- source4/build/pidl/idl.pm | 2 +- source4/build/pidl/idl.yp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'source4/build/pidl') diff --git a/source4/build/pidl/idl.pm b/source4/build/pidl/idl.pm index ee7fd8d9cf..e469c0fdc8 100644 --- a/source4/build/pidl/idl.pm +++ b/source4/build/pidl/idl.pm @@ -1917,7 +1917,7 @@ sub _Error { my $last_token = $_[0]->YYData->{LAST_TOKEN}; my $file = $_[0]->YYData->{INPUT_FILENAME}; - print "Syntax error at $file:$line near '$last_token'\n"; + print "$file:$line: Syntax error near '$last_token'\n"; } sub _Lexer($) diff --git a/source4/build/pidl/idl.yp b/source4/build/pidl/idl.yp index 93446dc8c1..cb293de272 100644 --- a/source4/build/pidl/idl.yp +++ b/source4/build/pidl/idl.yp @@ -247,7 +247,7 @@ sub _Error { my $last_token = $_[0]->YYData->{LAST_TOKEN}; my $file = $_[0]->YYData->{INPUT_FILENAME}; - print "Syntax error at $file:$line near '$last_token'\n"; + print "$file:$line: Syntax error near '$last_token'\n"; } sub _Lexer($) -- cgit