Skip to content

Conversation

@jnms-me
Copy link

@jnms-me jnms-me commented Oct 26, 2025

This adds .c, .h and .i files (see https://dlang.org/spec/importc.html) as 'alternative' (lower priority) importable files. $DMD or dmd is called on the source file with -H to produce a .di file, which we can parse as normal.
Note that .h files are only supported by current dmd master, since the merge of dlang/dmd#21692.

@github-actions
Copy link

Thanks for your Pull Request and making D better!

This comment will automatically be updated to summarize some statistics in a few minutes.

@jnms-me
Copy link
Author

jnms-me commented Oct 27, 2025

See Pure-D/serve-d#328.

Copy link
Member

@WebFreak001 WebFreak001 left a comment

Choose a reason for hiding this comment

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

otherwise LGTM

import std.process : environment;

if ("DMD" in environment)
return environment["DMD"];
Copy link
Member

Choose a reason for hiding this comment

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

this needs to be documented in the README or other places where this might be relevant

@jnms-me
Copy link
Author

jnms-me commented Oct 27, 2025

Module auto-complete in serve-d doesn't seem to work yet. Any idea where that would be implemented?

@WebFreak001
Copy link
Member

you mean auto complete for this:

import some.mod|;

?

@jnms-me
Copy link
Author

jnms-me commented Oct 27, 2025

Yes, that doesn't show ImportC modules yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants