Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions dcompiler.dd
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,10 @@ $(H2 $(LNAME2 switches, Compiler Arguments and Switches))
$(TD $(RELATIVE_LINK2 interface-files, D interface files))
)
$(TR
$(TD $(B .h))
$(TD C header files)
)
$(TR
$(TD $(B .i))
$(TD preprocessed C source files)
)
Expand Down
9 changes: 4 additions & 5 deletions spec/importc.dd
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,7 @@ $(H2 $(LNAME2 command-line, Invoking ImportC))

$(H3 $(LNAME2 command-line, ImportC Files on the Command Line))

$(P ImportC files have one of the extensions `.i`, or `.c`. If no
extension is given, `.i` is tried first, then `.c`.
$(P ImportC files have one of the extensions `.i`, `.h`, or `.c`.
)

$(CONSOLE
Expand All @@ -106,7 +105,7 @@ dmd hello.c)
file `hello` (`hello.exe` on Windows)
)

$(BEST_PRACTICE explicitly use a `.i` or `.c` extension when
$(BEST_PRACTICE explicitly use a `.i`, `.h`, or `.c` extension when
specifying C files on the command line.)

$(H3 $(LNAME2 importing, Importing C Files from D Code))
Expand All @@ -117,8 +116,8 @@ dmd hello.c)
import hello;
---

$(P which will, if `hello` is not a D file, and has an extension `.i` or `.c`,
compile `hello` with ImportC.
$(P which will, if `hello` is not a D file, and has an extension `.i`,
`.h`, or `.c`, compile `hello` with ImportC.
)

$(H2 $(LNAME2 preprocessor, Preprocessor))
Expand Down
1 change: 1 addition & 0 deletions spec/module.dd
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ qualified with whatever packages they are in. They are not considered to be
relative to the module that imports them.)

$(IMPLEMENTATION_DEFINED
$(OL
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How is this passing? where is the corresponding closing )?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@thewilsonator you merged the bad code previously.

#4290 (comment)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using OL rather than UL does look a bit odd for only one item:
image

$(LI How the compiler resolves the package and module identifiers in an
import declaration to its corresponding source files.)
))
Expand Down