This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
CPP outputs wrong number of newlines sometimes
- To: gcc at gcc dot gnu dot org
- Subject: CPP outputs wrong number of newlines sometimes
- From: Jamie Lokier <egcs at tantalophile dot demon dot co dot uk>
- Date: Mon, 25 Sep 2000 21:59:10 +0200
Try this example on the current cpp:
"food
glorious
food
food
food"
"Hello"
The output is this:
"food
glorious
food
food
food"
"Hello"
The line number is not properly maintained when the multi-line string is
printed. Something similar happens with multi-line comments when -C is
used.
-- Jamie