01.01.2013 Views

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

CPP ( l ) CPP ( l )<br />

NAME<br />

cpp - the C language preprocessor<br />

SYNOPSIS<br />

/lib/ cpp [ option ... ] [ ifile [ ofile ] ]<br />

/lib/mcpp -<br />

DESCRIPTION<br />

Cpp is the C language preprocessor which is invoked as the first<br />

pass of any C compilation using the cc(l) command. Thus the<br />

output of cpp is designed to be in a form acceptable as input to<br />

the next pass of the C compiler. As the C language evolves, cpp<br />

and the rest of the C compilation package will be modified to follow<br />

these changes. Therefore, the use of cpp other than in this<br />

framework is not suggested. The preferred way to invoke cpp is<br />

through the cc(l) command since the functionality of cpp may<br />

someday be moved elsewhere. See m4(1) for a general macro processor.<br />

Cpp optionally accepts two file names as arguments. lfile and<br />

ofile are respectively the input and output for the preprocessor.<br />

They default to standard input and standard output if not supplied.<br />

The following options to cpp are recognized:<br />

-P Preprocess the input without producing the line control<br />

information used by the next pass of the C compiler.<br />

-C By default, cpp strips C-style comments. If the -C<br />

option is specified, all comments (except those found on<br />

cpp directive lines) are passed along.<br />

-Uname<br />

Remove any initial definition of name, where name is a<br />

reserved symbol that is predefined by the particular<br />

preprocessor. The current list of these possibly reserved<br />

symbols includes:<br />

operating system: ibm, gcos, os, tss, unix<br />

hardware: interdata, pdpll, u370, u3b, vax,<br />

mc68K<br />

UNIX variant: RES, RT<br />

-Dname<br />

-Dname=def<br />

Define name as if by a #define directive. If no =def is<br />

given, name is defined as 1.<br />

-ldir Change the algorithm for searching for #include files<br />

whose names do not begin with / to look in dir before<br />

looking in the directories on the standard list. Thus,<br />

#include files whose names are enclosed in " " will be<br />

searched for first in the directory of the ifile argument,<br />

then in directories named in -1 options, and last in directories<br />

on a standard list. For #include files whose names<br />

are enclosed in < >, the directory of the ifile argument is<br />

not searched.<br />

- 1 -

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!