preprocessor question (non-ANSI)
Johann Schweigl
johnny at edvvie.at
Sun Oct 8 19:21:38 AEST 1989
How can I replace a text token by itself, along with some additional text?
Example:
EXEC SQL select * from emp; __curline = 23; EXEC SQL select * from emp;
before ^^^^^^^^^^^^^^^^^^^^ after ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
#define EXEC __curline = __LINE__; EXEC
is not the solution, cpp would try to resolve EXEC recursively
I know, sed is the most natural solution, but I want to do all by including
a single file. ANSI is not spoken on my system.
Any help appreciated.
Thanks, johnny
--
This does not reflect the | Johann Schweigl | DOS?
opinions of my employer. | johnny at edvvie.at | Kind of complicated
I am busy enough by talking | | bootstrap loader ...
about my own ... | EDVG Vienna |
More information about the Comp.unix.questions
mailing list