immunant / c2rust

Migrate C code to Rust
https://c2rust.com/
Other
3.81k stars 220 forks source link

Do not rewrite ADTs mentioned in extern blocks #960

Closed aneksteind closed 1 year ago

aneksteind commented 1 year ago

Fixes #948. Fixes an issue where we would rewrite structs and their fields even though they appear in extern blocks.

kkysen commented 1 year ago

Also, I changed "addresses" to "fixes" in the PR description as I don't think "addresses" is one of the keywords for closing an issue from a PR.

aneksteind commented 1 year ago

@spernsteiner I’m not clear on what further changes you’d like to see. Could you let me know if I’ve missed any concerns of yours?