Skip to content

Commit 2b3f724

Browse files
committed
fix links
1 parent 3d9eb7c commit 2b3f724

File tree

11 files changed

+27
-24
lines changed

11 files changed

+27
-24
lines changed

attribute.dd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ $(GNAME AttributeSpecifier):
1010
$(GNAME Attribute):
1111
$(LINK2 #linkage, $(I LinkageAttribute))
1212
$(LINK2 #align, $(I AlignAttribute))
13-
$(LINK2 pragma.html, $(I Pragma))
13+
$(GLINK2 pragma, Pragma)
1414
$(LINK2 #deprecated, $(B deprecated))
1515
$(GLINK ProtectionAttribute)
1616
$(B static)

cpp_interface.dd

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ $(SPEC_S Interfacing to C++,
44

55
$(P
66
While D is fully capable of
7-
$(LINK2 interfaceToC.html, interfacing to C),
7+
$(LINK2 $(WEB interfaceToC.html)$(EBOOK #Interfacing to C), interfacing to C),
88
its ability to interface to C++ is much more limited.
99
There are three ways to do it:
1010
)
@@ -13,13 +13,13 @@ $(SPEC_S Interfacing to C++,
1313

1414
$(LI Use C++'s ability to create a C interface, and then
1515
use D's ability to
16-
$(LINK2 interfaceToC.html, interface with C)
16+
$(LINK2 $(WEB interfaceToC.html)$(EBOOK #Interfacing to C), interface with C)
1717
to access that interface.
1818
)
1919

2020
$(LI Use C++'s ability to create a COM interface, and then
2121
use D's ability to
22-
$(LINK2 COM.html, interface with COM)
22+
$(LINK2 $(WEBURL)COM.html, interface with COM)
2323
to access that interface.
2424
)
2525

@@ -536,7 +536,7 @@ int callE(E *e) {
536536

537537
$(P D does not support bit fields. If needed, they can be emulated
538538
with shift and mask operations.
539-
$(LINK2 htod.html, htod) will convert bit fields to inline functions that
539+
$(LINK2 $(WEBURL)htod.html, htod) will convert bit fields to inline functions that
540540
do the right shift and masks.
541541
)
542542

ddoc.dd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -573,8 +573,8 @@ $(P
573573

574574
$(OL
575575
$(LI Predefined macros.)
576-
$(LI Definitions from file specified by $(LINK2 dmd-windows.html#sc_ini, sc.ini)'s
577-
or $(LINK2 dmd-linux.html#dmd_conf, dmd.conf) DDOCFILE setting.)
576+
$(LI Definitions from file specified by $(LINK2 $(WEBURL)dmd-windows.html#sc_ini, sc.ini)'s
577+
or $(LINK2 $(WEBURL)dmd-linux.html#dmd_conf, dmd.conf) DDOCFILE setting.)
578578
$(LI Definitions from *.ddoc files specified on the command line.)
579579
$(LI Runtime definitions generated by Ddoc.)
580580
$(LI Definitions from any Macros: sections.)
@@ -813,7 +813,7 @@ $(P
813813
And all the summary sections will now be green.
814814
)
815815

816-
<h3>Macro Definitions from $(LINK2 dmd-windows.html#sc_ini, $(TT sc.ini))'s DDOCFILE</h3>
816+
<h3>Macro Definitions from $(LINK2 $(WEBURL)dmd-windows.html#sc_ini, $(TT sc.ini))'s DDOCFILE</h3>
817817

818818
$(P
819819
A text file of macro definitions can be created,

ebook.ddoc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ NAVIGATION_SPEC=
3333
NAVIGATION_D=
3434
BOOKS=
3535

36+
TOCENTRY = $(LI $(LINK2 #$+, $+))
3637
LAYOUT=
3738
<p class="pagebreak">&nbsp;</p>
3839
<div id="content">
@@ -52,4 +53,6 @@ CONSOLE=<pre class="console">$0</pre><p></p>
5253
MODDEFFILE=<pre class="moddeffile">$0</pre><p></p>
5354

5455
GLINK2=$(GLINK $2)
55-
56+
WEB=
57+
EBOOK=$0
58+
WEBURL=http://www.d-programming-language.org/

errors.dd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ description of the error.
100100
If code detects an error like "out of memory," then an Error is thrown
101101
with a message saying "Out of memory". The function call stack is unwound,
102102
looking for a handler for the Error.
103-
$(LINK2 statement.html#TryStatement, Finally blocks)
103+
$(LINK2 $(WEB statement.html)#TryStatement, Finally blocks)
104104
are executed as the
105105
stack is unwound. If an error handler is found, execution resumes there. If
106106
not, the default Error handler is run, which displays the message and

interfaceToC.dd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ void foo(char[] string) {
389389

390390
$(P D does not support bit fields. If needed, they can be emulated
391391
with shift and mask operations.
392-
$(LINK2 htod.html, htod) will convert bit fields to inline functions that
392+
$(LINK2 $(WEBURL)htod.html, htod) will convert bit fields to inline functions that
393393
do the right shift and masks.
394394
)
395395

@@ -398,7 +398,7 @@ $(V1
398398
<h1>Interfacing to C++</h1>
399399

400400
$(P D does not provide an interface to C++, other than
401-
through $(LINK2 ../COM.html, COM programming). Since D, however,
401+
through $(LINK2 $(WEBURL)COM.html, COM programming). Since D, however,
402402
interfaces directly to C, it can interface directly to
403403
C++ code if it is declared as having C linkage.
404404
)

memory-safe-d.dd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ $(SPEC_S Memory Safety,
1616
<h3>Proscribed Forms</h3>
1717

1818
$(UL
19-
$(LI $(LINK2 iasm.html, Inline assembler).
19+
$(LI $(LINK2 $(WEB iasm.html)$(EBOOK #Inline Assembler), Inline assembler).
2020
)
2121

2222
$(LI Casting away const or immutable attributes.

pragma.dd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ $(GNAME Pragma):
1717
)
1818

1919
$(P Pragmas can appear as either declarations,
20-
$(I Pragma) $(LINK2 attribute.html, $(I DeclarationBlock)),
20+
$(I Pragma) $(GLINK2 attribute, DeclarationBlock),
2121
or as statements,
2222
$(GLINK2 statement, PragmaStatement).
2323
)

type.dd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ $(SECTION2 Derived Data Types,
142142
$(LI delegate)
143143
)
144144

145-
$(P $(LINK2 arrays.html#strings, $(I Strings)) are a special case of arrays.)
145+
$(P $(LINK2 $(WEB arrays.html)#strings, $(I Strings)) are a special case of arrays.)
146146
)
147147

148148
$(SECTION2 User Defined Types,

unittest.dd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ unittest {
2727
following it.
2828
)
2929

30-
$(P A compiler switch, such as $(LINK2 dmd-windows.html#switches, $(B -unittest))
30+
$(P A compiler switch, such as $(LINK2 $(WEBURL)dmd-windows.html#switches, $(B -unittest))
3131
for $(B dmd), will
3232
cause the unittest test code to be compiled and incorporated into
3333
the resulting executable. The unittest code gets run after
@@ -52,7 +52,7 @@ class Sum {
5252

5353
<h3>Versioning</h3>
5454

55-
$(P The $(LINK2 version.html#PredefinedVersions, version identifier)
55+
$(P The $(LINK2 $(WEB version.html)#PredefinedVersions, version identifier)
5656
$(B unittest) is predefined if the compilation
5757
is done with unit tests enabled.
5858
)

version.dd

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -244,13 +244,13 @@ $(V2
244244
)
245245
$(TR $(TD $(B LittleEndian)) $(TD Byte order, least significant first))
246246
$(TR $(TD $(B BigEndian)) $(TD Byte order, most significant first))
247-
$(TR $(TD $(B D_Coverage)) $(TD $(LINK2 code_coverage.html, Code coverage analysis) instrumentation (command line $(LINK2 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 dmd-windows.html#switches, switch) $(B -D)) is being generated))
249-
$(TR $(TD $(B D_InlineAsm_X86)) $(TD $(LINK2 iasm.html, Inline assembler) for X86 is implemented))
250-
$(TR $(TD $(B D_InlineAsm_X86_64)) $(TD $(LINK2 iasm.html, Inline assembler) for X86-64 is implemented))
251-
$(TR $(TD $(B D_LP64)) $(TD Pointers are 64 bits (command line $(LINK2 dmd-windows.html#switches, switch) $(B -m64))))
252-
$(TR $(TD $(B D_PIC)) $(TD Position Independent Code (command line $(LINK2 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 dmd-windows.html#switches, switch) $(B -unittest)))))
247+
$(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))
249+
$(TR $(TD $(B D_InlineAsm_X86)) $(TD $(LINK2 $(WEB iasm.html)$(EBOOK #Inline Assembler), Inline assembler) for X86 is implemented))
250+
$(TR $(TD $(B D_InlineAsm_X86_64)) $(TD $(LINK2 $(WEB iasm.html)$(EBOOK #Inline Assembler), Inline assembler) for X86-64 is implemented))
251+
$(TR $(TD $(B D_LP64)) $(TD Pointers are 64 bits (command line $(LINK2 $(WEBURL)dmd-windows.html#switches, switch) $(B -m64))))
252+
$(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)))))
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)))

0 commit comments

Comments
 (0)