Package: flex

Version: 2.5.37

Maintainer: Manoj Srivastava <sriva...@debian.org>
Description: flex --noline outputs a #line directive

The command
   flex --noline name.lex 

generates the line
   #line 3 "lex.yy.c"

This causes some confusion when:
1: line 3 is really line 2, and,
2: when (in order to compile using C++) the file has
   been renamed to (something like) lex.yy.cpp causing
   error messages to specify file lex.yy.c instead of
   lex.yy.cpp (or some other name).

This is an issue in that 'hand-fixing' generated code errors raises some issues 
with maintenance. In a clean build given to a build team separate from the 
development team it is undesirable to provide 'special' hand-wringing changes 
to code. It is much better to give it to them and let it rip. 

This is not a critical bug (obviously). But if you can get around to removing 
the unnecessary #line in the next release it would be appreciated.

By-the-by, the renaming was done because I had a devil of a problem with 
compiling the generated %option C++ file. Rather than debug the output to 
discover the underlying nature of the problem, I renamed the file.

And lest you think this a tedious and ill-conceived "attack" on the developers, 
it is not. You are all doing a great job on an outstanding product, my lack of 
knowledge and expertise notwithstanding.

art



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to