Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!unido!mikros!mwtech!martin From: martin@mwtech.UUCP (Martin Weitzel) Newsgroups: comp.unix.questions Subject: Re: Using (abusing) cpp... Message-ID: <717@mwtech.UUCP> Date: 12 Apr 90 13:00:18 GMT References: <1990Apr11.192909.26527@IDA.ORG> <3359@jato.Jpl.Nasa.Gov> Reply-To: martin@mwtech.UUCP (Martin Weitzel) Organization: MIKROS Systemware, Darmstadt/W-Germany Lines: 15 In article <3359@jato.Jpl.Nasa.Gov> hashem@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@mwtech.UUCP, voice: 49-(0)6151-6 56 83