|
|
HP C/HP-UX Reference Manual: Version A.05.55.02 > Chapter 7 Preprocessing
Directives Overview of the Preprocessor |
|
A preprocessor is a text processing program that manipulates the text within your source file. You enter preprocessing directives into your source file to direct the preprocessor to perform certain actions on the source file. For example, the preprocessor can replace tokens in the text, insert the contents of other files into the source file, or supress the compilation of part of the file by conditionally removing sections of the text. It also expands preprocessor macros and conditionally strips out comments. Syntax preprocessor-directive ::= Description The preprocessing directives control the following general functions:
All preprocessing directives begin with a pound sign (#) as the first character in a line of a source file. White space may precede the # character in preprocessing directives. The # character is followed by any number of spaces and horizontal tab characters and the preprocessing directive. The directive is terminated by a new-line character. You can continue directives, as well as normal source lines, over several lines by ending lines that are to be continued with a backslash (\). Comments in the source file that are not passed through the preprocessor are replaced with a single white-space character. Examples include-directive: #include <stdio.h> |
|