ifdef filter

bright at dataio.UUCP bright at dataio.UUCP
Sun Jul 20 07:21:19 AEST 1986


In article <323 at enmasse.UUCP> keith at enmasse.UUCP (Keith Crews) writes:
>It often happens that software packages are set up to run on so many
>configurations that it is hard to read the code because of all the ifdefs.
>That is, filter out everything that is not going to be expanded by cpp while
>retaining the ifdefs that are going to be expanded, just for comment value.
>Ideally the output, when compiled, would produce exactly the same results as the
>original.  Does anyone have anything like this?

The Datalight C compiler does this if you use the -e and -l switches
on the command line.



More information about the Comp.sources.unix mailing list