unifdef
Remove ifdef'ed C/C++ lines
Syntax:
unifdef [-l] [-t] [-c] [[-Dsym] [-Usym] [-iDsym] [-iUsym]]... [file]
Runs on:
QNX Neutrino
Options:
- -Dsym -Usym
- Specify which symbols to define or undefine respectively.
The lines inside those
ifdefs are copied to the output or removed as appropriate. Theifdef,ifndef,else, andendiflines associated with sym are also removed. If anifdef Xoccurs nested inside anotherifdef X, then the insideifdefis treated as if it were an unrecognized symbol. - -c
- Cause the operation to be complemented (i.e., the lines that would have been removed or blanked are retained and vice versa).
- -l
- Replace removed lines with blank lines instead of deleting them.
- -t
- Disable parsing for C/C++ comments and quotes, which is useful for plain text.
- -iDsym
- -iUsym
- Ignore the specified
ifdefs. Specifies whichifdefsymbols to parse or not to parse for quotes and comments inside respectively. Parsing is done by default, and the -t option overrides these options.
Description:
The unifdef utility removes ifdef'ed lines from C or
C++ code.
You must specify at least one of -D, -U,
-iD, and -iU.
This utility copies output to stdout, and takes its input from
stdin if you don't specify a file argument.
Page updated:
