Quick Search:

Mode

Context

Displaying 3 lines of context. None | Less | More | Full

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.8
 
1.9
 
MAIN:reed:20080219163239
 
cpp.1
_>33 .\"     $OpenBSD$
 44 ."\
 55 .\" Copyright (c) 2007 Jeremy C. Reed <reed@reedmedia.net>
<>6 -.\"
 7 -.\" Permission to use, copy, modify, and/or distribute this software for any
 8 -.\" purpose with or without fee is hereby granted, provided that the above
  6+.\"
  7+.\" Permission to use, copy, modify, and/or distribute this software for any
  8+.\" purpose with or without fee is hereby granted, provided that the above
99 .\" copyright notice and this permission notice appear in all copies.
<>10 -.\"
 11 -.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR AND CONTRIBUTORS DISCLAIM
 12 -.\" ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
 13 -.\" WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL AUTHOR AND
 14 -.\" CONTRIBUTORS BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
 15 -.\" DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
 16 -.\" PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
 17 -.\" ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
  10+.\"
  11+.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR AND CONTRIBUTORS DISCLAIM
  12+.\" ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
  13+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL AUTHOR AND
  14+.\" CONTRIBUTORS BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
  15+.\" DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
  16+.\" PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
  17+.\" ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
1818 .\" THIS SOFTWARE.
 1919 .\"
 2020 .Dd September 17, 2007
<>21 -.Dt cpp 1
  21+.Dt CPP 1
2222 .Os
 2323 .Sh NAME
 2424 .Nm cpp
     
 !
3434 .Op Fl U Ar macro
 3535 .Op Ar infile | -
 3636 .Op Ar outfile
<>37 -.Pp
3837 .Sh DESCRIPTION
 3938 The
 4039 .Nm
     
 !
4544 expand macro definitions,
 4645 and perform conditional compilation.
 4746 .Pp
<>48 -The
  47+The
4948 .Ar infile
 5049 input file is optional.
 5150 If not provided or the file name is
     
 !
6564 .\"
 6665 The options are as follows:
 6766 .Bl -tag -width Ds
<> 67+.It Fl ?
  68+Show command line usage for
  69+.Nm .
6870 .It Fl C
 6971 Do not discard comments.
 7072 .It Fl D Ar macro[=value]
     
 !
7375 .Ar macro=value Dc .
 7476 If
 7577 .Ar value
<>76 -is not set on command-line, then defines as 1.
  78+is not set on command-line, then define it as 1.
7779 .\" TODO: show example
 7880 .It Fl dM
 7981 Print list of
 8082 .Dq #define
 8183 statements to standard output for all defined macros other than
 8284 builtin macros (see below).
<>83 -The normal results of preprocessing are not outputted.
  85+The normal results of preprocessing are not output.
8486 .\" TODO this doesn't show predefined macros
 8587 .\" other -d options are ignored
 8688 .It Fl I Ar path
     
 !
106108 Add
 107109 .Ar path
 108110 to the list of system directories containing needed header files.
<> 111+The
109112 .Fl S
<>110 -may be specified multiple times.
  113+option may be specified multiple times.
111114 Note:
 112115 .Nm
 113116 does not have a default include directory defined.
     
 !
120123 .Dv __DATE__ ,
 121124 .Dv __STDC__ ,
 122125 and
<>123 -.Dv __STDC_VERSION__ ,
  126+.Dv __STDC_VERSION__
124127 macros.
 125128 .\"
 126129 .It Fl U Ar macro
 127130 Undefine a macro at the beginning by using
 128131 .Do #undef
 129132 .Ar macro Dc .
<>130 -.It Fl v
 131 -Display version.
132133 .It Fl V
 133134 Verbose debugging output.
 134135 .Fl V
 135136 can be repeated for further details.
 136137 .\" -V only available if cpp source built with CPP_DEBUG, which is the default.
<>137 -.It Fl ?
 138 -Show command line usage for
 139 -.Nm .
  138+.It Fl v
  139+Display version.
140140 .El
<>141 -.Sh Builtin Macros
  141+.Ss Builtin Macros
142142 A few macros are interpreted inside the
 143143 .Nm cpp
 144144 program:
     
 !
151151 .It __FILE__
 152152 Expands to the name of the current input file in quotes.
 153153 When read from standard input, it expands to
<>154 -.Qq Ao stdin Ac .
  154+.Qq Aq stdin .
155155 .It __LINE__
 156156 Expands to the line number of the current line containing the macro.
 157157 .It __STDC__
 158158 Expands to the constant 1.
<>159 -This means the compiler conforms to ISO Standard C,
 160 -ISO/IEC 9899:1990
  159+This means the compiler conforms to
  160+.St -isoC
161161 .Po also known as
 162162 .Do C90 Dc Pc .
 163163 .It __STDC_VERSION__
 164164 Expands to
 165165 .Dq 199901L
<>166 -which indicates it supports ISO/IEC 9899:1999 standard
  166+which indicates that
  167+.Nm
  168+supports
  169+.St -isoC-99
167170 .Po commonly referred to as
 168171 .Do C99 Dc Pc .
 169172 .It __TIME__
     
 !
193196 .Sh HISTORY
 194197 The
 195198 .Nm
<>196 -command comes from the original Portable C Compiler by S. C.
 197 -Johnson, written in the late 70's.
  199+command comes from the original Portable C Compiler by S. C. Johnson,
  200+written in the late 70's.
<_198201 The code originates from the V6 preprocessor with some additions
 199202 from V7 cpp and ansi/c99 support.
 200203 .Pp
FishEye: Open Source License registered to PCC.
Your maintenance has expired. You can renew your license at http://www.atlassian.com/fisheye/renew
Atlassian FishEye, CVS analysis. (Version:1.6.3 Build:build-336 2008-11-04) - Administration - Page generated 2014-08-28 01:01 +0200