Permalink
Browse files

Automated replacements of removed link macros

All strings replaced:
"$(LINK2 $(WEBURL)" to "$(DPLLINK "

All expressions replaced (using Visual Studio regex for which "@" is the lazy version of "*"):
"\$\(LINK2 \$\(WEB {.@}\.html\)\$\(EBOOK \#{.@}\)\, {.@}\)" to "$(DDLINK \1, \2, \3)"
"\$\(LINK2 \$\(WEB {.@}\.html\)\#{.@}\, {.@}\)" to "$(DDSUBLINK \1, \2, \3)"
  • Loading branch information...
1 parent 4a7305a commit 3dd02f8af54d395667bf1bf50d173e4e876d119a @denis-sh denis-sh committed Dec 12, 2011
Showing with 48 additions and 48 deletions.
  1. +1 −1 arrays.dd
  2. +4 −4 class.dd
  3. +4 −4 cpp_interface.dd
  4. +1 −1 dbc.dd
  5. +3 −3 ddoc.dd
  6. +2 −2 errors.dd
  7. +7 −7 expression.dd
  8. +2 −2 float.dd
  9. +2 −2 function.dd
  10. +1 −1 garbage.dd
  11. +2 −2 interfaceToC.dd
  12. +1 −1 intro.dd
  13. +1 −1 memory-safe-d.dd
  14. +2 −2 property.dd
  15. +2 −2 statement.dd
  16. +2 −2 struct.dd
  17. +1 −1 template-comparison.dd
  18. +1 −1 type.dd
  19. +2 −2 unittest.dd
  20. +7 −7 version.dd
