Skip to content

Conversation

@Rua
Copy link
Contributor

@Rua Rua commented Sep 21, 2025

Since most C types are now imported from std::ffi, there is less need to always include the libc library. This changes it so that it's only included when actually needed.

To implement this, TypeConverter now tracks external crates, separately from Translator. The two lists are merged afterwards. While working on this, I also spotted a bug that f128 wasn't being included from TypeConverter and a few other places, so I included fixes for that as well.

Copy link
Contributor

@fw-immunant fw-immunant left a comment

Choose a reason for hiding this comment

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

LGTM.

Copy link
Contributor

@kkysen kkysen left a comment

Choose a reason for hiding this comment

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

Thanks!!

@kkysen kkysen merged commit 3bc4fb0 into immunant:master Sep 22, 2025
5 checks passed
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.

Why is use ::libc; included in every file?

3 participants