Skip to content

Commit

Permalink
Use the correct manglers for typedefs
Browse files Browse the repository at this point in the history
  • Loading branch information
sdilts committed Feb 6, 2020
1 parent 1542244 commit bab74e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cl_bindgen/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def main():
typedef_manglers = [k_mangler, u_managler]
constant_manglers = [u_managler, const_mangler]

options = ProcessOptions(typedef_manglers=type_managlers,
options = ProcessOptions(typedef_manglers=typedef_manglers,
enum_manglers=enum_manglers,
type_manglers=type_managlers,
name_manglers=name_managlers,
Expand Down
2 changes: 1 addition & 1 deletion cl_bindgen/processfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def _cursor_lisp_type_str(type_obj, options):
return known_type
else:
# assume that the typedef name is precded by ":":
return ":" + type_decl_str
return _mangle_string(type_decl_str, options.typedef_manglers)
elif kind == TypeKind.POINTER:
# emit the type of pointer:
pointee_type = type_obj.get_pointee()
Expand Down

0 comments on commit bab74e9

Please sign in to comment.