cpp replaced by m4?

Steven W. Orr steveo at syslang.net
Mon Jul 2 17:02:32 EDT 2007


On Mon, 2 Jul 2007 16:34:45 -0400 (EDT)
"Steven W. Orr" <steveo at syslang.net> wrote:

>> I need a better cpp, something that allows me to defer evaluation, 
create > loops, etc. > > Has anyone seen such a setup ready to go? m4 is 
obviously a candidate, but > I'd like to see if someone else has done the 
work to show how it can be > made to be a drop-in replacement (if at all 
possible).

>cpp functionality is defined by the ISO C standard. M4 would be a
reasonable replacement as long as your code is going to be on Unix like
systems. AFAIK, it's not a drop in replacement  (it's been over 10
years since I last worked with m4).

I got that part. What I want to know is if anyone else has satisfied a 
need for a more featureful preprocessor in their C code, whether it be via 
use of m4 or something else. Whatever is used, I'd like to see if there is 
any setup to save me any of the work of figuring out how to use it. I 
don't care about ISO or platform dependance. Preferably, I'd like to run 
my replacement first and then maybe process the output of that as regular 
C code.

-- 
Time flies like the wind. Fruit flies like a banana. Stranger things have  .0.
happened but none stranger than this. Does your driver's license say Organ ..0
Donor?Black holes are where God divided by zero. Listen to me! We are all- 000
individuals! What if this weren't a hypothetical question?
steveo at syslang.net


More information about the gnhlug-discuss mailing list