unifdef(1)						      General Commands Manual							unifdef(1)

NAME
unifdef - remove preprocessor lines SYNOPSIS
sym] sym] sym] sym]] ... [file] DESCRIPTION
simulates some of the actions of in interpreting C language preprocessor command lines (see cpp(1)). For a valid preprocessor command line contains as its first character a and one of the following keywords: or The character and its associated keyword must appear on the same line, but they can be separated by spaces, tabs, and commented text. When appropriate, the portions of code surrounded by and including the targeted preprocessor directives are removed, and the resultant text is written to the standard output. Unlike does not insert included files, interpret macros, or strip comment lines. This means, among other things, that and macros occurring within the input text are not interpreted. Since is language-independent, it can be used for processing source files for languages other than the C language. For example, can be used on FORTRAN language source files, provided the C language preprocessor commands are used. Options recognizes the following command-line options: Complement the normal behavior by printing only the rejected lines. Ignore text delimited by sym. In other words, text that would otherwise be affected by some action is not touched when found within the context of a preprocessor command using sym. Ignore text delimited by sym. Replace rejected lines with blank lines in the text written to the standard output. Treat the input source as plain text. C-language comment and quoting constructs are not recognized. Define symbol sym. Cause symbol sym to be undefined. RETURN VALUE
The command returns the following exit values: 0 Output is an exact copy of the input. 1 Output is not an exact copy of the input. 2 The command fails. The failure might be due to a premature EOF or to an inappropriate or EXAMPLES
Assume file contains the following: The command sequence: produces the following result in file WARNINGS
Any symbol name defined in the file must be specified in the command line; otherwise, will ignore the line. AUTHOR
was developed in the public domain. SEE ALSO
cpp(1). unifdef(1)