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

Generate accessors by field names in truly anonymous unions #124

Open
keynmol opened this issue Sep 25, 2022 · 0 comments
Open

Generate accessors by field names in truly anonymous unions #124

keynmol opened this issue Sep 25, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@keynmol
Copy link
Contributor

keynmol commented Sep 25, 2022

Take this example from io_uring: https://unixism.net/loti/ref-liburing/sqe.html

It uses anonymous unions without a field name - so we need to generate accessors on the struct itself: https://github.com/axboe/liburing/blob/e9209a3c6053a94b34919e14553ea9a43a5a5f7c/src/include/liburing.h#L423

Additionally, the unions are not mentioned in the struct at all, which means it has the wrong size.

@keynmol keynmol added the bug Something isn't working label Sep 25, 2022
@keynmol keynmol added this to the 0.1.0 milestone Sep 25, 2022
@keynmol keynmol removed this from the 0.1.0 milestone Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant