Skip to content

Commit cbada74

Browse files
jensmaurerzygoloid
authored andcommitted
[cpp] Replace \term with \defn
and adjust indexing.
1 parent ccf68a7 commit cbada74

File tree

1 file changed

+19
-20
lines changed

1 file changed

+19
-20
lines changed

source/preprocessor.tex

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
%!TEX root = std.tex
22
\rSec0[cpp]{Preprocessing directives}%
3-
\indextext{preprocessing directives|(}
3+
\indextext{preprocessing directive|(}
44

5-
\indextext{compiler control line|see{preprocessing directives}}%
6-
\indextext{control line|see{preprocessing directives}}%
7-
\indextext{directive, preprocessing|see{preprocessing directives}}
5+
\indextext{compiler control line|see{preprocessing directive}}%
6+
\indextext{control line|see{preprocessing directive}}%
7+
\indextext{directive, preprocessing|see{preprocessing directive}}
88

99
\gramSec[gram.cpp]{Preprocessing directives}
1010

@@ -163,7 +163,7 @@
163163
include other source files,
164164
and replace macros.
165165
These capabilities are called
166-
\term{preprocessing},
166+
\defn{preprocessing},
167167
because conceptually they occur
168168
before translation of the resulting translation unit.
169169

@@ -379,11 +379,11 @@
379379
Their conditions are equivalent to
380380
\tcode{\#if}
381381
\tcode{defined}
382-
\term{identifier}
382+
\grammarterm{identifier}
383383
and
384384
\tcode{\#if}
385385
\tcode{!defined}
386-
\term{identifier}
386+
\grammarterm{identifier}
387387
respectively.
388388

389389
\pnum
@@ -440,8 +440,8 @@
440440
\end{example}
441441

442442
\rSec1[cpp.include]{Source file inclusion}
443-
\indextext{preprocessing directives!header inclusion}
444-
\indextext{preprocessing directives!source-file inclusion}
443+
\indextext{preprocessing directive!header inclusion}
444+
\indextext{preprocessing directive!source-file inclusion}
445445
\indextext{inclusion!source file|see{preprocessing directives, source-file inclusion}}%
446446
\indextext{\idxcode{\#include}}%
447447

@@ -583,7 +583,7 @@
583583
\rSec1[cpp.replace]{Macro replacement}%
584584
\indextext{macro!replacement|(}%
585585
\indextext{replacement!macro|see{macro, replacement}}%
586-
\indextext{preprocessing directives!macro replacement|see{macro, replacement}}
586+
\indextext{preprocessing directive!macro replacement|see{macro, replacement}}
587587

588588
\pnum
589589
\indextext{macro!replacement list}%
@@ -644,9 +644,8 @@
644644
The identifier immediately following the
645645
\tcode{define}
646646
is called the
647-
\indextext{macro!name}%
648647
\indextext{name!macro|see{macro, name}}%
649-
\term{macro name}.
648+
\defnx{macro name}{macro!name}.
650649
There is one name space for macro names.
651650
Any white-space characters preceding or following the
652651
replacement list of preprocessing tokens are not considered
@@ -735,7 +734,7 @@
735734
If there is a \tcode{...} immediately preceding the \tcode{)} in the
736735
function-like macro
737736
definition, then the trailing arguments (if any), including any separating comma preprocessing
738-
tokens, are merged to form a single item: the \term{variable arguments}. The number of
737+
tokens, are merged to form a single item: the \defn{variable arguments}. The number of
739738
arguments so combined is such that, following merger, the number of arguments is
740739
either equal to or
741740
one more than the number of parameters in the macro definition (excluding the
@@ -1177,7 +1176,7 @@
11771176
\indextext{macro!replacement|)}
11781177

11791178
\rSec1[cpp.line]{Line control}%
1180-
\indextext{preprocessing directives!line control}%
1179+
\indextext{preprocessing directive!line control}%
11811180
\indextext{\idxcode{\#line}|see{preprocessing directives, line control}}
11821181

11831182
\pnum
@@ -1188,7 +1187,7 @@
11881187

11891188
\pnum
11901189
The
1191-
\term{line number}
1190+
\defn{line number}
11921191
of the current source line is one greater than
11931192
the number of new-line characters read or introduced
11941193
in translation phase 1\iref{lex.phases}
@@ -1239,7 +1238,7 @@
12391238
otherwise, the result is processed as appropriate.
12401239

12411240
\rSec1[cpp.error]{Error directive}%
1242-
\indextext{preprocessing directives!error}%
1241+
\indextext{preprocessing directive!error}%
12431242
\indextext{\idxcode{\#error}|see{preprocessing directives, error}}
12441243

12451244
\pnum
@@ -1254,7 +1253,7 @@
12541253
and renders the program ill-formed.
12551254

12561255
\rSec1[cpp.pragma]{Pragma directive}%
1257-
\indextext{preprocessing directives!pragma}%
1256+
\indextext{preprocessing directive!pragma}%
12581257
\indextext{\idxcode{\#pragma}|see{preprocessing directives, pragma}}
12591258

12601259
\pnum
@@ -1271,7 +1270,7 @@
12711270
Any pragma that is not recognized by the implementation is ignored.
12721271

12731272
\rSec1[cpp.null]{Null directive}%
1274-
\indextext{preprocessing directives!null}
1273+
\indextext{preprocessing directive!null}
12751274

12761275
\pnum
12771276
A preprocessing directive of the form
@@ -1430,7 +1429,7 @@
14301429
\terminal{_Pragma} \terminal{(} string-literal \terminal{)}
14311430
\end{ncbnf}
14321431

1433-
is processed as follows: The string literal is \term{destringized}
1432+
is processed as follows: The string literal is \defnx{destringized}{destringization}
14341433
by deleting the \tcode{L} prefix, if present, deleting the leading and trailing
14351434
double-quotes, replacing each escape sequence \tcode{\textbackslash"} by a double-quote, and
14361435
replacing each escape sequence \tcode{\textbackslash\textbackslash} by a single
@@ -1457,4 +1456,4 @@
14571456
LISTING( ..\listing.dir )
14581457
\end{codeblock}
14591458
\end{example}%
1460-
\indextext{preprocessing directives|)}
1459+
\indextext{preprocessing directive|)}

0 commit comments

Comments
 (0)