Exemple #1
0
    def __init__(self, code_sink):
        super(_MonolithicSinkManager, self).__init__()
        self.final_code_sink = code_sink
        self.null_sink = NullCodeSink()
        self.includes = MemoryCodeSink()
        self.code_sink = MemoryCodeSink()

        utils.write_preamble(code_sink)
    def __init__(self, code_sink):
        super(_MonolithicSinkManager, self).__init__()
        self.final_code_sink = code_sink
        self.null_sink = NullCodeSink()
        self.includes = MemoryCodeSink()
        self.code_sink = MemoryCodeSink()

        utils.write_preamble(code_sink)
 def __init__(self, multi_section_factory):
     super(_MultiSectionSinkManager, self).__init__()
     self.multi_section_factory = multi_section_factory
     utils.write_preamble(self.multi_section_factory.get_common_header_code_sink())
     self.multi_section_factory.get_main_code_sink().writeln(
         "#include %s" % self.multi_section_factory.get_common_header_include())
     self._already_initialized_sections = {}
     self._already_initialized_sections['__main__'] = True
Exemple #4
0
 def __init__(self, multi_section_factory):
     super(_MultiSectionSinkManager, self).__init__()
     self.multi_section_factory = multi_section_factory
     utils.write_preamble(
         self.multi_section_factory.get_common_header_code_sink())
     self.multi_section_factory.get_main_code_sink().writeln(
         "#include %s" %
         self.multi_section_factory.get_common_header_include())
     self._already_initialized_sections = {}
     self._already_initialized_sections['__main__'] = True