Using (abusing) cpp...

Martin Weitzel martin at mwtech.UUCP
Thu Apr 12 23:00:18 AEST 1990


In article <3359 at jato.Jpl.Nasa.Gov> hashem at mars.jpl.nasa.gov (Basil Hashem) writes:
>I'm using the cpp program (the SunOS C pre-processor) for filtering some 
>files which are not C programs.

Just one small hint in case you want to expand your technique or make
it portable across different flavours of Unix: Have a look to your
manual and try to locate `m4'. (I don't know how the SunOS manuals are
structured, normally it belongs to the  program development tools.)

`m4' is an independant macro processor which has all the features of `cpp'
(of course, the notation differs!) and *much* more, including reliable
semantics in case of nested macro calls, quotation (sometimes you may
want to use a word litterally that is defined as macro), ... 
-- 
Martin Weitzel, email: martin at mwtech.UUCP, voice: 49-(0)6151-6 56 83



More information about the Comp.unix.questions mailing list