Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.3
 
1.4
 
MAIN:ragge:20070926144847
 
cpp.1
_>11 .\"     $Id$
<> 2+.\"     $NetBSD$
  3+.\"     $OpenBSD$
  4+."\
25 .\" Copyright (c) 2007 Jeremy C. Reed <reed@reedmedia.net>
 36 .\"
 47 .\" Permission to use, copy, modify, and/or distribute this software for any
     
 !
3740 utility is a macro preprocessor used by the
 3841 .Xr pcc 1
 3942 compiler.
<>40 -It used to include header files,
  43+It is used to include header files,
4144 expand macro definitions,
 4245 and perform conditional compilation.
 4346 .Pp
     
 !
6467 .It Fl C
 6568 Do not discard comments.
 6669 .It Fl dM
<>67 -TODO: No output from ... and
  70+Print list of
  71+.Dq #define
  72+statements to standard output for all defined macros other than
  73+builtin macros (see below).
  74+The normal results of preprocessing are not outputted.
6875 .\" TODO this doesn't show predefined macros
 6976 .\" other -d options are ignored
 7077 .It Fl D Ar macro[=value]
 7178 Fake a definition at the beginning by using
 7279 .Do #define
 7380 .Ar macro=value Dc .
 7481 If
<>75 -.Ar value is not set on command-line, then defines as 1.
  82+.Ar value
  83+is not set on command-line, then defines as 1.
7684 .\" TODO: show example
 7785 .It Fl i Ar file
 7886 Include a file at the beginning by using
     
 !
8391 Add
 8492 .Ar directory
 8593 to the list of system directories containing needed header files.
<>86 -This may be used to override system include directories.
  94+This may be used to override system include directories
  95+(see
  96+.Fl S
  97+option).
8798 .Fl I
 8899 may be specified multiple times.
 89100 .It Fl M
     
 !
94105 Add
 95106 .Ar directory
 96107 to the list of system directories containing needed header files.
<>97 -This may be used to override system include directories.
98108 .Fl S
 99109 may be specified multiple times.
<> 110+Note:
  111+.Nm
  112+does not have a default include directory defined.
100113 .\" TODO: explain difference between -I and -S
 101114 .\" The directories listed by -I are searched first?
 102115 .It Fl t
 103116 Traditional cpp syntax.
 104117 Do not define the
 105118 .Dv __TIME__ ,
<>106 -.Dv __DATE__,
  119+.Dv __DATE__ ,
107120 and
 108121 .Dv __STDC__
 109122 macros.
     
 !
121134 Show command line usage for
 122135 .Nm .
 123136 .El
<>124 -.Sh Predefined Macros
 125 -A few macros are predefined by
 126 -.Nm :
  137+.Sh Builtin Macros
  138+A few macros are interpreted inside the
  139+.Nm cpp
  140+program:
127141 .Bl -diag
 128142 .It __DATE__
 129143 Expands to the date in abbreviated month, day, and year format from
     
 !
132146 .\" TODO: is that ctime(3) format output change according to locale?
 133147 .It __FILE__
 134148 Expands to the name of the current input file in quotes.
<>135 -When read from standard input, it expands to:
  149+When read from standard input, it expands to
136150 .Qq Ao stdin Ac .
 137151 .It __LINE__
 138152 Expands to the line number of the current line containing the macro.
     
 !
146160 .El
 147161 .Pp
 148162 Also see the
<>149 -.Fl t option.
  163+.Fl t
  164+option.
<_150165 .Sh EXIT STATUS
 151166 The
 152167 .Nm
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-09-19 21:55 +0200