Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix nested struct sort order #3321

Merged
merged 3 commits into from
Oct 11, 2024
Merged

Fix nested struct sort order #3321

merged 3 commits into from
Oct 11, 2024

Conversation

kennykerr
Copy link
Collaborator

While working on the next version of windows-bindgen I noticed that the current version incorrectly sorts nested structs such that the mangled names (since Rust lacks support for nested types) are based on an internal sort order rather than the sort order provided by ECMA-335.

This usually isn't too noticeable, but some structs like FLT_PARAMETERS are now far more sensible.

I'm fixing it here in the current version to simplify diff validation of the next version of windows-bindgen.

@kennykerr kennykerr merged commit b4c9cb1 into master Oct 11, 2024
81 checks passed
@kennykerr kennykerr deleted the nested-order branch October 11, 2024 19:20
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