Skip to content

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
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