From c6f7989176b9da3b977f397ac4f20bc2f86dec1b Mon Sep 17 00:00:00 2001 From: Ori Bernstein Date: Sun, 26 Apr 2020 09:32:42 -0700 Subject: 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. --- sys/src/cmd/cpp/test.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sys/src/cmd/cpp/test.c') 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 +*/ -- cgit v1.2.3