📄 ifdef.1
字号:
.TH IFDEF 1.SH NAMEifdef \- remove #ifdefs from a file.SH SYNOPSIS\fBifdef \fR[\fB\-t\fR] [\fB\-d\fIsymbol\fR] [\fB\-D\fIsymbol\fR] [\fB\-U\fIsymbol\fR] [\fB\-I\fIsymbol\fR] [file]\fR.br.de FL.TP\\fB\\$1\\fR\\$2...de EX.TP 20\\fB\\$1\\fR# \\$2...SH OPTIONS.FL "\-D" "Define symbol permanently".FL "\-I" "Ignore symbol".FL "\-U" "Undefine symbol permanently".FL "\-d" "Define symbol. It may be #undef'ed later".FL "\-t" "Produce a table of the symbols on \fIstdout\fR".SH EXAMPLES.EX "ifdef \-DUNIX file.c >newfile.c" "Define \fIUNIX\fR".EX "ifdef \-D_MINIX \-UDOS <x.c >y.c "Define \fI_MINIX\fR, undefine \fIDOS\fR".SH DESCRIPTION.PP\fIIfdef\fRallows conditional code [ #ifdef ... #endif ]to be selectively removed from C files, but at the same time leavingall other C preprocessor commands intact such as #define, #include etc.Input to.I ifdefis either the file named as the last argument, or \fIstdin\fR if no fileis named.Output goes to \fIstdout\fR..PPSymbols may be defined with the \fB\-d\fR or \fB\-D\fR flags just like\fIcpp\fR, except that the latter option ignores subsequent \fI#undefs\fR.It is not permitted to give values to symbols.Similarly, \fB\-U\fR undefines a symbol and ignores subsequent \fI#defines\fRs.Symbols defined with \fB\-I\fR are ignored; any \fI#ifdef\fR using anignored symbol will be left intact.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -