Skip to content

Commit 5dd8247

Browse files
committed
fix more links
1 parent 2b3f724 commit 5dd8247

File tree

12 files changed

+44
-44
lines changed

12 files changed

+44
-44
lines changed

arrays.dd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ $(SPEC_S Arrays,
1212

1313
$(TR $(TD $(I type)[]) $(TD $(LINK2 #dynamic-arrays, Dynamic arrays)))
1414

15-
$(TR $(TD $(I type)[$(I type)]) $(TD $(LINK2 hash-map.html, Associative arrays)))
15+
$(TR $(TD $(I type)[$(I type)]) $(TD $(LINK2 $(WEB hash-map.html)$(EBOOK #Associative Arrays), Associative arrays)))
1616
)
1717

1818
<h3>$(LNAME2 pointers, Pointers)</h3>

class.dd

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ $(UL
7878
$(LI $(LINK2 #member-functions, member functions)
7979
$(UL
8080
$(LI static member functions)
81-
$(LI $(LINK2 function.html#virtual-functions, Virtual Functions))
81+
$(LI $(LINK2 $(WEB function.html)#virtual-functions, Virtual Functions))
8282
$(LI $(LINK2 #synchronized-functions, Synchronized Functions))
8383
$(LI $(LINK2 #constructors, Constructors))
8484
$(LI $(LINK2 #destructors, Destructors))
@@ -87,7 +87,7 @@ $(UL
8787
$(LI $(GLINK SharedStaticConstructor)s)
8888
$(LI $(GLINK SharedStaticDestructor)s)
8989
$(LI $(LINK2 #invariants, Class Invariants))
90-
$(LI $(LINK2 unittest.html#unittest, Unit Tests))
90+
$(LI $(LINK2 $(WEB unittest.html)#unittest, Unit Tests))
9191
$(LI $(LINK2 #allocators, Class Allocators))
9292
$(LI $(LINK2 #deallocators, Class Deallocators))
9393
$(V2
@@ -750,7 +750,7 @@ new(1,2) Foo(a); // calls new(Foo.sizeof,1,2)
750750
)
751751

752752
$(P See also
753-
$(LINK2 memory.html#newdelete, Explicit Class Instance Allocation).
753+
$(LINK2 $(WEBURL)memory.html#newdelete, Explicit Class Instance Allocation).
754754
)
755755

756756
<h3>$(LNAME2 deallocators, Class Deallocators)</h3>
@@ -793,7 +793,7 @@ delete f;
793793
)
794794

795795
$(P See also
796-
$(LINK2 memory.html#newdelete, Explicit Class Instance Allocation).
796+
$(LINK2 $(WEBURL)memory.html#newdelete, Explicit Class Instance Allocation).
797797
)
798798

799799
$(V2
@@ -1075,7 +1075,7 @@ void test() {
10751075
}
10761076
----
10771077

1078-
<h3>$(LNAME2 anonymous, Anonymous Nested Classes)</h3>
1078+
<h3>Anonymous Nested Classes</h3>
10791079

10801080
$(P An anonymous nested class is both defined and instantiated with
10811081
a $(I NewAnonClassExpression):

errors.dd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ How does this meet our assumptions about errors?
177177
</dl>
178178

179179
Using exceptions to handle errors leads to another issue - how to write
180-
exception safe programs. $(LINK2 exception-safe.html, Here's how).
180+
exception safe programs. $(LINK2 $(WEBURL)exception-safe.html, Here's how).
181181

182182
$(COMMENT
183183
$(OL

expression.dd

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ $(GNAME RelExpression):
519519
$(LI "Exception" means the $(I Invalid Exception) is raised if one
520520
of the operands is a NAN. It does not mean an exception
521521
is thrown. The $(I Invalid Exception) can be checked
522-
using the functions in $(LINK2 phobos/std_c_fenv.html, std.c.fenv).
522+
using the functions in $(LINK2 $(WEBURL)phobos/std_c_fenv.html, std.c.fenv).
523523
)
524524
)
525525

@@ -707,7 +707,7 @@ $(GNAME UnaryExpression):
707707
$(GLINK NewExpression)
708708
$(GLINK DeleteExpression)
709709
$(GLINK CastExpression)
710-
$(LINK2 class.html#anonymous, $(I NewAnonClassExpression))
710+
$(GLINK2 class, NewAnonClassExpression)
711711
)
712712

713713

@@ -1058,7 +1058,7 @@ $(V2 $(B __FILE__)
10581058
$(GLINK AssertExpression)
10591059
$(GLINK MixinExpression)
10601060
$(GLINK ImportExpression)
1061-
$(LINK2 declaration.html#BasicTypeX, $(I BasicType)) $(B .) $(I Identifier)
1061+
$(LINK2 $(WEB declaration.html)#BasicTypeX, $(I BasicType)) $(B .) $(I Identifier)
10621062
$(GLINK2 declaration, Typeof)
10631063
$(GLINK TypeidExpression)
10641064
$(GLINK IsExpression)
@@ -1393,8 +1393,8 @@ double test() {
13931393
}
13941394
-------------
13951395

1396-
When comparing with <a href="function.html#nested">nested
1397-
functions</a>, the $(B function) form is analogous to static
1396+
When comparing with $(LINK2 $(WEB function.html)#nested, nested functions),
1397+
the $(B function) form is analogous to static
13981398
or non-nested functions, and the $(B delegate) form is
13991399
analogous to non-static nested functions. In other words,
14001400
a delegate literal can access stack variables in its enclosing
@@ -1417,7 +1417,7 @@ $(GNAME AssertExpression):
14171417
evaluate assert expressions at all.
14181418
The result type of an assert expression is $(TT void).
14191419
Asserts are a fundamental part of the
1420-
<a href="dbc.html">Contract Programming</a>
1420+
$(LINK2 $(WEB dbc.html)$(EBOOK #Contract Programming), Contract Programming)
14211421
support in D.
14221422
)
14231423

@@ -1507,20 +1507,20 @@ $(V2 $(B typeid $(LPAREN)) $(GLINK Expression) $(B $(RPAREN)))
15071507

15081508
$(V1
15091509
$(P Returns an instance of class
1510-
$(LINK2 phobos/object.html, $(B TypeInfo))
1510+
$(LINK2 $(WEBURL)phobos/object.html, $(B TypeInfo))
15111511
corresponding
15121512
to $(I Type).
15131513
)
15141514
)
15151515
$(V2
15161516
$(P If $(I Type), returns an instance of class
1517-
$(LINK2 phobos/object.html, $(B TypeInfo))
1517+
$(LINK2 $(WEBURL)phobos/object.html, $(B TypeInfo))
15181518
corresponding
15191519
to $(I Type).
15201520
)
15211521

15221522
$(P If $(I Expression), returns an instance of class
1523-
$(LINK2 phobos/object.html, $(B TypeInfo))
1523+
$(LINK2 $(WEBURL)phobos/object.html, $(B TypeInfo))
15241524
corresponding
15251525
to the type of the $(I Expression).
15261526
If the type is a class, it returns the $(B TypeInfo)

float.dd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ $(V2
177177
)
178178

179179
$(P These flags can be set/reset via the functions in
180-
$(LINK2 phobos/std_c_fenv.html, std.c.fenv).)
180+
$(LINK2 $(WEBURL)phobos/std_c_fenv.html, std.c.fenv).)
181181

182182
<h3>Floating Point Comparisons</h3>
183183

@@ -194,7 +194,7 @@ $(V2
194194
!&lt;&gt;
195195
and match the semantics for the
196196
NCEG extensions to C.
197-
See $(LINK2 expression.html#floating_point_comparisons, Floating point comparisons).
197+
See $(LINK2 $(WEB expression.html)#floating_point_comparisons, Floating point comparisons).
198198
)
199199

200200
<h3><a name="floating-point-transformations">Floating Point Transformations</a></h2>

function.dd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ $(V2
5656
are restored to their initial state upon function entry)
5757
$(LI perform impure operations in statements that are in a
5858
$(GLINK2 version, ConditionalStatement)
59-
controlled by a $(LINK2 version.html#debug, $(I DebugCondition)).)
59+
controlled by a $(GLINK2 version, DebugCondition).)
6060
)
6161

6262
$(P A pure function can throw exceptions.)
@@ -1630,7 +1630,7 @@ $(V2
16301630

16311631
$(P $(I Safe functions) are functions that are statically checked
16321632
to exhibit no possibility of
1633-
$(LINK2 glossary.html#undefined_behavior, $(I undefined behavior)).
1633+
$(LINK2 $(WEBURL)glossary.html#undefined_behavior, $(I undefined behavior)).
16341634
Undefined behavior is often used as a vector for malicious
16351635
attacks.
16361636
)
@@ -1704,7 +1704,7 @@ $(V2
17041704
<h2>$(LNAME2 function-attribute-inference, Function Attribute Inference)</h2>
17051705

17061706
$(P $(GLINK2 expression, FunctionLiteral)s and
1707-
$(LINK2 template.html#function-templates, function template)s, since their function bodies
1707+
$(LINK2 $(WEB template.html)#function-templates, function template)s, since their function bodies
17081708
are always present, infer the
17091709
$(LINK2 #pure-functions, $(B pure)),
17101710
$(LINK2 #nothrow-functions, $(B nothrow)), and

garbage.dd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ $(SPEC_S Garbage Collection,
129129
)
130130

131131
$(P These constraints are addressed by techniques outlined
132-
in <a href="memory.html">Memory Management</a>.
132+
in $(LINK2 $(WEBURL)memory.html, Memory Management).
133133
)
134134

135135
<h2>How Garbage Collection Works</h2>

property.dd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ $(TR $(TH Property) $(TH Description))
2424
$(TR $(TD $(LINK2 #init, .init)) $(TD initializer))
2525
$(TR $(TD $(LINK2 #sizeof, .sizeof)) $(TD size in bytes (equivalent to C's sizeof(type))))
2626
$(TR $(TD $(LINK2 #alignof, .alignof)) $(TD alignment size))
27-
$(TR $(TD $(LINK2 #mangleof, .mangleof)) $(TD string representing the $(SINGLEQUOTE mangled) representation of the type))
27+
$(TR $(TD .mangleof) $(TD string representing the $(SINGLEQUOTE mangled) representation of the type))
2828
$(TR $(TD $(LINK2 #stringof, .stringof)) $(TD string representing the source representation of the type))
2929
)
3030

@@ -172,8 +172,8 @@ $(SECTION2 $(LNAME2 classinfo, .classinfo) Property,
172172

173173
$(P $(CODE .classinfo) provides information about the dynamic type
174174
of a class object.
175-
$(V1 It returns a reference to type $(LINK2 phobos/object.html, object.ClassInfo).)
176-
$(V2 It returns a reference to type $(LINK2 phobos/object.html#TypeInfo_Class, object.TypeInfo_Class).)
175+
$(V1 It returns a reference to type $(LINK2 $(WEBURL)phobos/object.html, object.ClassInfo).)
176+
$(V2 It returns a reference to type $(LINK2 $(WEBURL)phobos/object.html#TypeInfo_Class, object.TypeInfo_Class).)
177177
)
178178
)
179179

statement.dd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1159,7 +1159,7 @@ $(I ReturnStatement):
11591159
<p>
11601160

11611161
If there is an out postcondition
1162-
(see $(LINK2 dbc.html, Contract Programming)),
1162+
(see $(LINK2 $(WEB dbc.html)$(EBOOK #Contract Programming), Contract Programming)),
11631163
that postcondition is executed
11641164
after the $(EXPRESSION) is evaluated and before the function
11651165
actually returns.

struct.dd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ $(SPEC_S Structs &amp; Unions,
55
$(P Whereas classes are reference types, structs are value types.
66
Any C struct can be exactly represented as a D struct.
77
In C++ parlance, a D struct is a
8-
$(LINK2 glossary.html#pod, POD (Plain Old Data)) type,
8+
$(LINK2 $(WEBURL)glossary.html#pod, POD (Plain Old Data)) type,
99
with a trivial constructors and destructors.
1010
Structs and unions are meant as simple aggregations of data, or as a way
1111
to paint a data structure over hardware or an external type. External
@@ -342,7 +342,7 @@ $(V2
342342
$(TR
343343
$(TD inner nesting)
344344
$(TD $(LINK2 #nested, YES))
345-
$(TD $(LINK2 class.html#nested, YES))
345+
$(TD $(LINK2 $(WEB class.html)#nested, YES))
346346
$(NO)
347347
$(NO)
348348
$(NO)

template-comparison.dd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ return Foo_foo&lt;char,int&gt('c',3);
265265

266266
$(TR
267267
$(TD Compile time execution of functions)
268-
$(TD $(LINK2 function.html#interpretation, Yes):
268+
$(TD $(LINK2 $(WEB function.html)#interpretation, Yes):
269269
---
270270
int factorial(int i)
271271
{ if (i == 0)

version.dd

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -57,17 +57,13 @@ $(GNAME ConditionalStatement):
5757

5858
$(GRAMMAR
5959
$(GNAME Condition):
60-
$(LINK2 #version, $(I VersionCondition))
61-
$(LINK2 #debug, $(I DebugCondition))
60+
$(GLINK VersionCondition)
61+
$(GLINK DebugCondition)
6262
$(GLINK StaticIfCondition)
6363
)
6464

6565
<h2>$(LNAME2 version, Version Condition)</h2>
6666

67-
$(P Versions enable multiple versions of a module to be implemented
68-
with a single source file.
69-
)
70-
7167
$(GRAMMAR
7268
$(GNAME VersionCondition):
7369
$(B version $(LPAREN)) $(GLINK2 lex, IntegerLiteral) $(B $(RPAREN))
@@ -76,6 +72,10 @@ $(V2
7672
$(B version $(LPAREN)) $(B unittest) $(B $(RPAREN)))
7773
)
7874

75+
$(P Versions enable multiple versions of a module to be implemented
76+
with a single source file.
77+
)
78+
7979
$(P The $(I VersionCondition) is satisfied if the $(I IntegerLiteral)
8080
is greater than or equal to the current $(I version level),
8181
or if $(I Identifier) matches a $(I version identifier).
@@ -245,12 +245,12 @@ $(V2
245245
$(TR $(TD $(B LittleEndian)) $(TD Byte order, least significant first))
246246
$(TR $(TD $(B BigEndian)) $(TD Byte order, most significant first))
247247
$(TR $(TD $(B D_Coverage)) $(TD $(LINK2 $(WEBURL)code_coverage.html, Code coverage analysis) instrumentation (command line $(LINK2 $(WEBURL)dmd-windows.html#switches, switch) $(B -cov)) is being generated))
248-
$(TR $(TD $(B D_Ddoc)) $(TD $(LINK2 ddoc.html, Ddoc) documentation (command line $(LINK2 $(WEBURL)dmd-windows.html#switches, switch) $(B -D)) is being generated))
248+
$(TR $(TD $(B D_Ddoc)) $(TD $(LINK2 $(WEB ddoc.html)$(EBOOK #Embedded Documentation), Ddoc) documentation (command line $(LINK2 $(WEBURL)dmd-windows.html#switches, switch) $(B -D)) is being generated))
249249
$(TR $(TD $(B D_InlineAsm_X86)) $(TD $(LINK2 $(WEB iasm.html)$(EBOOK #Inline Assembler), Inline assembler) for X86 is implemented))
250250
$(TR $(TD $(B D_InlineAsm_X86_64)) $(TD $(LINK2 $(WEB iasm.html)$(EBOOK #Inline Assembler), Inline assembler) for X86-64 is implemented))
251251
$(TR $(TD $(B D_LP64)) $(TD Pointers are 64 bits (command line $(LINK2 $(WEBURL)dmd-windows.html#switches, switch) $(B -m64))))
252252
$(TR $(TD $(B D_PIC)) $(TD Position Independent Code (command line $(LINK2 $(WEBURL)dmd-windows.html#switches, switch) $(B -fPIC)) is being generated))
253-
$(V2 $(TR $(TD $(B unittest)) $(TD $(LINK2 unittest.html, Unit tests) are enabled (command line $(LINK2 $(WEBURL)dmd-windows.html#switches, switch) $(B -unittest)))))
253+
$(V2 $(TR $(TD $(B unittest)) $(TD $(LINK2 $(WEB unittest.html)$(EBOOK #Unit Tests), Unit tests) are enabled (command line $(LINK2 $(WEBURL)dmd-windows.html#switches, switch) $(B -unittest)))))
254254
$(V2 $(TR $(TD $(B D_Version2)) $(TD This is a D version 2 compiler)))
255255
$(TR $(TD $(B none)) $(TD Never defined; used to just disable a section of code))
256256
$(TR $(TD $(B all)) $(TD Always defined; used as the opposite of $(B none)))
@@ -292,6 +292,13 @@ version(DigitalMars_funky_extension)
292292

293293
<h2>$(LNAME2 debug, Debug Condition)</h2>
294294

295+
$(GRAMMAR
296+
$(GNAME DebugCondition):
297+
$(B debug)
298+
$(B debug $(LPAREN)) $(GLINK2 lex, IntegerLiteral) $(B $(RPAREN))
299+
$(B debug $(LPAREN)) $(I Identifier) $(B $(RPAREN))
300+
)
301+
295302
$(P Two versions of programs are commonly built,
296303
a release build and a debug build.
297304
The debug build includes extra error checking code,
@@ -302,13 +309,6 @@ version(DigitalMars_funky_extension)
302309
with $(CODE #ifdef DEBUG) / $(CODE #endif) pairs.
303310
)
304311

305-
$(GRAMMAR
306-
$(GNAME DebugCondition):
307-
$(B debug)
308-
$(B debug $(LPAREN)) $(GLINK2 lex, IntegerLiteral) $(B $(RPAREN))
309-
$(B debug $(LPAREN)) $(I Identifier) $(B $(RPAREN))
310-
)
311-
312312
$(P The $(B debug) condition is satisfied when the $(B -debug) switch is
313313
thrown on the compiler.
314314
)

0 commit comments

Comments
 (0)