Skip to content
New issue

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

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

Already on GitHub? # to your account

Add emit_declname parameter to _generate_type to match pycparser #56

Merged
merged 3 commits into from
Nov 25, 2020
Merged

Add emit_declname parameter to _generate_type to match pycparser #56

merged 3 commits into from
Nov 25, 2020

Conversation

tautschnig
Copy link
Contributor

As of eliben/pycparser#315, _generate_type()
makes emitting the declname configurable. Do the same in ext_c_generator
to avoid a TypeError.

As of eliben/pycparser#315, _generate_type()
makes emitting the declname configurable. Do the same in ext_c_generator
to avoid a TypeError.
tautschnig added a commit to tautschnig/fshell-w2t that referenced this pull request Nov 23, 2020
@inducer
Copy link
Owner

inducer commented Nov 24, 2020

Thanks for your contribution! This looks good to me. To get this merged, could you:

  • add a small test that exercises the code you changed, and
  • modify the version constraint in setup.py to an appropriate value?

Without the preceding patch, the same test would fail with:
```
    def visit_TypeDecl(self, n):
>       return self._generate_type(n, emit_declname=False)
E       TypeError: _generate_type() got an unexpected keyword argument 'emit_declname'
```
@tautschnig
Copy link
Contributor Author

Thanks for your contribution! This looks good to me. To get this merged, could you:

  • add a small test that exercises the code you changed, and
  • modify the version constraint in setup.py to an appropriate value?

Thank you for your immediate feedback. Both are now done, in two additional commits.

@inducer
Copy link
Owner

inducer commented Nov 25, 2020

Thanks for the quick response. LGTM

@inducer inducer merged commit 3604185 into inducer:master Nov 25, 2020
tautschnig added a commit to tautschnig/fshell-w2t that referenced this pull request Nov 25, 2020
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants