[PATCH] lazy-copy macro expansion in pre-processing
commit669244d22464b8e3af138f4df9e1f914f6feeffb
authorAlexander Viro <viro@parcelfarce.linux.theplanet.co.uk>
Mon, 14 Jun 2004 23:09:02 +0000 (14 16:09 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Fri, 8 Apr 2005 04:02:07 +0000 (7 21:02 -0700)
treee528bf56220f274d8fc5e16b274764812b32f114
parent87ce1691126e447c34d16abc1624d6ca0e079a4a
[PATCH] lazy-copy macro expansion in pre-processing

This is almost a total rewrite of the macro expansion.  It now does
lazy-copy or the arguments, with the realization that if an argument
only shows up once in the macro expansion (quite common), we don't need
to allocate a new copy of the argument token stream, we can just insert
it as-is.

I hope it's reasonably clean and readable; review would be obviously welcome.
pre-process.c
token.h
validation/preprocessor12.c [new file with mode: 0644]
validation/preprocessor13.c [new file with mode: 0644]
validation/preprocessor14.c [new file with mode: 0644]
validation/preprocessor15.c [new file with mode: 0644]