Pre-expand macro arguments at time of invocation.
authorCarl Worth <cworth@cworth.org>
Thu, 20 May 2010 22:15:26 +0000 (15:15 -0700)
committerCarl Worth <cworth@cworth.org>
Thu, 20 May 2010 22:15:26 +0000 (15:15 -0700)
commitc10a51ba13272dc48407b885d8684be99bba120d
treec5e9be684befb68e37723eec73cc0ddc4ad4f9b2
parentb894583fd0246060d908a0cc7b5f3ef72a5a2112
Pre-expand macro arguments at time of invocation.

Previously, we were using the same lexing stack as we use for macro
expansion to also expand macro arguments. Instead, we now do this
earlier by simply recursing over the macro-invocations replacement
list and constructing a new expanded list, (and pushing only *that*
onto the stack).

This is simpler, and also allows us to more easily implement token
pasting in the future.
glcpp-lex.l
glcpp-parse.y
glcpp.h