Skip to content

Commit f9fe084

Browse files
authored
Merge pull request #1676 from wilzbach/add-labels-to-other
Add labels to spec
2 parents e22a90e + 23d4c1c commit f9fe084

File tree

11 files changed

+45
-45
lines changed

11 files changed

+45
-45
lines changed

spec/arrays.dd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -889,7 +889,7 @@ import std.stdio;
889889
writefln("the string is '%s'", str);
890890
---------
891891

892-
$(H3 Void Arrays)
892+
$(H3 $(LNAME2 void_arrays, Void Arrays))
893893

894894
$(P There is a special type of array which acts as a wildcard that can hold
895895
arrays of any kind, declared as $(D void[]). Void arrays are used for

spec/class.dd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -811,7 +811,7 @@ class Foo
811811
}
812812
------
813813

814-
$(H3 Shared Static Constructors)
814+
$(H3 $(LNAME2 shared_static_constructors, Shared Static Constructors))
815815

816816
$(GRAMMAR
817817
$(GNAME SharedStaticConstructor):
@@ -823,7 +823,7 @@ $(GNAME SharedStaticConstructor):
823823
and are intended for initializing any shared global data.
824824
)
825825

826-
$(H3 Shared Static Destructors)
826+
$(H3 $(LNAME2 shared_static_destructors, Shared Static Destructors))
827827

