Skip to content

Commit 947057e

Browse files
WalterBrightGeod24
authored andcommitted
ImportC: add LNAME2 to H3
1 parent 5318cdc commit 947057e

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

spec/importc.dd

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -101,22 +101,22 @@ $(H2 $(LNAME2 preprocessor-directives, Preprocessor Directives))
101101

102102
$(P Nevertheless, ImportC supports these preprocessor directives:)
103103

104-
$(H3 Line control)
104+
$(H3 $(LNAME2 line-control, Line control))
105105

106106
$(P C11 6.10.4)
107107

108-
$(H3 Linemarker)
108+
$(H3 $(LNAME2 linemarker, Linemarker))
109109

110110
$(P $(LINK2 https://gcc.gnu.org/onlinedocs/gcc-11.1.0/cpp/Preprocessor-Output.html, linemarker)
111111
directives are normally embedded in the output of C preprocessors.)
112112

113113
$(H2 $(LNAME2 limitations, Limitations))
114114

115-
$(H3 Exception Handling)
115+
$(H3 $(LNAME2 exceptions, Exception Handling))
116116

117117
$(P ImportC is assumed to never throw exceptions. `setjmp` and `longjmp` are not supported.)
118118

119-
$(H3 Transitive Const)
119+
$(H3 $(LNAME2 const, Transitive Const))
120120

121121
$(P C11 specifies that `const` only applies locally. `const` in ImportC applies transitively,
122122
meaning that although $(CCODE int *const p;) means in C11 that p is a const pointer to int,
@@ -140,17 +140,17 @@ $(H2 $(LNAME2 d-side, ImportC from D's Point of View))
140140
it is very close. What follows is a description of how the D side views
141141
the C declarations that are imported.)
142142

143-
$(H3 Module Name)
143+
$(H3 $(LNAME2 module-name, Module Name))
144144

145145
$(P The module name assigned to the ImportC file is the filename stripped
146146
of its path and extension. This is just like the default module name assigned
147147
to a D module that does not have a module declaration.)
148148

149-
$(H3 `extern (C)`)
149+
$(H3 $(LNAME2 extern-C, `extern (C)`))
150150

151151
$(P All C symbols are `extern (C)`.)
152152

153-
$(H3 Enums)
153+
$(H3 $(LNAME2 enums, Enums))
154154

155155
$(P The C enum:)
156156

0 commit comments

Comments
 (0)