@@ -95,8 +95,7 @@ $(H2 $(LNAME2 command-line, Invoking ImportC))
9595
9696 $(H3 $(LNAME2 command-line, ImportC Files on the Command Line))
9797
98- $(P ImportC files have one of the extensions `.i`, or `.c`. If no
99- extension is given, `.i` is tried first, then `.c`.
98+ $(P ImportC files have one of the extensions `.i`, `.h`, or `.c`.
10099 )
101100
102101$(CONSOLE
@@ -106,7 +105,7 @@ dmd hello.c)
106105 file `hello` (`hello.exe` on Windows)
107106 )
108107
109- $(BEST_PRACTICE explicitly use a `.i` or `.c` extension when
108+ $(BEST_PRACTICE explicitly use a `.i`, `.h`, or `.c` extension when
110109 specifying C files on the command line.)
111110
112111 $(H3 $(LNAME2 importing, Importing C Files from D Code))
@@ -117,8 +116,8 @@ dmd hello.c)
117116 import hello;
118117 ---
119118
120- $(P which will, if `hello` is not a D file, and has an extension `.i` or `.c` ,
121- compile `hello` with ImportC.
119+ $(P which will, if `hello` is not a D file, and has an extension `.i`,
120+ `.h`, or `.c`, compile `hello` with ImportC.
122121 )
123122
124123$(H2 $(LNAME2 preprocessor, Preprocessor))
0 commit comments