C Source code pre-processing

Duncan Roe duncanr at optimation.com.au
Tue Mar 26 12:23:45 EST 2002


gcc wibble.c -E -C will preserve comments in the output also

On Tue, Mar 26, 2002 at 11:51:16AM +1100, Michael Still wrote:
> On Tue, 26 Mar 2002, Burn Alting wrote:
> 
> > Does anyone know of a utility which will take a C source file and strip
> > #if/#else/#endif directives, just leaving the source code dependant upon a
> > set of defines.
> 
> In fact, having onw read the gcc man page...
> 
> gcc wibble.c -E will put preprocessed source on stdout.
> 
> Mikal
> 
> -- 
> 
> Michael Still (mikal at stillhq.com)     UMT+11hrs
> 
> 
> 
Duncan





More information about the linux mailing list