C preprocessor: documentation and use outside of the C compiler
Ken Turkowski
ken at turtlevax.UUCP
Sat Nov 10 03:34:20 AEST 1984
Is there any documentation anywhere about the C preprocessor, or does
one need to read through the source code to find out how to use it
outside of the C compiler? I'm on a 4.2bsd UNIX system, if that makes
any difference.
One of the things that I'd like to do is to run the preprocessor on a
file, recognizing #ifdefs and including those files that would get
included based on the status of #define'ed variables, but I do not want
to make the macro substitutions in the resultant output.
In other words, I'd just like to conditionally unroll the #include's,
without touching the #defines. Can the C preprocessor do this?
--
Ken Turkowski @ CADLINC, Palo Alto, CA
UUCP: {amd,decwrl,flairvax,nsc}!turtlevax!ken
ARPA: turtlevax!ken at DECWRL.ARPA
More information about the Comp.unix.wizards
mailing list