View
@@ -12,7 +12,7 @@ $(SPEC_S Arrays,
$(TR $(TD $(I type)[]) $(TD $(LINK2 #dynamic-arrays, Dynamic arrays)))
- $(TR $(TD $(I type)[$(I type)]) $(TD $(LINK2 $(WEB hash-map.html)$(EBOOK #Associative Arrays), Associative arrays)))
+ $(TR $(TD $(I type)[$(I type)]) $(TD $(DDLINK hash-map, Associative Arrays, Associative arrays)))
)
<h3>$(LNAME2 pointers, Pointers)</h3>
View
@@ -69,7 +69,7 @@ $(UL
$(LI $(LINK2 #member-functions, member functions)
$(UL
$(LI static member functions)
- $(LI $(LINK2 $(WEB function.html)#virtual-functions, Virtual Functions))
+ $(LI $(DDSUBLINK function, virtual-functions, Virtual Functions))
$(LI $(LINK2 #synchronized-functions, Synchronized Functions))
$(LI $(LINK2 #constructors, Constructors))
$(LI $(LINK2 #destructors, Destructors))
@@ -78,7 +78,7 @@ $(UL
$(LI $(GLINK SharedStaticConstructor)s)
$(LI $(GLINK SharedStaticDestructor)s)
$(LI $(LINK2 #invariants, Class Invariants))
- $(LI $(LINK2 $(WEB unittest.html)#unittest, Unit Tests))
+ $(LI $(DDSUBLINK unittest, unittest, Unit Tests))
$(LI $(LINK2 #allocators, Class Allocators))
$(LI $(LINK2 #deallocators, Class Deallocators))
$(V2
@@ -741,7 +741,7 @@ new(1,2) Foo(a); // calls new(Foo.sizeof,1,2)
)
$(P See also
- $(LINK2 $(WEBURL)memory.html#newdelete, Explicit Class Instance Allocation).
+ $(DPLLINK memory.html#newdelete, Explicit Class Instance Allocation).
)
<h3>$(LNAME2 deallocators, Class Deallocators)</h3>
@@ -784,7 +784,7 @@ delete f;
)
$(P See also
- $(LINK2 $(WEBURL)memory.html#newdelete, Explicit Class Instance Allocation).
+ $(DPLLINK memory.html#newdelete, Explicit Class Instance Allocation).
)
$(V2
View
@@ -4,7 +4,7 @@ $(SPEC_S Interfacing to C++,
$(P
While D is fully capable of
- $(LINK2 $(WEB interfaceToC.html)$(EBOOK #Interfacing to C), interfacing to C),
+ $(DDLINK interfaceToC, Interfacing to C, interfacing to C),
its ability to interface to C++ is much more limited.
There are three ways to do it:
)
@@ -13,13 +13,13 @@ $(SPEC_S Interfacing to C++,
$(LI Use C++'s ability to create a C interface, and then
use D's ability to
- $(LINK2 $(WEB interfaceToC.html)$(EBOOK #Interfacing to C), interface with C)
+ $(DDLINK interfaceToC, Interfacing to C, interface with C)
to access that interface.
)
$(LI Use C++'s ability to create a COM interface, and then
use D's ability to
- $(LINK2 $(WEBURL)COM.html, interface with COM)
+ $(DPLLINK COM.html, interface with COM)
to access that interface.
)
@@ -536,7 +536,7 @@ int callE(E *e) {
$(P D does not support bit fields. If needed, they can be emulated
with shift and mask operations.
- $(LINK2 $(WEBURL)htod.html, htod) will convert bit fields to inline functions that
+ $(DPLLINK htod.html, htod) will convert bit fields to inline functions that
do the right shift and masks.
)
View
2 dbc.dd
@@ -148,7 +148,7 @@ void func()
$(P Class invariants are used to specify characteristics of a class that
always
must be true (except while executing a member function).
- They are described in $(LINK2 $(WEB class.html)$(EBOOK #Classes), Classes).
+ They are described in $(DDLINK class, Classes, Classes).
)
<h2>References</h2>
View
@@ -576,8 +576,8 @@ $(P
$(OL
$(LI Predefined macros.)
- $(LI Definitions from file specified by $(LINK2 $(WEBURL)dmd-windows.html#sc_ini, sc.ini)'s
- or $(LINK2 $(WEBURL)dmd-linux.html#dmd_conf, dmd.conf) DDOCFILE setting.)
+ $(LI Definitions from file specified by $(DPLLINK dmd-windows.html#sc_ini, sc.ini)'s
+ or $(DPLLINK dmd-linux.html#dmd_conf, dmd.conf) DDOCFILE setting.)
$(LI Definitions from *.ddoc files specified on the command line.)
$(LI Runtime definitions generated by Ddoc.)
$(LI Definitions from any Macros: sections.)
@@ -816,7 +816,7 @@ $(P
And all the summary sections will now be green.
)
-<h3>Macro Definitions from $(LINK2 $(WEBURL)dmd-windows.html#sc_ini, $(D sc.ini))'s DDOCFILE</h3>
+<h3>Macro Definitions from $(DPLLINK dmd-windows.html#sc_ini, $(D sc.ini))'s DDOCFILE</h3>
$(P
A text file of macro definitions can be created,
View
@@ -100,7 +100,7 @@ description of the error.
If code detects an error like "out of memory," then an Error is thrown
with a message saying "Out of memory". The function call stack is unwound,
looking for a handler for the Error.
-$(LINK2 $(WEB statement.html)#TryStatement, Finally blocks)
+$(DDSUBLINK statement, TryStatement, Finally blocks)
are executed as the
stack is unwound. If an error handler is found, execution resumes there. If
not, the default Error handler is run, which displays the message and
@@ -177,7 +177,7 @@ How does this meet our assumptions about errors?
</dl>
Using exceptions to handle errors leads to another issue - how to write
-exception safe programs. $(LINK2 $(WEBURL)exception-safe.html, Here's how).
+exception safe programs. $(DPLLINK exception-safe.html, Here's how).
$(COMMENT
$(OL
View
@@ -519,7 +519,7 @@ $(GNAME RelExpression):
$(LI "Exception" means the $(I Invalid Exception) is raised if one
of the operands is a NAN. It does not mean an exception
is thrown. The $(I Invalid Exception) can be checked
- using the functions in $(LINK2 $(WEBURL)phobos/std_c_fenv.html, std.c.fenv).
+ using the functions in $(DPLLINK phobos/std_c_fenv.html, std.c.fenv).
)
)
@@ -1050,7 +1050,7 @@ $(V2 $(B __FILE__)
$(GLINK AssertExpression)
$(GLINK MixinExpression)
$(GLINK ImportExpression)
- $(LINK2 $(WEB declaration.html)#BasicTypeX, $(I BasicType)) $(B .) $(I Identifier)
+ $(DDSUBLINK declaration, BasicTypeX, $(I BasicType)) $(B .) $(I Identifier)
$(GLINK2 declaration, Typeof)
$(GLINK TypeidExpression)
$(GLINK IsExpression)
@@ -1385,7 +1385,7 @@ double test() {
}
-------------
- When comparing with $(LINK2 $(WEB function.html)#nested, nested functions),
+ When comparing with $(DDSUBLINK function, nested, nested functions),
the $(B function) form is analogous to static
or non-nested functions, and the $(B delegate) form is
analogous to non-static nested functions. In other words,
@@ -1409,7 +1409,7 @@ $(GNAME AssertExpression):
evaluate assert expressions at all.
The result type of an assert expression is $(D void).
Asserts are a fundamental part of the
- $(LINK2 $(WEB dbc.html)$(EBOOK #Contract Programming), Contract Programming)
+ $(DDLINK dbc, Contract Programming, Contract Programming)
support in D.
)
@@ -1499,20 +1499,20 @@ $(V2 $(B typeid $(LPAREN)) $(GLINK Expression) $(B $(RPAREN)))
$(V1
$(P Returns an instance of class
- $(LINK2 $(WEBURL)phobos/object.html, $(B TypeInfo))
+ $(DPLLINK phobos/object.html, $(B TypeInfo))
corresponding
to $(I Type).
)
)
$(V2
$(P If $(I Type), returns an instance of class
- $(LINK2 $(WEBURL)phobos/object.html, $(B TypeInfo))
+ $(DPLLINK phobos/object.html, $(B TypeInfo))
corresponding
to $(I Type).
)
$(P If $(I Expression), returns an instance of class
- $(LINK2 $(WEBURL)phobos/object.html, $(B TypeInfo))
+ $(DPLLINK phobos/object.html, $(B TypeInfo))
corresponding
to the type of the $(I Expression).
If the type is a class, it returns the $(B TypeInfo)
View
@@ -121,7 +121,7 @@ $(V2
)
$(P These flags can be set/reset via the functions in
- $(LINK2 $(WEBURL)phobos/std_c_fenv.html, std.c.fenv).)
+ $(DPLLINK phobos/std_c_fenv.html, std.c.fenv).)
<h3>Floating Point Comparisons</h3>
@@ -138,7 +138,7 @@ $(V2
!&lt;&gt;
and match the semantics for the
NCEG extensions to C.
- See $(LINK2 $(WEB expression.html)#floating_point_comparisons, Floating point comparisons).
+ See $(DDSUBLINK expression, floating_point_comparisons, Floating point comparisons).
)
<h3><a name="floating-point-transformations">Floating Point Transformations</a></h2>
View
@@ -1628,7 +1628,7 @@ $(V2
$(P $(I Safe functions) are functions that are statically checked
to exhibit no possibility of
- $(LINK2 $(WEBURL)glossary.html#undefined_behavior, $(I undefined behavior)).
+ $(DPLLINK glossary.html#undefined_behavior, $(I undefined behavior)).
Undefined behavior is often used as a vector for malicious
attacks.
)
@@ -1702,7 +1702,7 @@ $(V2
<h2>$(LNAME2 function-attribute-inference, Function Attribute Inference)</h2>
$(P $(GLINK2 expression, FunctionLiteral)s and
- $(LINK2 $(WEB template.html)#function-templates, function template)s, since their function bodies
+ $(DDSUBLINK template, function-templates, function template)s, since their function bodies
are always present, infer the
$(LINK2 #pure-functions, $(B pure)),
$(LINK2 #nothrow-functions, $(B nothrow)), and
View
@@ -129,7 +129,7 @@ $(SPEC_S Garbage Collection,
)
$(P These constraints are addressed by techniques outlined
- in $(LINK2 $(WEBURL)memory.html, Memory Management).
+ in $(DPLLINK memory.html, Memory Management).
)
<h2>How Garbage Collection Works</h2>
View
@@ -389,7 +389,7 @@ void foo(char[] string) {
$(P D does not support bit fields. If needed, they can be emulated
with shift and mask operations.
- $(LINK2 $(WEBURL)htod.html, htod) will convert bit fields to inline functions that
+ $(DPLLINK htod.html, htod) will convert bit fields to inline functions that
do the right shift and masks.
)
@@ -398,7 +398,7 @@ $(V1
<h1>Interfacing to C++</h1>
$(P D does not provide an interface to C++, other than
- through $(LINK2 $(WEBURL)COM.html, COM programming). Since D, however,
+ through $(DPLLINK COM.html, COM programming). Since D, however,
interfaces directly to C, it can interface directly to
C++ code if it is declared as having C linkage.
)
View
@@ -35,7 +35,7 @@ $(OL
$(LI $(B lexical analysis)$(BR)
The source file is divided up into a sequence of tokens.
- $(LINK2 $(WEB lex.html)#specialtokens, Special tokens))
+ $(DDSUBLINK lex, specialtokens, Special tokens))
are replaced with other tokens.
$(GLINK2 lex, SpecialTokenSequence)s
are processed and removed.
View
@@ -16,7 +16,7 @@ $(SPEC_S Memory Safety,
<h3>Proscribed Forms</h3>
$(UL
- $(LI $(LINK2 $(WEB iasm.html)$(EBOOK #Inline Assembler), Inline assembler).
+ $(LI $(DDLINK iasm, Inline Assembler, Inline assembler).
)
$(LI Casting away const or immutable attributes.
View
@@ -172,8 +172,8 @@ $(SECTION2 $(LNAME2 classinfo, .classinfo) Property,
$(P $(CODE .classinfo) provides information about the dynamic type
of a class object.
- $(V1 It returns a reference to type $(LINK2 $(WEBURL)phobos/object.html, object.ClassInfo).)
- $(V2 It returns a reference to type $(LINK2 $(WEBURL)phobos/object.html#TypeInfo_Class, object.TypeInfo_Class).)
+ $(V1 It returns a reference to type $(DPLLINK phobos/object.html, object.ClassInfo).)
+ $(V2 It returns a reference to type $(DPLLINK phobos/object.html#TypeInfo_Class, object.TypeInfo_Class).)
)
)
View
@@ -1168,7 +1168,7 @@ $(COMMENT
<p>
If there is an out postcondition
- (see $(LINK2 $(WEB dbc.html)$(EBOOK #Contract Programming), Contract Programming)),
+ (see $(DDLINK dbc, Contract Programming, Contract Programming)),
that postcondition is executed
after the $(EXPRESSION) is evaluated and before the function
actually returns.
@@ -1677,7 +1677,7 @@ $(GNAME AsmInstructionList):
The format of the instructions is, of course, highly dependent
on the native instruction set of the target CPU, and so is
- $(LINK2 $(WEB iasm.html)$(EBOOK #Inline Assembler), implementation defined).)
+ $(DDLINK iasm, Inline Assembler, implementation defined).)
But, the format will follow the following
conventions:
View
@@ -5,7 +5,7 @@ $(SPEC_S Structs &amp; Unions,
$(P Whereas classes are reference types, structs are value types.
Any C struct can be exactly represented as a D struct.
In C++ parlance, a D struct is a
- $(LINK2 $(WEBURL)glossary.html#pod, POD (Plain Old Data)) type,
+ $(DPLLINK glossary.html#pod, POD (Plain Old Data)) type,
with a trivial constructors and destructors.
Structs and unions are meant as simple aggregations of data, or as a way
to paint a data structure over hardware or an external type. External
@@ -342,7 +342,7 @@ $(V2
$(TR
$(TD inner nesting)
$(TD $(LINK2 #nested, YES))
- $(TD $(LINK2 $(WEB class.html)#nested, YES))
+ $(TD $(DDSUBLINK class, nested, YES))
$(NO)
$(NO)
$(NO)
View
@@ -265,7 +265,7 @@ return Foo_foo&lt;char,int&gt('c',3);
$(TR
$(TD Compile time execution of functions)
- $(TD $(LINK2 $(WEB function.html)#interpretation, Yes):
+ $(TD $(DDSUBLINK function, interpretation, Yes):
---
int factorial(int i)
{ if (i == 0)
View
@@ -142,7 +142,7 @@ $(SECTION2 Derived Data Types,
$(LI delegate)
)
- $(P $(LINK2 $(WEB arrays.html)#strings, $(I Strings)) are a special case of arrays.)
+ $(P $(DDSUBLINK arrays, strings, $(I Strings)) are a special case of arrays.)
)
$(SECTION2 User Defined Types,
View
@@ -27,7 +27,7 @@ unittest {
following it.
)
- $(P A compiler switch, such as $(LINK2 $(WEBURL)dmd-windows.html#switches, $(B -unittest))
+ $(P A compiler switch, such as $(DPLLINK dmd-windows.html#switches, $(B -unittest))
for $(B dmd), will
cause the unittest test code to be compiled and incorporated into
the resulting executable. The unittest code gets run after
@@ -52,7 +52,7 @@ class Sum {
<h3>Versioning</h3>
- $(P The $(LINK2 $(WEB version.html)#PredefinedVersions, version identifier)
+ $(P The $(DDSUBLINK version, PredefinedVersions, version identifier)
$(B unittest) is predefined if the compilation
is done with unit tests enabled.
)
View
@@ -269,13 +269,13 @@ version($(I identifier)) // add in version code if version
$(TR $(TD $(B Alpha)) $(TD The Alpha architecture))
$(TR $(TD $(B LittleEndian)) $(TD Byte order, least significant first))
$(TR $(TD $(B BigEndian)) $(TD Byte order, most significant first))
- $(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))
- $(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))
- $(TR $(TD $(B D_InlineAsm_X86)) $(TD $(LINK2 $(WEB iasm.html)$(EBOOK #Inline Assembler), Inline assembler) for X86 is implemented))
- $(TR $(TD $(B D_InlineAsm_X86_64)) $(TD $(LINK2 $(WEB iasm.html)$(EBOOK #Inline Assembler), Inline assembler) for X86-64 is implemented))
- $(TR $(TD $(B D_LP64)) $(TD Pointers are 64 bits (command line $(LINK2 $(WEBURL)dmd-windows.html#switches, switch) $(B -m64))))
- $(TR $(TD $(B D_PIC)) $(TD Position Independent Code (command line $(LINK2 $(WEBURL)dmd-windows.html#switches, switch) $(B -fPIC)) is being generated))
- $(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)))))
+ $(TR $(TD $(B D_Coverage)) $(TD $(DPLLINK code_coverage.html, Code coverage analysis) instrumentation (command line $(DPLLINK dmd-windows.html#switches, switch) $(B -cov)) is being generated))
+ $(TR $(TD $(B D_Ddoc)) $(TD $(DDLINK ddoc, Embedded Documentation, Ddoc) documentation (command line $(DPLLINK dmd-windows.html#switches, switch) $(B -D)) is being generated))
+ $(TR $(TD $(B D_InlineAsm_X86)) $(TD $(DDLINK iasm, Inline Assembler, Inline assembler) for X86 is implemented))
+ $(TR $(TD $(B D_InlineAsm_X86_64)) $(TD $(DDLINK iasm, Inline Assembler, Inline assembler) for X86-64 is implemented))
+ $(TR $(TD $(B D_LP64)) $(TD Pointers are 64 bits (command line $(DPLLINK dmd-windows.html#switches, switch) $(B -m64))))
+ $(TR $(TD $(B D_PIC)) $(TD Position Independent Code (command line $(DPLLINK dmd-windows.html#switches, switch) $(B -fPIC)) is being generated))
+ $(V2 $(TR $(TD $(B unittest)) $(TD $(DDLINK unittest, Unit Tests, Unit tests) are enabled (command line $(DPLLINK dmd-windows.html#switches, switch) $(B -unittest)))))
$(V2 $(TR $(TD $(B D_Version2)) $(TD This is a D version 2 compiler)))
$(TR $(TD $(B none)) $(TD Never defined; used to just disable a section of code))
$(TR $(TD $(B all)) $(TD Always defined; used as the opposite of $(B none)))

0 comments on commit 3dd02f8

Please sign in to comment.