IFDEF.1
资源名称:os_source.zip [点击查看]
上传用户:datang2001
上传日期:2007-02-01
资源大小:53269k
文件大小:1k
源码类别:
操作系统开发
开发平台:
C/C++
- .TH IFDEF 1
- .SH NAME
- ifdef - remove #ifdefs from a file
- .SH SYNOPSIS
- fBifdef fR[fB-tfR] [fB-dfIsymbolfR] [fB-DfIsymbolfR] [fB-UfIsymbolfR] [fB-IfIsymbolfR] [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 fIstdoutfR"
- .SH EXAMPLES
- .EX "ifdef -DUNIX file.c >newfile.c" "Define fIUNIXfR"
- .EX "ifdef -D_MINIX -UDOS <x.c >y.c "Define fI_MINIXfR, undefine fIDOSfR"
- .SH DESCRIPTION
- .PP
- fIIfdeffR
- allows conditional code [ #ifdef ... #endif ]
- to be selectively removed from C files, but at the same time leaving
- all other C preprocessor commands intact such as #define, #include etc.
- Input to
- .I ifdef
- is either the file named as the last argument, or fIstdinfR if no file
- is named.
- Output goes to fIstdoutfR.
- .PP
- Symbols may be defined with the fB-dfR or fB-DfR flags just like
- fIcppfR, except that the latter option ignores subsequent fI#undefsfR.
- It is not permitted to give values to symbols.
- Similarly, fB-UfR undefines a symbol and ignores subsequent
- fI#definesfRs.
- Symbols defined with fB-IfR are ignored; any fI#ifdeffR using an
- ignored symbol will be left intact.