Avoid treating an expanded comma as an argument separator.
authorCarl Worth <cworth@cworth.org>
Thu, 27 May 2010 17:12:33 +0000 (10:12 -0700)
committerCarl Worth <cworth@cworth.org>
Thu, 27 May 2010 17:12:33 +0000 (10:12 -0700)
commitdd7490093d84ce74a99922c3544b51c3f5d43345
treeecc7396fb756ef5920c5d371da31570bff354b72
parent7db2402a8009772a3f10d19cfc7f30be9ee79295
Avoid treating an expanded comma as an argument separator.

That is, a function-like invocation foo(x) is valid as a
single-argument invocation even if 'x' is a macro that expands into a
value with a comma. Add a new COMMA_FINAL token type to handle this,
and add a test for this case, (which passes).
glcpp-parse.y
tests/056-macro-argument-with-comma.c [new file with mode: 0644]