|
105 | 105 |
|
106 | 106 | \begin{bnf}
|
107 | 107 | \nontermdef{lparen}\br
|
108 |
| - \descr{a \terminal{(} character not immediately preceded by white-space} |
| 108 | + \descr{a \terminal{(} character not immediately preceded by whitespace} |
109 | 109 | \end{bnf}
|
110 | 110 |
|
111 | 111 | \begin{bnf}
|
|
137 | 137 | the first token in the sequence,
|
138 | 138 | referred to as a \defnadj{directive-introducing}{token},
|
139 | 139 | begins with the first character in the source file
|
140 |
| -(optionally after white space containing no new-line characters) or |
141 |
| -follows white space containing at least one new-line character, |
| 140 | +(optionally after whitespace containing no new-line characters) or |
| 141 | +follows whitespace containing at least one new-line character, |
142 | 142 | and is
|
143 | 143 |
|
144 | 144 | \begin{itemize}
|
|
175 | 175 | Thus,
|
176 | 176 | preprocessing directives are commonly called ``lines''.
|
177 | 177 | These ``lines'' have no other syntactic significance,
|
178 |
| -as all white space is equivalent except in certain situations |
| 178 | +as all whitespace is equivalent except in certain situations |
179 | 179 | during preprocessing (see the
|
180 | 180 | \tcode{\#}
|
181 | 181 | character string literal creation operator in~\ref{cpp.stringize}, for example).
|
|
232 | 232 | the directive name and the following new-line character.
|
233 | 233 |
|
234 | 234 | \pnum
|
235 |
| -The only white-space characters that shall appear |
| 235 | +The only whitespace characters that shall appear |
236 | 236 | between preprocessing tokens
|
237 | 237 | within a preprocessing directive
|
238 | 238 | (from just after the directive-introducing token
|
239 | 239 | through just before the terminating new-line character)
|
240 | 240 | are space and horizontal-tab
|
241 | 241 | (including spaces that have replaced comments
|
242 |
| -or possibly other white-space characters |
| 242 | +or possibly other whitespace characters |
243 | 243 | in translation phase 3).
|
244 | 244 |
|
245 | 245 | \pnum
|
|
945 | 945 | \indextext{macro!replacement list}%
|
946 | 946 | Two replacement lists are identical if and only if
|
947 | 947 | the preprocessing tokens in both have
|
948 |
| -the same number, ordering, spelling, and white-space separation, |
949 |
| -where all white-space separations are considered identical. |
| 948 | +the same number, ordering, spelling, and whitespace separation, |
| 949 | +where all whitespace separations are considered identical. |
950 | 950 |
|
951 | 951 | \pnum
|
952 | 952 | An identifier currently defined as an
|
|
971 | 971 | The following sequence is valid:
|
972 | 972 | \begin{codeblock}
|
973 | 973 | #define OBJ_LIKE (1-1)
|
974 |
| -#define OBJ_LIKE @\tcode{/* white space */ (1-1) /* other */}@ |
| 974 | +#define OBJ_LIKE @\tcode{/* whitespace */ (1-1) /* other */}@ |
975 | 975 | #define FUNC_LIKE(a) ( a )
|
976 |
| -#define FUNC_LIKE( a )( @\tcode{/* note the white space */ \textbackslash}@ |
| 976 | +#define FUNC_LIKE( a )( @\tcode{/* note the whitespace */ \textbackslash}@ |
977 | 977 | a @\tcode{/* other stuff on this line}@
|
978 | 978 | @\tcode{*/}@ )
|
979 | 979 | \end{codeblock}
|
980 | 980 | But the following redefinitions are invalid:
|
981 | 981 | \begin{codeblock}
|
982 | 982 | #define OBJ_LIKE (0) // different token sequence
|
983 |
| -#define OBJ_LIKE (1 - 1) // different white space |
| 983 | +#define OBJ_LIKE (1 - 1) // different whitespace |
984 | 984 | #define FUNC_LIKE(b) ( a ) // different parameter usage
|
985 | 985 | #define FUNC_LIKE(b) ( b ) // different parameter spelling
|
986 | 986 | \end{codeblock}
|
987 | 987 | \end{example}
|
988 | 988 |
|
989 | 989 | \pnum
|
990 | 990 | \indextext{macro!replacement list}%
|
991 |
| -There shall be white-space between the identifier and the replacement list |
| 991 | +There shall be whitespace between the identifier and the replacement list |
992 | 992 | in the definition of an object-like macro.
|
993 | 993 |
|
994 | 994 | \pnum
|
|
1021 | 1021 | \indextext{name!macro|see{macro, name}}%
|
1022 | 1022 | \defnx{macro name}{macro!name}.
|
1023 | 1023 | There is one name space for macro names.
|
1024 |
| -Any white-space characters preceding or following the |
| 1024 | +Any whitespace characters preceding or following the |
1025 | 1025 | replacement list of preprocessing tokens are not considered
|
1026 | 1026 | part of the replacement list for either form of macro.
|
1027 | 1027 |
|
|
1102 | 1102 | right parenthesis preprocessing tokens.
|
1103 | 1103 | Within the sequence of preprocessing tokens making up an invocation
|
1104 | 1104 | of a function-like macro,
|
1105 |
| -new-line is considered a normal white-space character. |
| 1105 | +new-line is considered a normal whitespace character. |
1106 | 1106 |
|
1107 | 1107 | \pnum
|
1108 | 1108 | \indextext{macro!function-like!arguments}%
|
|
1305 | 1305 | corresponding argument (excluding placemarker tokens).
|
1306 | 1306 | Let the \defn{stringizing argument} be the preprocessing token sequence
|
1307 | 1307 | for the corresponding argument with placemarker tokens removed.
|
1308 |
| -Each occurrence of white space between the stringizing argument's preprocessing |
| 1308 | +Each occurrence of whitespace between the stringizing argument's preprocessing |
1309 | 1309 | tokens becomes a single space character in the character string literal.
|
1310 | 1310 | White space before the first preprocessing token and after the last
|
1311 | 1311 | preprocessing token comprising the stringizing argument is deleted.
|
|
0 commit comments