ANSI proposal for preprocessor strings
Mark Purtill
Purtill at MIT-MULTICS.ARPA
Fri Mar 8 12:25:55 AEST 1985
<fnord>
>The ANSI C standard wants to support TOKENIZED preprocessing.
>The character-string based kludges possible with the Reiser CPP
>do not fit into this concept.
I don't see what the problem is. You have to deal with strings
specially anyway to handle \n, et. al., right? So, at the same time,
divide it up into tokens and see if any match the macro parameters.
Note that you only have to do this if the string is in a parametered
macro definition, so the overhead shouldn't be too bad.
Anyway, its not clear that the standard should not include something
only because it might be hard to implement in a certain manner.
Mark
More information about the Comp.lang.c
mailing list