Skip to content

Commit

Permalink
Upgrade to pycparser^2.21
Browse files Browse the repository at this point in the history
  • Loading branch information
ChiefGokhlayeh committed Nov 25, 2021
1 parent b85d1d2 commit a7aea53
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
4 changes: 3 additions & 1 deletion autofff/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ def _generateTypeDefForDecl(self, decl: Decl) -> str:
param.type.type.type.declname = name
typedef = Typedef(name, param.quals, ["typedef"], param.type)

param.type = TypeDecl(param.name, param.type.quals, IdentifierType([name]))
param.type = TypeDecl(
param.name, param.type.quals, None, IdentifierType([name])
)
typedefs += f"{self.cGen.visit_Typedef(typedef)};\n"
return typedefs

Expand Down
8 changes: 4 additions & 4 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ classifiers = [

[tool.poetry.dependencies]
python = "^3.9"
pycparser = "<=2.20"
pycparser = "^2.21"
overrides = "^6.1.0"
configobj = "^5.0.6"
validator = "^0.7.1"
Expand Down

0 comments on commit a7aea53

Please sign in to comment.