|
From: Olly B. <ol...@su...> - 2006-02-08 00:23:35
|
I've noticed some cases where the line numbers SWIG reports in
diagnostics are incorrect. However, I can't follow the code in the
parser which handles line numbers so I'm trying to produce a small
testcase to help someone else. If it's a known problem let me know and
I'll stop trying - I couldn't see it in the bug or patch tracker though.
But en route, I found another line number related oddity. Process this
with CVS swig using "swig -python lineno.i":
%module lineno
syntax error!
And you get:
lineno.i:2: Error: Syntax error in input(1).
lineno.i:6: Error: Missing semicolon. Reached end of input.
The second error message claims to be at line 6, but the file only
has 2 lines!
Cheers,
Olly
|