828828
$(GRAMMAR
829829
$(GNAME SharedStaticDestructor):

spec/cpp_interface.dd

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ $(SPEC_S Interfacing to C++,
88
through a $(DDLINK spec/interfaceToC, Interfacing to C, C interface) or a
99
COM interface.)
1010

11-
$(H2 The General Idea)
11+
$(H2 $(LNAME2 general_idea, The General Idea))
1212

1313
$(P Being 100% compatible with C++ means more or less adding
1414
a fully functional C++ compiler front end to D.
@@ -45,7 +45,7 @@ $(H2 $(LNAME2 global-functions, Global Functions))
4545
$(P C++ global functions, including those in namespaces, can be declared
4646
and called in D, or defined in D and called in C++.)
4747

48-
$(H3 Calling C++ Global Functions from D)
48+
$(H3 $(LNAME2 calling_cpp_global_from_d, Calling C++ Global Functions from D))
4949

5050
$(P Given a C++ function in a C++ source file:)
5151

@@ -113,7 +113,7 @@ k = 3
113113

114114
)
115115

116-
$(H3 Calling Global D Functions From C++)
116+
$(H3 $(LNAME2 calling_global_d_functions_from_cpp, Calling Global D Functions From C++))
117117

118118
$(P To make a D function accessible from C++, give it
119119
C++ linkage:)
@@ -186,8 +186,8 @@ $(H2 $(LNAME2 classes, Classes))
186186
$(P Unlike classes and interfaces with D linkage, $(CODE extern (C++))
187187
classes and interfaces are not rooted in $(CODE Object) and cannot be used
188188
with $(CODE typeid).)
189-
190-
$(P D structs and classes have different semantics whereas C++ structs and
189+
190+
$(P D structs and classes have different semantics whereas C++ structs and
191191
classes are basically the same. The use of a D struct or class depends on
192192
the C++ implementation and not on the used C++ keyword.
193193
When mapping a D $(CODE class) onto a C++ $(CODE struct),
@@ -205,7 +205,7 @@ class Bar
205205
}
206206
---
207207

208-
$(H3 Using C++ Classes From D)
208+
$(H3 $(LNAME2 using_cpp_classes_from_d, Using C++ Classes From D))
209209

210210
$(P The following example shows binding of a pure virtual function, its
211211
implementation in a derived class, a non-virtual member function, and a
@@ -315,7 +315,7 @@ instead disabled on the D side; an alternative would be to reimplement the
315315
constructor in D. See the $(DDSUBLINK spec/cpp_interface, lifetime-management,
316316
section below on lifetime management) for more information.)
317317

318-
$(H3 Using D Classes From C++)
318+
$(H3 $(LNAME2 using_d_classes_from_cpp, Using D Classes From C++))
319319

320320
$(P Given D code like:)
321321

@@ -750,7 +750,7 @@ $(H2 $(LNAME2 exception-handling, Exception Handling))
750750
directly in C++ code (but they will be throwable indirectly by calling into
751751
a D function with C++ linkage).)
752752

753-
$(SECTION2 Comparing D Immutable and Const with C++ Const,
753+
$(SECTION2 $(LNAME2 comparing-d-immutable-and-const-with-cpp-const, Comparing D Immutable and Const with C++ Const),
754754

755755
$(TABLE_SPECIAL $(ARGS Const, Immutable Comparison),
756756
$(THEAD Feature, D, C++98)

spec/ddoc.dd

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ a line immediately followed by a ':'. This name forms the section name.
202202
The section name is not case sensitive.
203203
)
204204

205-
$(H4 Summary)
205+
$(H4 $(LNAME2 summary, Summary))
206206

207207
$(P
208208
The first section is the $(I Summary), and does not have a section name.
@@ -211,7 +211,7 @@ While the summary can be any length, try to keep it to one line.
211211
The $(I Summary) section is optional.
212212
)
213213

214-
$(H4 Description)
214+
$(H4 $(LNAME2 description, Description))
215215

216216
$(P
217217
The next unnamed section is the $(I Description).
@@ -446,17 +446,17 @@ $(DD The syntax is $(B /c/string/), where $(B c)
446446
------------------------------------
447447
)
448448

449-
$(H2 Highlighting)
449+
$(H2 $(LNAME2 highlighting, Highlighting))
450450

451-
$(H4 Embedded Comments)
451+
$(H4 $(LNAME2 embedded_comments, Embedded Comments))
452452

453453
$(P
454454
The documentation comments can themselves be commented using
455455
the $(DOLLAR)$(D (DDOC_COMMENT comment text)) syntax. These comments do not
456456
nest.
457457
)
458458

459-
$(H4 Embedded Code)
459+
$(H4 $(LNAME2 embedded_code, Embedded Code))
460460

461461
$(P
462462
D code can be embedded using lines beginning with at least three
@@ -485,7 +485,7 @@ $(P
485485
so that $(D_COMMENT /* ... */) can be used inside the code section.
486486
)
487487

488-
$(H4 Inline Code)
488+
$(H4 $(LNAME2 inline_code, Inline Code))
489489

490490
$(P
491491
Inline code can be written between backtick characters ($(BACKTICK)), similarly
@@ -514,7 +514,7 @@ $(P
514514
void bar() {}
515515
---
516516

517-
$(H4 Embedded HTML)
517+
$(H4 $(LNAME2 embedded_html, Embedded HTML))
518518

519519
$(P
520520
HTML can be embedded into the documentation comments, and it will
@@ -535,7 +535,7 @@ best to avoid using it where practical.
535535
*/
536536
------------------------------------
537537

538-
$(H4 Emphasis)
538+
$(H4 $(LNAME2 emphasis, Emphasis))
539539

540540
$(P
541541
Identifiers in documentation comments that are function parameters or are
@@ -548,7 +548,7 @@ To prevent unintended emphasis of an identifier, it can be preceded by
548548
an underscore ($(UNDERSCORE)). The underscore will be stripped from the output.
549549
)
550550

551-
$(H4 Character Entities)
551+
$(H4 $(LNAME2 character_entities, Character Entities))
552552

553553
$(P
554554
Some characters have special meaning
@@ -567,7 +567,7 @@ $(P
567567
special character is not immediately followed by a $(HASH) or a letter.
568568
)
569569

570-
$(H4 No Documentation)
570+
$(H4 $(LNAME2 no_documentation, No Documentation))
571571

572572
$(P
573573
No documentation is generated for the following constructs,
@@ -582,7 +582,7 @@ $(P
582582
$(LI Class info, type info, and module info)
583583
)
584584

585-
$(H2 Macros)
585+
$(H2 $(LNAME2 macros, Macros))
586586

587587
$(P
588588
The documentation comment processor includes a simple macro
@@ -979,7 +979,7 @@ $(H3 $(LNAME2 macro_def_ddocgenerated, Macro Definitions Generated by Ddoc))
979979
)
980980
)
981981

982-
$(H2 Using Ddoc to generate examples from unit tests)
982+
$(H2 $(LNAME2 using_ddoc_to_generate_examples, Using Ddoc to generate examples from unit tests))
983983

984984
$(P
985985
Ddoc can automatically generate usage examples for declarations
@@ -1005,7 +1005,7 @@ unittest
10051005
$(DPLLINK unittest.html#documented-unittests, documented unit tests).
10061006
)
10071007

1008-
$(H2 Using Ddoc for other Documentation)
1008+
$(H2 $(LNAME2 using_ddoc_for_other_documentation, Using Ddoc for other Documentation))
10091009

10101010
$(P
10111011
Ddoc is primarily designed for use in producing documentation
@@ -1043,7 +1043,7 @@ $(P
10431043
cross-site scripting).
10441044
)
10451045

1046-
$(H2 Links to D documentation generators)
1046+
$(H2 $(LNAME2 links_to_d_documentation_generators, Links to D documentation generators))
10471047

10481048
$(P
10491049
A list of current D documentation generators which use Ddoc

spec/iasm.dd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ $(GNAME Register64):
187187
$(D YMM8) $(D YMM9) $(D YMM10) $(D YMM11) $(D YMM12) $(D YMM13) $(D YMM14) $(D YMM15)
188188
)
189189

190-
$(H3 Special Cases)
190+
$(H3 $(LNAME2 special_cases, Special Cases))
191191

192192
$(DL
193193
$(DT $(D lock), $(D rep), $(D repe), $(D repne), $(D repnz), $(D repz))
@@ -1072,7 +1072,7 @@ $(H3 $(LNAME2 simd, SIMD))
10721072
$(P SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2 and AVX are supported.)
10731073

10741074
$(COMMENT
1075-
$(H3 Other)
1075+
$(H3 $(LNAME2 other, Other))
10761076
$(P AES, CMUL, FSGSBASE, RDRAND, FP16C and FMA are supported.)
10771077
)
10781078

spec/memory-safe-d.dd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ $(SPEC_S Memory Safety,
2121
)
2222
)
2323

24-
$(H3 Usage)
24+
$(H3 $(LNAME2 usage, Usage))
2525

2626
$(P Memory safety can be enabled on a per-function basis using
2727
the $(DDSUBLINK spec/function, safe-functions, $(D @safe) attribute).
@@ -36,7 +36,7 @@ $(H3 Usage)
3636
-release) mode.
3737
)
3838

39-
$(H3 Limitations)
39+
$(H3 $(LNAME2 limitations, Limitations))
4040

4141
$(P Memory safety does not imply that code is portable, uses only
4242
sound programming practices, is free of byte order dependencies,

spec/operatoroverloading.dd

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ int foo(S s)
8585
}
8686
---
8787

88-
$(H3 Postincrement $(I e)$(D ++) and Postdecrement $(I e)$(D --) Operators)
88+
$(H3 $(LNAME2 postincrement_postdecrement_operators, Postincrement $(I e)$(D ++) and Postdecrement $(I e)$(D --) Operators))
8989

9090
$(P These are not directly overloadable, but instead are rewritten
9191
in terms of the ++$(I e) and --$(I e) prefix operators:
@@ -101,7 +101,7 @@ $(H3 Postincrement $(I e)$(D ++) and Postdecrement $(I e)$(D --) Operators)
101101
$(ARGS $(D $(LPAREN)auto t =) $(I e)$(D , ++)$(I e)$(D , t$(RPAREN))))
102102
)
103103

104-
$(H3 Overloading Index Unary Operators)
104+
$(H3 $(LNAME2 index_unary_operators, Overloading Index Unary Operators))
105105

106106
$(TABLE2 Overloadable Index Unary Operators,
107107
$(THEAD $(I op), $(I rewrite))
@@ -130,7 +130,7 @@ $(H3 Overloading Index Unary Operators)
130130
)
131131
)
132132

133-
$(H3 Overloading Slice Unary Operators)
133+
$(H3 $(LNAME2 slice_unary_operators, Overloading Slice Unary Operators))
134134

135135
$(TABLE2 Overloadable Slice Unary Operators,
136136
$(THEAD $(I op), $(I rewrite))
@@ -202,7 +202,7 @@ $(H3 Overloading Slice Unary Operators)
202202

203203
$(H2 $(LEGACY_LNAME2 Cast, cast, Cast Operator Overloading))
204204

205-
$(P To define how one type can be cast to another, define the
205+
$(P To define how one type can be cast to another, define the
206206
`opCast` template method, which is used as follows:)
207207
$(TABLE2 Cast Operators,
208208
$(THEAD $(I op), $(I rewrite))
@@ -216,7 +216,7 @@ $(H2 $(LEGACY_LNAME2 Cast, cast, Cast Operator Overloading))
216216
expression, except in the case of boolean operations (see next
217217
section))
218218

219-
$(H3 Boolean Operations)
219+
$(H3 $(LNAME2 boolean_operators, Boolean Operations))
220220

221221
$(P Notably absent from the list of overloaded unary operators is the !
222222
logical negation operator. More obscurely absent is a unary operator
@@ -571,7 +571,7 @@ $(H2 $(LEGACY_LNAME2 Assignment, assignment, Assignment Operator Overloading))
571571
c = 1; // Rewritten to c.opAssign(1);
572572
---
573573

574-
$(H3 Index Assignment Operator Overloading)
574+
$(H3 $(LNAME2 index_assignment_operator, Index Assignment Operator Overloading))
575575

576576
$(P If the left hand side of an assignment is an index operation
577577
on a struct or class instance,
@@ -593,7 +593,7 @@ void test()
593593
}
594594
-------
595595

596-
$(H3 Slice Assignment Operator Overloading)
596+
$(H3 $(LNAME2 slice_assignment_operator, Slice Assignment Operator Overloading))
597597

598598
$(P If the left hand side of an assignment is a slice operation on a
599599
struct or class instance, it can be overloaded by implementing an $(D
@@ -653,7 +653,7 @@ a $(METACODE op)= b
653653
a.opOpAssign!($(DOUBLEQUOTE $(METACODE op)))(b)
654654
---
655655

656-
$(H3 Index Op Assignment Operator Overloading)
656+
$(H3 $(LNAME2 index_op_assignment, Index Op Assignment Operator Overloading))
657657

658658
$(P If the left hand side of an $(I op)= is an index expression on
659659
a struct or class instance and $(D opIndexOpAssign) is a member:)
@@ -668,7 +668,7 @@ a[$(METACODE $(ARGUMENTS))] $(METACODE op)= c
668668
a.opIndexOpAssign!($(DOUBLEQUOTE $(METACODE op)))(c, $(METACODE $(ARGUMENTS)))
669669
---
670670

671-
$(H3 Slice Op Assignment Operator Overloading)
671+
$(H3 $(LNAME2 slice_op_assignment, Slice Op Assignment Operator Overloading))
672672

673673
$(P If the left hand side of an $(I op)= is a slice expression on
674674
a struct or class instance and $(D opIndexOpAssign) is a member:)

spec/pragma.dd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ pragma(startaddress, foo);
158158
)
159159
)
160160

161-
$(H3 Vendor Specific Pragmas)
161+
$(H3 $(LNAME2 vendor_specific_pragmas, Vendor Specific Pragmas))
162162

163163
$(P Vendor specific pragma $(I Identifier)s can be defined if they
164164
are prefixed by the vendor's trademarked name, in a similar manner

spec/property.dd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ $(THEAD Property, Description)
6565
$(TROW $(RELATIVE_LINK2 classinfo, $(D .classinfo)), Information about the dynamic type of the class)
6666
)
6767

68-
$(SECTION3 $(LNAME2 init, .init) Property,
68+
$(SECTION3 $(LNAME2 init, .init Property),
6969

7070
$(P $(D .init) produces a constant expression that is the default
7171
initializer. If applied to a type, it is the default initializer
@@ -144,7 +144,7 @@ void main()
144144
)
145145
)
146146

147-
$(SECTION3 $(LNAME2 stringof, .stringof) Property,
147+
$(SECTION3 $(LNAME2 stringof, .stringof Property),
148148

149149
$(P $(D .stringof) produces a constant string that is the
150150
source representation of its prefix.
@@ -226,7 +226,7 @@ $(SECTION3 $(LNAME2 alignof, .alignof Property),
226226
)
227227
)
228228

229-
$(SECTION3 $(LNAME2 classinfo, .classinfo) Property,
229+
$(SECTION3 $(LNAME2 classinfo, .classinfo Property),
230230

231231
$(P $(CODE .classinfo) provides information about the dynamic type
232232
of a class object.

spec/struct.dd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ $(TROW $(D .sizeof), Size in bytes of struct)
289289
$(TROW $(D .alignof), Size boundary struct needs to be aligned on)
290290
$(TROW $(D .tupleof), Gets type tuple of fields))
291291

292-
$(H3 Struct Field Properties)
292+
$(H3 $(LNAME2 struct_field_properties, Struct Field Properties))
293293

294294
$(TABLE2 Struct Field Properties,
295295
$(THEAD Name, Description)

0 commit comments

Comments
 (0)