diff --git a/scripts/mbedtls_framework/c_parsing_helper.py b/scripts/mbedtls_framework/c_parsing_helper.py index 6730ce297..9c1586157 100644 --- a/scripts/mbedtls_framework/c_parsing_helper.py +++ b/scripts/mbedtls_framework/c_parsing_helper.py @@ -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\w+) (?P\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()