From 9eae6a02493d1a41bd342896607a1a0891bd23ca Mon Sep 17 00:00:00 2001 From: nsz Date: Thu, 21 Jul 2011 17:31:26 +0200 Subject: [PATCH] format definitions in section 3.x --- ann2html.sh | 8 +++++++ n1256.html | 58 +++++++++++++++++++++++----------------------- n1548.html | 66 ++++++++++++++++++++++++++--------------------------- 3 files changed, 70 insertions(+), 62 deletions(-) diff --git a/ann2html.sh b/ann2html.sh index ad4413d..6950da2 100755 --- a/ann2html.sh +++ b/ann2html.sh @@ -85,6 +85,10 @@ seencontents && !seenfore && /^[^@]/ { next } +/^@sect 3\./ { + markdef = 1 +} + /^@sect/ { sid++ slevel = split($2,a,/\./)+1 @@ -218,6 +222,10 @@ seencontents && !seenfore && /^[^@]/ { } s = p s sub(/^ *Forward references/, "

&", s) + if (markdef) { + s = "" s "
" + markdef = 0 + } if (pre) pre = pre "\n" s else if (nn) diff --git a/n1256.html b/n1256.html index 52cdafe..3ae6a94 100644 --- a/n1256.html +++ b/n1256.html @@ -595,7 +595,7 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007

3.1

- access + access
<execution-time action> to read or modify the value of an object

NOTE 1 Where only one of these two actions is meant, ''read'' or ''modify'' is used. @@ -609,13 +609,13 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007

3.2

- alignment + alignment
requirement that objects of a particular type be located on storage boundaries with addresses that are particular multiples of a byte address

3.3

- argument + argument
actual argument actual parameter (deprecated) expression in the comma-separated list bounded by the parentheses in a function call @@ -624,12 +624,12 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007

3.4

- behavior + behavior
external appearance or action

3.4.1

- implementation-defined behavior + implementation-defined behavior
unspecified behavior where each implementation documents how the choice is made

EXAMPLE An example of implementation-defined behavior is the propagation of the high-order bit @@ -638,7 +638,7 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007

3.4.2

- locale-specific behavior + locale-specific behavior
behavior that depends on local conventions of nationality, culture, and language that each implementation documents @@ -649,7 +649,7 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007

3.4.3

- undefined behavior + undefined behavior
behavior, upon use of a nonportable or erroneous program construct or of erroneous data, for which this International Standard imposes no requirements

@@ -664,7 +664,7 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007

3.4.4

- unspecified behavior + unspecified behavior
use of an unspecified value, or other behavior where this International Standard provides two or more possibilities and imposes no further requirements on which is chosen in any instance @@ -675,7 +675,7 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007

3.5

- bit + bit
unit of data storage in the execution environment large enough to hold an object that may have one of two values

@@ -684,7 +684,7 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007

3.6

- byte + byte
addressable unit of data storage large enough to hold any member of the basic character set of the execution environment

@@ -698,20 +698,20 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007

3.7

- character + character
<abstract> member of a set of elements used for the organization, control, or representation of data

3.7.1

- character + character
single-byte character <C> bit representation that fits in a byte

3.7.2

- multibyte character + multibyte character
sequence of one or more bytes representing a member of the extended character set of either the source or the execution environment

@@ -720,49 +720,49 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007

3.7.3

- wide character + wide character
bit representation that fits in an object of type wchar_t, capable of representing any character in the current locale

3.8

- constraint + constraint
restriction, either syntactic or semantic, by which the exposition of language elements is to be interpreted

3.9

- correctly rounded result + correctly rounded result
representation in the result format that is nearest in value, subject to the current rounding mode, to what the result would be given unlimited range and precision

3.10

- diagnostic message + diagnostic message
message belonging to an implementation-defined subset of the implementation's message output

3.11

- forward reference + forward reference
reference to a later subclause of this International Standard that contains additional information relevant to this subclause

3.12

- implementation + implementation
particular set of software, running in a particular translation environment under particular control options, that performs translation of programs for, and supports execution of functions in, a particular execution environment

3.13

- implementation limit + implementation limit
restriction imposed upon programs by the implementation

3.14

- object + object
region of data storage in the execution environment, the contents of which can represent values @@ -772,7 +772,7 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007

3.15

- parameter + parameter
formal parameter formal argument (deprecated) object declared as part of a function declaration or definition that acquires a value on @@ -781,28 +781,28 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007

3.16

- recommended practice + recommended practice
specification that is strongly recommended as being in keeping with the intent of the standard, but that may be impractical for some implementations

3.17

- value + value
precise meaning of the contents of an object when interpreted as having a specific type

3.17.1

- implementation-defined value + implementation-defined value
unspecified value where each implementation documents how the choice is made

3.17.2

- indeterminate value + indeterminate value
either an unspecified value or a trap representation

3.17.3

- unspecified value + unspecified value
valid value of the relevant type where this International Standard imposes no requirements on which value is chosen in any instance

@@ -811,7 +811,7 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007

3.18

- ??? x??? + ??? x???
ceiling of x: the least integer greater than or equal to x

EXAMPLE ???2.4??? is 3, ???-2.4??? is -2. @@ -819,7 +819,7 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007

3.19

- ??? x??? + ??? x???
floor of x: the greatest integer less than or equal to x

EXAMPLE ???2.4??? is 2, ???-2.4??? is -3. diff --git a/n1548.html b/n1548.html index 0791bdf..6fbc9f2 100644 --- a/n1548.html +++ b/n1548.html @@ -805,7 +805,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.

3.1

- access + access
<execution-time action> to read or modify the value of an object

NOTE 1 Where only one of these two actions is meant, ''read'' or ''modify'' is used. @@ -819,13 +819,13 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.

3.2

- alignment + alignment
requirement that objects of a particular type be located on storage boundaries with addresses that are particular multiples of a byte address

3.3

- argument + argument
actual argument actual parameter (deprecated) expression in the comma-separated list bounded by the parentheses in a function call @@ -834,12 +834,12 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.

3.4

- behavior + behavior
external appearance or action

3.4.1

- implementation-defined behavior + implementation-defined behavior
unspecified behavior where each implementation documents how the choice is made

EXAMPLE An example of implementation-defined behavior is the propagation of the high-order bit @@ -848,7 +848,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.

3.4.2

- locale-specific behavior + locale-specific behavior
behavior that depends on local conventions of nationality, culture, and language that each implementation documents @@ -859,7 +859,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.

3.4.3

- undefined behavior + undefined behavior
behavior, upon use of a nonportable or erroneous program construct or of erroneous data, for which this International Standard imposes no requirements

@@ -874,7 +874,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.

3.4.4

- unspecified behavior + unspecified behavior
use of an unspecified value, or other behavior where this International Standard provides two or more possibilities and imposes no further requirements on which is chosen in any instance @@ -885,7 +885,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.

3.5

- bit + bit
unit of data storage in the execution environment large enough to hold an object that may have one of two values

@@ -894,7 +894,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.

3.6

- byte + byte
addressable unit of data storage large enough to hold any member of the basic character set of the execution environment

@@ -908,20 +908,20 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.

3.7

- character + character
<abstract> member of a set of elements used for the organization, control, or representation of data

3.7.1

- character + character
single-byte character <C> bit representation that fits in a byte

3.7.2

- multibyte character + multibyte character
sequence of one or more bytes representing a member of the extended character set of either the source or the execution environment

@@ -930,49 +930,49 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.

3.7.3

- wide character + wide character
bit representation that fits in an object of type wchar_t, capable of representing any character in the current locale

3.8

- constraint + constraint
restriction, either syntactic or semantic, by which the exposition of language elements is to be interpreted

3.9

- correctly rounded result + correctly rounded result
representation in the result format that is nearest in value, subject to the current rounding mode, to what the result would be given unlimited range and precision

3.10

- diagnostic message + diagnostic message
message belonging to an implementation-defined subset of the implementation's message output

3.11

- forward reference + forward reference
reference to a later subclause of this International Standard that contains additional information relevant to this subclause

3.12

- implementation + implementation
particular set of software, running in a particular translation environment under particular control options, that performs translation of programs for, and supports execution of functions in, a particular execution environment

3.13

- implementation limit + implementation limit
restriction imposed upon programs by the implementation

3.14

- memory location + memory location
either an object of scalar type, or a maximal sequence of adjacent bit-fields all having nonzero width @@ -1004,7 +1004,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.

3.15

- object + object
region of data storage in the execution environment, the contents of which can represent values

@@ -1013,7 +1013,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.

3.16

- parameter + parameter
formal parameter formal argument (deprecated) object declared as part of a function declaration or definition that acquires a value on @@ -1022,13 +1022,13 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.

3.17

- recommended practice + recommended practice
specification that is strongly recommended as being in keeping with the intent of the standard, but that may be impractical for some implementations

3.18

- runtime-constraint + runtime-constraint
requirement on a program when calling a library function

NOTE 1 Despite the similar terms, a runtime-constraint is not a kind of constraint as defined by 3.8, and @@ -1041,22 +1041,22 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.

3.19

- value + value
precise meaning of the contents of an object when interpreted as having a specific type

3.19.1

- implementation-defined value + implementation-defined value
unspecified value where each implementation documents how the choice is made

3.19.2

- indeterminate value + indeterminate value
either an unspecified value or a trap representation

3.19.3

- unspecified value + unspecified value
valid value of the relevant type where this International Standard imposes no requirements on which value is chosen in any instance

@@ -1065,12 +1065,12 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.

3.19.4

- trap representation + trap representation
an object representation that need not represent a value of the object type

3.19.5

- perform a trap + perform a trap
interrupt execution of the program such that no further operations are performed

NOTE In this International Standard, when the word ''trap'' is not immediately followed by @@ -1084,7 +1084,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.

3.20

- [^ x^] + [^ x^]
ceiling of x: the least integer greater than or equal to x

EXAMPLE [^2.4^] is 3, [^-2.4^] is -2. @@ -1092,7 +1092,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.

3.21

- [_ x_] + [_ x_]
floor of x: the greatest integer less than or equal to x

EXAMPLE [_2.4_] is 2, [_-2.4_] is -3. -- 2.20.1