diff options
author | Ori Bernstein <ori@eigenstate.org> | 2020-04-26 09:32:42 -0700 |
---|---|---|
committer | Ori Bernstein <ori@eigenstate.org> | 2020-04-26 09:32:42 -0700 |
commit | c6f7989176b9da3b977f397ac4f20bc2f86dec1b (patch) | |
tree | b75c585b86f8c11d9f8e5a9f83a153401f7cd91e /sys/src/cmd/cpp/test.c | |
parent | 8ebe958ddf4b81df3ecf9b26c4333b2dca1cc987 (diff) |
copy all the tokens from the tokenrows with a paste.
if we do 'CAT(foo bar, baz quux)', the resulting token row
should have 3 tokens: 'foo', 'barbaz', 'quux'.
tested by jonasa, rebuilding /sys/src, perl, netsurf, and nuklear.
Diffstat (limited to 'sys/src/cmd/cpp/test.c')
-rw-r--r-- | sys/src/cmd/cpp/test.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/src/cmd/cpp/test.c b/sys/src/cmd/cpp/test.c index 451e364f4..510419050 100644 --- a/sys/src/cmd/cpp/test.c +++ b/sys/src/cmd/cpp/test.c @@ -21,6 +21,9 @@ CAT3(blah) #define FOO CAT(BAR, 3) FOO +/* Expected: a bc d */ +CAT(a b, c d) + /* * CURRENTLY BROKEN: * __VA_ARGS__ requires at least one item. @@ -58,4 +61,4 @@ g(x+(3,4)-w) | h 5) & m * It should treat no args as a single empty arg list. p() i[q()] = { q(1), r(2,3), r(4,), r(,5), r(,) }; char c[2][6] = { str(hello), str() }; -*/
\ No newline at end of file +*/ |