⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ifdef.1

📁 操作系统设计与实现源码
💻 1
字号:


IFDEF(1)                  Minix Programmer's Manual                   IFDEF(1)


NAME
     ifdef - remove #ifdefs from a file

SYNOPSIS
     ifdef [-t] [-dsymbol] [-Dsymbol] [-Usymbol] [-Isymbol] [file]

OPTIONS

     -D   Define symbol permanently

     -I   Ignore symbol

     -U   Undefine symbol permanently

     -d   Define symbol. It may be #undef'ed later

     -t   Produce a table of the symbols on stdout

EXAMPLES

     ifdef -DUNIX file.c >newfile.c
                         # Define UNIX

     ifdef -D_MINIX -UDOS <x.c >y.c
                         # Define

DESCRIPTION

     Ifdef 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
     ifdef  is either the file named as the last argument, or stdin if no file
     is named.  Output goes to stdout.

     Symbols may be defined with the -d or -D flags just like cpp, except that
     the  latter  option  ignores  subsequent #undefs.  It is not permitted to
     give values to symbols.  Similarly, -U undefines  a  symbol  and  ignores
     subsequent  #definess.   Symbols  defined with -I are ignored; any #ifdef
     using an ignored symbol will be left intact.













                                                                             1

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -