Skip to content

Commit

Permalink
Merge pull request #768 from andralex/clean-macros
Browse files Browse the repository at this point in the history
Eliminate use of undefined macros
  • Loading branch information
WalterBright committed Jan 16, 2015
2 parents 630a1b7 + 1dc0622 commit 4666278
Show file tree
Hide file tree
Showing 19 changed files with 44 additions and 23 deletions.
3 changes: 3 additions & 0 deletions 32-64-portability.dd
Expand Up @@ -6,3 +6,6 @@ This page has been moved to
$(LINK2 http://wiki.dlang.org/Porting_32_Bit_Code_to_64_Bits, http://wiki.dlang.org/Porting_32_Bit_Code_to_64_Bits)

)

Macros:
WIKI=Porting_32_Bit_Code_to_64_Bits
3 changes: 3 additions & 0 deletions COM.dd
Expand Up @@ -6,3 +6,6 @@ This page has been moved to
$(LINK2 http://wiki.dlang.org/COM_Programming, http://wiki.dlang.org/COM_Programming)

)

Macros:
WIKI=COM_Programming
1 change: 1 addition & 0 deletions bugstats.php.dd
Expand Up @@ -45,3 +45,4 @@ Macros:
PHP=<?php $0 ?>
BOOKTABLE = <center><table cellspacing=0 cellpadding=5 valign=top class=book><caption>$1</caption>$2</table></center>
DISPLAY=$(TR $(TD <font color=$3>$(LINK2 https://issues.dlang.org/buglist.cgi?$2, $1)</font>) $(TD <iframe scrolling=no frameborder=0 width="4.8em" height="1.4em" style="width:4.8em;height:1.4em;" vspace="0" hspace="0" marginwidth="0" marginheight="0" src=fetch-issue-cnt.php?$2&format=table&action=wrap&ctype=csv></iframe>))
WIKI=BugStats
3 changes: 0 additions & 3 deletions builtin.dd
Expand Up @@ -112,9 +112,6 @@ $(SECTION2 Dynamic Arrays,

$(SECTION2 Strings,

$(REDO $(P A <a href="cppstrings.html">detailed comparison with C++'s std::string</a>.
))

$(P C++ has, of course, builtin string support in the form of string
literals and char arrays. It's just that they suffer from all
the weaknesses of C++ builtin arrays.
Expand Down
4 changes: 1 addition & 3 deletions comparison.dd
Expand Up @@ -460,9 +460,7 @@ $(SECTION2 Notes,
$(DD Part of the standard library for C++ implements strings,
however, they are not part of the core language.
A conforming freestanding implementation of C++ (C++98 17.4.1.3) does
not need to provide these libraries.
$(REDO Here's a <a href="cppstrings.html">comparison</a> of C++ strings
and D built-in strings.)))
not need to provide these libraries.))

$(P $(DT <a name="debuggers">Use existing debuggers</a>)
$(DD By this is meant using common debuggers that can operate
Expand Down
2 changes: 2 additions & 0 deletions d-array-article.dd
Expand Up @@ -247,3 +247,5 @@ Macros:
CATEGORY_ARTICLES=$0
STDREF = <a href="phobos/std_$1.html#$2">$(D $2)</a>
OBJREF = <a href="phobos/object.html#$1">$(D $2)</a>
WIKI =
_=
1 change: 0 additions & 1 deletion dll-linux.dd
Expand Up @@ -550,4 +550,3 @@ and the static destructors are called by dlclose().
Macros:
TITLE=Writing Shared Libraries With D On Linux
WIKI=DLLs
CATEGORY_HOWTOS=$0
3 changes: 3 additions & 0 deletions dll.dd
Expand Up @@ -6,3 +6,6 @@ This page has been moved to
$(LINK2 http://wiki.dlang.org/Win32_DLLs_in_D, http://wiki.dlang.org/Win32_DLLs_in_D)

)

Macros:
WIKI=Win32_DLLs_in_D
22 changes: 13 additions & 9 deletions doc.ddoc
Expand Up @@ -75,10 +75,7 @@ $(DIVC navblock,
$(TOCENTRY ctod.html, Converting C to D)
$(TOCENTRY cpptod.html, Converting C++ to D)
$(TOCENTRY pretod.html, The C Preprocessor vs D)
$(REDO $(TOCENTRY template-comparison.html, D templates compared))
$(REDO $(TOCENTRY cppstrings.html, D strings vs C++ std::string))
$(TOCENTRY cppcontracts.html, D Contract Programming vs C++)
$(REDO $(TOCENTRY cpp0x.html, D and C++0x))
)
)
$(BOOKS)
Expand Down Expand Up @@ -106,7 +103,7 @@ $(NAVBLOCK_HEADER $(TOCHEADER Documentation),
$(TOCENTRY phobos/index.html, Library Reference)
$(TOCENTRY library/index.html, &nbsp;<font size=-1><span style="visibility: hidden">3</span>Preview new Layout</font>)

$(TOCENTRYTH howtos.html, Helps for using D, How-tos, $(CATEGORY_HOWTOS $(SUBNAV_HOWTOS)))
$(TOCENTRYTH howtos.html, Helps for using D, How-tos)
$(TOCENTRYH articles.html, Articles, $(CATEGORY_ARTICLES $(SUBNAV_ARTICLES)))
)
$(NAVBLOCK_HEADER $(TOCHEADER $(LINK2 $(VISUALD), Visual D)),
Expand All @@ -119,7 +116,6 @@ $(NAVBLOCK_HEADER $(TOCHEADER Community),
$(TOCENTRYT http://code.dlang.org, Third party packages written in D, Third Party Packages)
$(TOCENTRYT http://twitter.com/#search?q=%23d_lang, #d_lang on twitter.com, Twitter)
$(TOCENTRYT http://digitalmars.com/d/dlinks.html, External D related links, Links)
$(TOCENTRYX http://d.puremagic.com/conference2008/, D Programming Language Conference, Conference)
)
_=

Expand All @@ -131,10 +127,6 @@ $(NAVBLOCK
$(TOCENTRY ctod.html, Converting C to D)
$(TOCENTRY cpptod.html, Converting C++ to D)
$(TOCENTRY pretod.html, The C Preprocessor vs D)
$(REDO $(TOCENTRY template-comparison.html, D templates compared))
$(REDO $(TOCENTRY cppstrings.html, D strings vs C++ std::string))
$(REDO $(TOCENTRY cppcontracts.html, D Contract Programming vs C++))
$(REDO $(TOCENTRY cpp0x.html, D and C++0x))
)
_=

Expand Down Expand Up @@ -270,3 +262,15 @@ _=
TRANSLATIONS=
<script src="http://www.gmodules.com/ig/ifr?url=http://www.google.com/ig/modules/translatemypage.xml&up_source_language=en&w=160&h=60&title=&border=&output=js"></script>
_=

CATEGORY_APPENDICES=
CATEGORY_ARTICLES=
CATEGORY_FAQ=
CATEGORY_FEATURES=
CATEGORY_OVERVIEW=
CATEGORY_DOWNLOAD=
CATEGORY_SPEC=
_=

MIDRULE=
_=
2 changes: 1 addition & 1 deletion dstyle.dd
Expand Up @@ -136,7 +136,7 @@ ubyte asciiChar;

)

$(Type Aliases)
$(H3 Type Aliases)

$(P The D programming languages offers two functionally equivalent syntaxes for type aliases, but ...)

Expand Down
2 changes: 0 additions & 2 deletions faq.dd
Expand Up @@ -15,8 +15,6 @@ $(H2 D 2.0 FAQ)

$(LI Where is my simple language?)

$(REDO $(LI $(LINK2 cpp0x.html, What's D 2.0's answer to C++0x's proposed new features?)))

$(LI What other cool features are in the plans for D 2.0?)

$(LI I suggested a great feature. Why was the suggestion ignored?)
Expand Down
3 changes: 3 additions & 0 deletions htomodule.dd
Expand Up @@ -6,3 +6,6 @@ This page has been moved to
$(LINK2 http://wiki.dlang.org/Converting_C_.h_Files_to_D_Modules, http://wiki.dlang.org/Converting_C_.h_Files_to_D_Modules)

)

Macros:
WIKI=Converting_C_.h_Files_to_D_Modules
2 changes: 2 additions & 0 deletions intro-to-datetime.dd
Expand Up @@ -791,3 +791,5 @@ Macros:
TIMEZONE=$(XREF datetime, TimeZone)
UTC=$(XREF datetime, UTC)
WINDOWSTZ=$(XREF datetime, WindowsTimeZone)
WIKI=
_=
1 change: 1 addition & 0 deletions macros.ddoc
Expand Up @@ -5,4 +5,5 @@ COMMA = ,
ARGS = $0
RPAREN = )
LPAREN = (
COMMENT =
_=
3 changes: 1 addition & 2 deletions overview.dd
Expand Up @@ -55,8 +55,7 @@ $(SECTION2 Why D?,

$(P C++ implements things like resizable arrays and string
concatenation as part of the standard library, not as part of the
core language. $(REDO Not being part of the core language has
several $(LINK2 cppstrings.html, suboptimal consequences).))
core language.)

$(P Can the power and capability of C++ be extracted, redesigned,
and recast into a language that is simple, orthogonal,
Expand Down
4 changes: 3 additions & 1 deletion regular-expression.dd
Expand Up @@ -271,4 +271,6 @@ TITLE=Regular expressions
CATEGORY_ARTICLES=$0
H3 = <h3>$0</h3>
DOLLAR = $
STD = $(LINK2 phobos/std_$0.html, std.$0)
STD = $(LINK2 phobos/std_$0.html, std.$0)
WIKI =
_=
3 changes: 2 additions & 1 deletion windbg.dd
Expand Up @@ -180,4 +180,5 @@ Macros:
TITLE=windbg Debugger
WIKI=Windbg
CATEGORY_DOWNLOAD=$0

DMDDIR=\dmd2
_=
3 changes: 3 additions & 0 deletions windows.dd
Expand Up @@ -6,3 +6,6 @@ This page has been moved to
$(LINK2 http://wiki.dlang.org/D_for_Win32, http://wiki.dlang.org/D_for_Win32)

)

Macros:
WIKI=D_for_Win32
2 changes: 2 additions & 0 deletions windows.ddoc
Expand Up @@ -3,6 +3,8 @@ OS=windows
WINDOWS=$0
LINUX=
FREEBSD=
OSX=
UNIX=
SEP=\
OBJEXT=obj
LIBEXT=lib
Expand Down

0 comments on commit 4666278

Please sign in to comment.