Manual Page Result
0
Command: cpp | Section: 8 | Source: UNIX v10 | File: cpp.8
CPP(8) System Manager's Manual CPP(8)
NAME
cpp - C language preprocessor
SYNOPSIS
/lib/cpp [ option ... ] [ ifile [ ofile ] ]
DESCRIPTION
Cpp interprets preprocessor directives and does macro substitution for
cc(1) and other compilers. The input ifile and output ofile default to
standard input and standard output respectively.
The options are:
-P Do not place line number markings in output.
-C Do not remove comments.
-Uname
-Dname
-Dname=def
-Idir Same as in cc(1). -U overrides -D.
-H Report all included files on standard error file,.
-M Attach modification date to file names in line number directives
thus: file@modtime, where modtime is the integer number of sec-
onds since the epoch.
-T Truncate preprocessor symbols to eight characters.
-Ydir Use dir instead of as the last resort in searching for include
files.
The output file contains processed text sprinkled with lines that show
the original input line numbering:
# linenumber "ifile"
The input language is as described in the reference, with a few addi-
tions:
The # linenumber marks placed in the output are accepted as an alterna-
tive to the official #line directive.
These symbols are predefined in various implementations:
ibm gcos os tss unix
interdata pdp11 u370 u3b u3b5 vax
RES RT
lint
Preprocessor formal parameters are recognized within quoted strings in
the replacement text.
When comments are removed they are replaced by null strings; this unof-
ficial feature makes it possible to construct identifiers by concatena-
tion.
FILES
standard directory for include files
SEE ALSO
B. W. Kernighan and D. M. Ritchie, The C Programming Language, Pren-
tice-Hall, 1988
CPP(8)