Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!uflorida!uakari.primate.wisc.edu!ginosko!uunet!munnari.oz.au!cs.mu.oz.au!ok From: ok@cs.mu.oz.au (Richard O'Keefe) Newsgroups: comp.lang.c Subject: Re: preprocessor question (non-ANSI) Keywords: #define C ANSI Message-ID: <2374@munnari.oz.au> Date: 10 Oct 89 12:46:30 GMT References: <174@eliza.edvvie.at> <1679@ruuinf.cs.ruu.nl> Sender: news@cs.mu.oz.au Lines: 20 In article <174@eliza.edvvie.at>, johnny@edvvie (Johann Schweigl) writes: : 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 Well, according to gcc, it _is_ the solution. When I do % cat >zabbo.c <