Skip to content

Commit 931583c

Browse files
WalterBrightdlang-bot
authored andcommitted
ImportC: fix some typo errors
1 parent 0e031a3 commit 931583c

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

spec/importc.dd

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

55
$(HEADERNAV_TOC)
66

7-
$(NOTE: This document is a work in progress.)
7+
$(NOTE This document is under construction. Please excuse the dust and noise.)
88

99
$(P ImportC is a C compiler embedded into the D implementation.
1010
Its purpose is to enable direct importation of C files, without
@@ -22,7 +22,7 @@ $(HEADERNAV_TOC)
2222
$(H2 $(LNAME2 dialect, ImportC Dialect))
2323

2424
$(P There are many versions of C. ImportC is designed to be an
25-
implementation of (LINK2 https://en.wikipedia.org/wiki/C11_(C_standard_revision), ISO/IEC 9899:1999),
25+
implementation of $(LINK2 https://en.wikipedia.org/wiki/C11_(C_standard_revision), ISO/IEC 9899:1999),
2626
which will hereafter be referred to as $(B C11).
2727
References to the C11 Standard will be C11 followed by the paragraph number.
2828
Prior versions, such as C99, C89, and K+R C, are not supported.
@@ -31,7 +31,7 @@ $(H2 $(LNAME2 dialect, ImportC Dialect))
3131
$(P Adjustment to the ImportC dialect is made to match the
3232
behavior of the C compiler that the D compiler is matched to. For
3333
example, on Win32 D is matched to the Digital Mars C compiler,
34-
and can be matched to the Visual C compiler using the $(TT -mscoff32)
34+
and can be matched to the Visual C compiler using the $(TT -m32mscoff)
3535
switch. Win64 D is matched to the Visual C compiler.
3636
On Posix targets, the matching C compiler is Gnu C or Clang C.
3737
)
@@ -83,7 +83,7 @@ $(H2 $(LNAME2 preprocessor-directives, Preprocessor Directives))
8383
$(P $(LINK2 https://gcc.gnu.org/onlinedocs/gcc-11.1.0/cpp/Preprocessor-Output.html, linemarker)
8484
directives are normally embedded in the output of C preprocessors.)
8585

86-
$(H2 $(LINK2 limitations, Limitations))
86+
$(H2 $(LNAME2 limitations, Limitations))
8787

8888
$(H3 Exception Handling)
8989

@@ -95,19 +95,19 @@ $(H2 $(LINK2 limitations, Limitations))
9595
meaning that although $(CCODE int *const p;) means in C11 that p is a const pointer to int,
9696
in ImportC it means p is a const pointer to a const int.)
9797

98-
$(H2 $(LINK2 extensions, Extensions))
98+
$(H2 $(LNAME2 extensions, Extensions))
9999

100100

101-
$(H2 $(LINK2 gnu-clang-extensions, Gnu and Clang Extensions))
101+
$(H2 $(LNAME2 gnu-clang-extensions, Gnu and Clang Extensions))
102102

103103

104-
$(H2 $(LINK2 visualc-extensions, Visual C Extensions))
104+
$(H2 $(LNAME2 visualc-extensions, Visual C Extensions))
105105

106106

107-
$(H2 $(LINK2 digital-mars-extensions, Digital Mars C Extensions))
107+
$(H2 $(LNAME2 digital-mars-extensions, Digital Mars C Extensions))
108108

109109

110-
$(H2 $(LINK2 d-side, ImportC from D's Point of View))
110+
$(H2 $(LNAME2 d-side, ImportC from D's Point of View))
111111

112112
$(P There is no one-to-one mapping of C constructs to D constructs, although
113113
it is very close. What follows is a description of how the D side views
@@ -143,7 +143,7 @@ $(H2 $(LINK2 d-side, ImportC from D's Point of View))
143143
static assert(E.min == 0 && E.max == 2);
144144
---
145145

146-
$(H2 $(LINK2 warnings, Warnings))
146+
$(H2 $(LNAME2 warnings, Warnings))
147147

148148
$(P Many suspicious C constructs normally cause warnings to be emitted by default by
149149
typical compilers, such as:)
@@ -154,13 +154,13 @@ $(H2 $(LINK2 warnings, Warnings))
154154
code developed using another C compiler, and it is written as intended.
155155
If C11 says it is legal, ImportC accepts it.)
156156

157-
$(H2 $(LINK2 importcpp, ImportC++))
157+
$(H2 $(LNAME2 importcpp, ImportC++))
158158

159-
$(P ImportC will not compile C++ code. For that, use ($TT dpp).)
159+
$(P ImportC will not compile C++ code. For that, use $(TT dpp).)
160160

161-
$(H2 $(LINK2 history, How ImportC Came About))
161+
$(H2 $(LNAME2 history, How ImportC Came About))
162162

163-
$(H2 $(LINK2 internals, How ImportC Works))
163+
$(H2 $(LNAME2 internals, How ImportC Works))
164164

165165
$(P This is a description of how ImportC is implemented, intended
166166
to remove the mystery of various design choices.)

0 commit comments

Comments
 (0)