tccpp: Fix #ifdef in macro args
commit64f4b00d342417fd49fbdebe0759bb85b8db4ec7
authorMichael Matz <matz@suse.de>
Mon, 11 Jul 2022 13:27:51 +0000 (11 15:27 +0200)
committerMichael Matz <matz@suse.de>
Tue, 16 Aug 2022 13:59:41 +0000 (16 15:59 +0200)
tree85fdb94a1a6f0da571676f674ce01c96cca8c589
parent1da92cdd93a24538f24fcdc48a4ab6131f521cf9
tccpp: Fix #ifdef in macro args

see testcase.  We have to "empty" the macro-stack string on
end_macro, as it may be 'tokstr_buf' which is going to be used
twice in recursive invocations of macro_subst_tok.  The uses aren't
overlapping but the first one needs to be properly finalized.
tccpp.c
tests/pp/22.c [new file with mode: 0644]
tests/pp/22.expect [new file with mode: 0644]