-
Notifications
You must be signed in to change notification settings - Fork 37
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
On enums and scope #140
Comments
I'm not sure if this is possible. When the compiler is analyzing |
Hummm… C enum symbols are global and must be named appropriately to avoid clashes. D scopes the symbols and is better for that. I guess the only way is to keep a temporary look up table of all enum symbols and then do a look up to impose the scope. This may be more effort that it is worth. |
I think it would be reasonable to have a flag to add aliases for all enum members. That would allow to generate bindings with a closer API to the C API.
Perhaps that could work. |
With the libdvbv5 C header file transform, a lot of named enums are created. This is fine per se. So for example:
is transformed to:
However, the line:
gets transformed into:
where it needs to be transformed to:
The text was updated successfully, but these errors were encountered: