Skip to content

Commit 49ed4ad

Browse files
committed
[intro, lex] Remove unnecessary and awkward whitespace in and around lists from LaTeX source
1 parent 4d9c28c commit 49ed4ad

File tree

2 files changed

+18
-70
lines changed

2 files changed

+18
-70
lines changed

source/intro.tex

Lines changed: 18 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@
5454
of this document. For dated references, only the edition cited applies.
5555
For undated references, the latest edition of the referenced document
5656
(including any amendments) applies.
57-
5857
\begin{itemize}
5958
\item Ecma International, \doccite{ECMAScript Language Specification},
6059
Standard Ecma-262, third edition, 1999.
@@ -320,27 +319,23 @@
320319
they are phrased as requirements on programs, parts of programs, or
321320
execution of programs. Such requirements have the following meaning:
322321
\begin{itemize}
323-
324322
\item
325323
If a program contains no violations of the rules in this
326324
International Standard, a conforming implementation shall,
327325
within its resource limits, accept and correctly execute\footnote{``Correct execution'' can include undefined behavior, depending on
328326
the data being processed; see~\ref{intro.defs} and~\ref{intro.execution}.}
329327
that program.
330-
331328
\item
332329
\indextext{message!diagnostic}%
333330
If a program contains a violation of any diagnosable rule or an occurrence
334331
of a construct described in this Standard as ``conditionally-supported'' when
335332
the implementation does not support that construct, a conforming implementation
336333
shall issue at least one diagnostic message.
337-
338334
\item
339335
\indextext{behavior!undefined}%
340336
If a program contains a violation of a rule for which no diagnostic
341337
is required, this International Standard places no requirement on
342338
implementations with respect to that program.
343-
344339
\end{itemize}
345340
\begin{note}
346341
During template argument deduction and substitution,
@@ -672,17 +667,14 @@
672667
\pnum
673668
For every object \tcode{x}, there is some object called the
674669
\defn{complete object of} \tcode{x}, determined as follows:
675-
676670
\begin{itemize}
677-
678671
\item
679672
If \tcode{x} is a complete object, then the complete object
680673
of \tcode{x} is itself.
681674

682675
\item
683676
Otherwise, the complete object of \tcode{x} is the complete object
684677
of the (unique) object that contains \tcode{x}.
685-
686678
\end{itemize}
687679

688680
\pnum
@@ -821,23 +813,18 @@
821813
\indextext{conformance requirements}
822814
\pnum
823815
The least requirements on a conforming implementation are:
824-
825816
\begin{itemize}
826-
827817
\item
828818
Access to volatile objects are evaluated strictly according to the
829819
rules of the abstract machine.
830-
831820
\item
832821
At program termination, all data written into files shall be
833822
identical to one of the possible results that execution of the program
834823
according to the abstract semantics would have produced.
835-
836824
\item
837825
The input and output dynamics of interactive devices shall take
838826
place in such a fashion that prompting output is actually delivered before a program waits for input. What constitutes an interactive device is
839827
\impldef{interactive device}.
840-
841828
\end{itemize}
842829

843830
These collectively are referred to as the
@@ -892,8 +879,6 @@
892879

893880
\pnum
894881
A \defn{constituent expression} is defined as follows:
895-
%left blank intentionally for spacing reasons
896-
897882
\begin{itemize}
898883
\item
899884
The constituent expression of an expression is that expression.
@@ -918,8 +903,6 @@
918903

919904
\pnum
920905
The \defn{immediate subexpression}{s} of an expression \tcode{e} are
921-
%left blank intentionally for spacing reasons
922-
923906
\begin{itemize}
924907
\item
925908
the constituent expressions of \tcode{e}'s operands (Clause \ref{expr}),
@@ -950,8 +933,6 @@
950933

951934
\pnum
952935
A \defn{full-expression} is
953-
%left blank intentionally for spacing reasons
954-
955936
\begin{itemize}
956937
\item
957938
an unevaluated operand (Clause \ref{expr}),
@@ -1244,46 +1225,36 @@
12441225
An evaluation \placeholder{A} \defn{carries a dependency} to an evaluation \placeholder{B} if
12451226

12461227
\begin{itemize}
1247-
12481228
\item
12491229
the value of \placeholder{A} is used as an operand of \placeholder{B}, unless:
12501230
\begin{itemize}
1251-
12521231
\item
12531232
\placeholder{B} is an invocation of any specialization of
12541233
\tcode{std::kill_dependency}~(\ref{atomics.order}), or
1255-
12561234
\item
12571235
\placeholder{A} is the left operand of a built-in logical AND (\tcode{\&\&},
12581236
see~\ref{expr.log.and}) or logical OR (\tcode{||}, see~\ref{expr.log.or})
12591237
operator, or
1260-
12611238
\item
12621239
\placeholder{A} is the left operand of a conditional (\tcode{?:}, see~\ref{expr.cond})
12631240
operator, or
1264-
12651241
\item
12661242
\placeholder{A} is the left operand of the built-in comma (\tcode{,})
12671243
operator~(\ref{expr.comma}); \end{itemize} or
1268-
12691244
\item
12701245
\placeholder{A} writes a scalar object or bit-field \placeholder{M}, \placeholder{B} reads the value
12711246
written by \placeholder{A} from \placeholder{M}, and \placeholder{A} is sequenced before \placeholder{B}, or
1272-
12731247
\item
12741248
for some evaluation \placeholder{X}, \placeholder{A} carries a dependency to \placeholder{X}, and
12751249
\placeholder{X} carries a dependency to \placeholder{B}.
1276-
12771250
\end{itemize}
1278-
12791251
\begin{note} ``Carries a dependency to'' is a subset of ``is sequenced before'',
12801252
and is similarly strictly intra-thread. \end{note}
12811253

