#DEFINEs and how to process them out

T.L.Goodwin tlg at ukc.ac.uk
Thu Dec 13 23:41:47 AEST 1990


>From article <11085 at ur-cc.UUCP>, by gest_ss at uhura.cc.rochester.edu (Gavin Stark):
> Question:
> 
> 	How do I get the following effect:  I want a program to scan
> through my C source and process the #ifdef statements.  Like the
> following
> 
> [ example deleted ]

Under UNIX:

	cc -E file.c

under VMS:

	cc file.c /preprocessor_only=sys$output

sends what you require to the standard output.  Sending it to a file is
left as an exercise for the reader...

Tim.



More information about the Comp.lang.c mailing list