def __init__(self): BaseCompiler.__init__(self) self.forward_declarations = set([]) # depends on these .o files self.extra_objects = set([]) # to avoid adding the same function's source twice # we also track the signatures in a set self.extra_function_signatures = set([]) self.extra_function_sources = []
def __init__(self, module_entry = False, struct_type_cache = None, **kwargs): BaseCompiler.__init__(self, **kwargs) self.declarations = [] # depends on these .o files self.extra_objects = set([]) # to avoid adding the same function's source twice # we use its signature as a key self.extra_functions = {} self.extra_function_signatures = [] # are we actually compiling the entry-point into a Python module? # if so, expect some of the methods like visit_Return to be overloaded # to return PyObjects self.module_entry = module_entry