Perform macro by replacing tokens in original list.
authorCarl Worth <cworth@cworth.org>
Fri, 28 May 2010 22:06:02 +0000 (15:06 -0700)
committerCarl Worth <cworth@cworth.org>
Fri, 28 May 2010 22:10:27 +0000 (15:10 -0700)
commit681afbc855c86df8c3521ccdfadb7f16b9729baa
treee45f5bf4bc3eb0768fcdc47fea7c97a2b0eab329
parent3c93d397050bbeccb7809e53a425c860df947c45
Perform macro by replacing tokens in original list.

We take the results of macro expansion and splice them into the
original token list over which we are iterating. This makes it easy
for function-like macro invocations to find their arguments since they
are simply subsequent tokens on the list.

This fixes the recently-introduced regressions (tests 55 and 56) and
also passes new tests 60 and 61 introduced to strees this feature,
(with macro-argument parentheses split between a macro value and the
textual input).
glcpp-parse.y
tests/060-left-paren-in-macro-right-paren-in-text.c [new file with mode: 0644]
tests/061-define-chain-obj-to-func-multi.c [new file with mode: 0644]