(self, old_ctypes_typename)
return new_ctypes_typename
Gets a qualified ctypes typename from typedefs_dict and C_TO_CTYPES.
Gets a qualified ctypes typename from typedefs_dict and C_TO_CTYPES.
Gets a qualified ctypes typename from typedefs_dict and C_TO_CTYPES .
def resolve_typename(self, old_ctypes_typename):
    """Gets a qualified ctypes typename from typedefs_dict and C_TO_CTYPES."""

    # Recursively dereference any typenames declared in self.typedefs_dict
    new_ctypes_typename = codegen_util.recursive_dict_lookup(
        old_ctypes_typename, self.typedefs_dict)

    # Try to convert to a ctypes native typename
    new_ctypes_typename = header_parsing.C_TO_CTYPES.get(
        new_ctypes_typename, new_ctypes_typename)

    if new_ctypes_typename == old_ctypes_typename:
      logging.warning("Could not resolve typename '%s'", old_ctypes_typename)

    return new_ctypes_typename
def resolve_typename ( self , old_ctypes_typename ) : # Recursively dereference any typenames declared in self.typedefs_dict new_ctypes_typename = codegen_util . recursive_dict_lookup ( old_ctypes_typename , self . typedefs_dict ) # Try to convert to a ctypes native typename new_ctypes_typename = header_parsing . C_TO_CTYPES . get ( new_ctypes_typename , new_ctypes_typename ) if new_ctypes_typename == old_ctypes_typename : logging . warning ( "Could not resolve typename '%s'" , old_ctypes_typename ) return new_ctypes_typename