code_wrapper: Whitespace fixes

Signed-off-by: Minos Galanakis <[email protected]>
This commit is contained in:
Minos Galanakis
2024-07-05 09:35:41 +01:00
parent 44f3415283
commit 7e43fcd823
@@ -151,12 +151,12 @@ def read_function_declarations(functions: Dict[str, FunctionInfo],
return_type,
name,
arguments)
_C_TYPEDEF_DECLARATION_RE = r'typedef (?:struct ){0,1}(?P<type>\w+) (?P<name>\w+)'
def read_typedefs(filename: str)-> Dict[str, str]:
""" Extract type definitions in a {typedef name: primitiv type} dictionary"""
type_decl = {}
with open(filename, encoding='utf-8') as inp:
content = inp.read()