Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site turtlevax.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!decvax!decwrl!turtlevax!ken From: ken@turtlevax.UUCP (Ken Turkowski) Newsgroups: net.unix-wizards Subject: C preprocessor: documentation and use outside of the C compiler Message-ID: <580@turtlevax.UUCP> Date: Fri, 9-Nov-84 12:34:20 EST Article-I.D.: turtleva.580 Posted: Fri Nov 9 12:34:20 1984 Date-Received: Sat, 10-Nov-84 10:14:00 EST Distribution: net Organization: CADLINC, Inc. @ Palo Alto, CA Lines: 16 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@DECWRL.ARPA