(self, src)
Updates self.types_dict.
Updates self.types_dict.
Updates self . types_dict .
def parse_structs_and_function_pointer_typedefs(self, src):
    """Updates self.types_dict."""
    parser = (header_parsing.NESTED_STRUCTS |
              header_parsing.FUNCTION_PTR_TYPE_DECL)
    for tokens, _, _ in parser.scanString(src):
      for token in tokens:
        if token.return_type:
          # This is a function type declaration.
          self.types_dict[token.typename] = c_declarations.FunctionPtrTypedef(
              token.typename,
              self.get_type_from_token(token.return_type),
              tuple(self.get_type_from_token(arg) for arg in token.arguments))
        else:
          # This is a struct or a union.
          self.get_type_from_token(token)
def parse_structs_and_function_pointer_typedefs ( self , src ) : parser = ( header_parsing . NESTED_STRUCTS | header_parsing . FUNCTION_PTR_TYPE_DECL ) for tokens , _ , _ in parser . scanString ( src ) : for token in tokens : if token . return_type : # This is a function type declaration. self . types_dict [ token . typename ] = c_declarations . FunctionPtrTypedef ( token . typename , self . get_type_from_token ( token . return_type ) , tuple ( self . get_type_from_token ( arg ) for arg in token . arguments ) ) else : # This is a struct or a union. self . get_type_from_token ( token )