Add test and fix bugs with multiple token-pasting on the same line.
authorCarl Worth <cworth@cworth.org>
Sat, 29 May 2010 12:54:19 +0000 (05:54 -0700)
committerCarl Worth <cworth@cworth.org>
Sat, 29 May 2010 12:54:19 +0000 (05:54 -0700)
commitb06096e86eda1257769156523b5738044c6a2b10
treee6b3ec4a83073f512fe73e4f2e8efe26aa43a2a0
parent631016946ca8134244c4e58bef6863d204b1119b
Add test and fix bugs with multiple token-pasting on the same line.

The list replacement when token pasting was broken, (failing to
properly update the list's tail pointer). Also, memory management when
pasting was broken, (modifying the original token's string which would
cause problems with multiple calls to a macro which pasted a literal
string). We didn't catch this with previous tests because they only
pasted argument values.
glcpp-parse.y
tests/072-token-pasting-same-line.c [new file with mode: 0644]