3 ifdef \- remove #ifdefs from a file
5 \fBifdef \fR[\fB\-t\fR] [\fB\-d\fIsymbol\fR] [\fB\-D\fIsymbol\fR] [\fB\-U\fIsymbol\fR] [\fB\-I\fIsymbol\fR] [file]\fR
20 # Define symbol permanently
26 # Undefine symbol permanently
29 # Define symbol. It may be #undef'ed later
32 # Produce a table of the symbols on \fIstdout\fR
35 .B ifdef \-DUNIX file.c >newfile.c
38 .B ifdef \-D_MINIX \-UDOS <x.c >y.c
39 # Define \fI_MINIX\fR, undefine \fIDOS\fR
43 allows conditional code [ #ifdef ... #endif ]
44 to be selectively removed from C files, but at the same time leaving
45 all other C preprocessor commands intact such as #define, #include etc.
48 is either the file named as the last argument, or \fIstdin\fR if no file
50 Output goes to \fIstdout\fR.
52 Symbols may be defined with the \fB\-d\fR or \fB\-D\fR flags just like
53 \fIcpp\fR, except that the latter option ignores subsequent \fI#undefs\fR.
54 It is not permitted to give values to symbols.
55 Similarly, \fB\-U\fR undefines a symbol and ignores subsequent
57 Symbols defined with \fB\-I\fR are ignored; any \fI#ifdef\fR using an
58 ignored symbol will be left intact.