diff options
author | Sigrid Solveig Haflínudóttir <sigrid@ftrv.se> | 2022-11-04 01:07:11 +0000 |
---|---|---|
committer | Sigrid Solveig Haflínudóttir <sigrid@ftrv.se> | 2022-11-04 01:07:11 +0000 |
commit | 0cc26776cece29a23d1ddbad750a534df8d29f1b (patch) | |
tree | 1fc1bb711055a23c64b27b540d2035b5efb8abe3 /sys/src/cmd/bar.c | |
parent | 540a67e96f5874963880c4cbdbee65eacfb58857 (diff) |
cpp: stringified macros shouldn't split words separate by a dot
> #define A(s) #s
> #define B(s) A(s)
>
> #define x0 blah blah blah
> B(x0)
>
> #define x1 blah.blah
> B(x1)
Before the fix, B(x1) would become "blah . blah".
After the fix it's "blah.blah", as expected.
In fact, the fix has always been there, but commented out
on the initial import of The Artwork.
Diffstat (limited to 'sys/src/cmd/bar.c')
0 files changed, 0 insertions, 0 deletions