Skip to content

Commit

Permalink
Revert "clean up json printer"
Browse files Browse the repository at this point in the history
This reverts commit bfa12fb.
  • Loading branch information
mara004 committed Nov 12, 2023
1 parent 85a5131 commit cca2773
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ctypesgen/printer_json/printer.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ def __init__(self, outpath, options, data):
"function": self.print_function,
"macro": self.print_macro,
"struct": self.print_struct,
"struct-body": self.print_struct_members,
"typedef": self.print_typedef,
"variable": self.print_variable,
"enum": self.print_enum,
Expand Down Expand Up @@ -96,6 +97,9 @@ def print_struct(self, struct):
res["fields"].append(field)
return res

def print_struct_members(self, struct):
pass

def print_enum(self, enum):
res = {"type": "enum", "name": enum.tag}

Expand Down

0 comments on commit cca2773

Please sign in to comment.