12821254
\pnum
12831255
An evaluation \placeholder{A} is \defn{dependency-ordered before} an evaluation
12841256
\placeholder{B} if
12851257
\begin{itemize}
1286-
12871258
\item
12881259
\placeholder{A} performs a release operation on an atomic object \placeholder{M}, and, in
12891260
another thread, \placeholder{B} performs a consume operation on \placeholder{M} and reads a
@@ -1303,33 +1274,25 @@
13031274
\pnum
13041275
An evaluation \placeholder{A} \defn{inter-thread happens before} an evaluation \placeholder{B}
13051276
if
1306-
13071277
\begin{itemize}
1308-
13091278
\item
1310-
\placeholder{A} synchronizes with \placeholder{B}, or
1311-
1279+
\placeholder{A} synchronizes with \placeholder{B}, or
13121280
\item
1313-
\placeholder{A} is dependency-ordered before \placeholder{B}, or
1314-
1281+
\placeholder{A} is dependency-ordered before \placeholder{B}, or
13151282
\item
1316-
for some evaluation \placeholder{X}
1317-
1318-
\begin{itemize}
1319-
\item
1320-
\placeholder{A} synchronizes with \placeholder{X} and \placeholder{X} is sequenced before \placeholder{B},
1321-
or
1322-
1323-
\item
1324-
\placeholder{A} is sequenced before \placeholder{X} and \placeholder{X} inter-thread happens before
1325-
\placeholder{B}, or
1326-
1327-
\item
1328-
\placeholder{A} inter-thread happens before \placeholder{X} and \placeholder{X} inter-thread happens
1329-
before \placeholder{B}.
1330-
\end{itemize}
1283+
for some evaluation \placeholder{X}
1284+
\begin{itemize}
1285+
\item
1286+
\placeholder{A} synchronizes with \placeholder{X} and \placeholder{X}
1287+
is sequenced before \placeholder{B}, or
1288+
\item
1289+
\placeholder{A} is sequenced before \placeholder{X} and \placeholder{X}
1290+
inter-thread happens before \placeholder{B}, or
1291+
\item
1292+
\placeholder{A} inter-thread happens before \placeholder{X} and \placeholder{X}
1293+
inter-thread happens before \placeholder{B}.
1294+
\end{itemize}
13311295
\end{itemize}
1332-
13331296
\begin{note} The ``inter-thread happens before'' relation describes arbitrary
13341297
concatenations of ``sequenced before'', ``synchronizes with'' and
13351298
``dependency-ordered before'' relationships, with two exceptions. The first
@@ -1349,12 +1312,10 @@
13491312
\pnum
13501313
An evaluation \placeholder{A} \defn{happens before} an evaluation \placeholder{B}
13511314
(or, equivalently, \placeholder{B} \defn{happens after} \placeholder{A}) if:
1352-
13531315
\begin{itemize}
13541316
\item \placeholder{A} is sequenced before \placeholder{B}, or
13551317
\item \placeholder{A} inter-thread happens before \placeholder{B}.
13561318
\end{itemize}
1357-
13581319
The implementation shall ensure that no program execution demonstrates a cycle
13591320
in the ``happens before'' relation. \begin{note} This cycle would otherwise be
13601321
possible only through the use of consume operations. \end{note}
@@ -1363,7 +1324,6 @@
13631324
A \defnx{visible side effect}{side effects!visible} \placeholder{A} on a scalar object or bit-field \placeholder{M}
13641325
with respect to a value computation \placeholder{B} of \placeholder{M} satisfies the
13651326
conditions:
1366-
13671327
\begin{itemize}
13681328
\item \placeholder{A} happens before \placeholder{B} and
13691329
\item there is no other
@@ -1514,21 +1474,12 @@
15141474
\pnum
15151475
The implementation may assume that any thread will eventually do one of the
15161476
following:
1517-
15181477
\begin{itemize}
1519-
\item
1520-
terminate,
1521-
1522-
\item
1523-
make a call to a library I/O function,
1524-
1525-
\item
1526-
read or modify a volatile object, or
1527-
1528-
\item
1529-
perform a synchronization operation or an atomic operation.
1478+
\item terminate,
1479+
\item make a call to a library I/O function,
1480+
\item read or modify a volatile object, or
1481+
\item perform a synchronization operation or an atomic operation.
15301482
\end{itemize}
1531-
15321483
\begin{note} This is intended to allow compiler transformations such as removal of
15331484
empty loops, even when termination cannot be proven. \end{note}
15341485

@@ -1537,7 +1488,6 @@
15371488
that are either defined to be lock-free~(\ref{atomics.flag})
15381489
or indicated as lock-free~(\ref{atomics.lockfree})
15391490
are \defnx{lock-free executions}{lock-free execution}.
1540-
15411491
\begin{itemize}
15421492
\item
15431493
If there is only one thread that is not blocked~(\ref{defns.block})
@@ -1577,7 +1527,6 @@
15771527
\pnum
15781528
During the execution of a thread of execution, each of the following is termed
15791529
an \defn{execution step}:
1580-
15811530
\begin{itemize}
15821531
\item termination of the thread of execution,
15831532
\item access to a volatile object, or

source/lex.tex

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,6 @@
294294
\pnum
295295
If the input stream has been parsed into preprocessing tokens up to a
296296
given character:
297-
298297
\begin{itemize}
299298
\indextext{literal!string!raw}%
300299
\item If the next character begins a sequence of characters that could be the prefix

0 commit comments

Comments
 (0)