-
Notifications
You must be signed in to change notification settings - Fork 596
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
Valueless enum members are generated incorrectly #240
Labels
Comments
I just came here to report them same problem. I'm going to have a go at fixing it. |
@altendky PTAL |
SethPoulsen
pushed a commit
to SethPoulsen/pycparser
that referenced
this issue
Mar 15, 2018
SethPoulsen
pushed a commit
to SethPoulsen/pycparser
that referenced
this issue
Mar 15, 2018
No need. I got it sorted out. |
eliben
pushed a commit
that referenced
this issue
Mar 16, 2018
Is this still an issue? It seems like a commit has already fixed it. |
Ya, I fixed it. It should be closed. |
Just tested under 2.19, and works for me. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This seems to have been introduced by #216, which inadvertently removed some special-case checks. Enum members that don't have an assigned value now generate an invalid, empty assignment. For example:
In the original code,
MOT_TravelModeUndefined
was assigned no value, and should be generated with no=
sign.The text was updated successfully, but these errors were encountered: