Lichen

Change of translator.py

354:4cb3b47bd18f
translator.py
     1.1 --- a/translator.py	Fri Dec 09 00:09:01 2016 +0100
     1.2 +++ b/translator.py	Fri Dec 09 16:22:37 2016 +0100
     1.3 @@ -46,7 +46,8 @@
     1.4          self.check_output()
     1.5  
     1.6          for module in self.importer.modules.values():
     1.7 -            if module.name != "native":
     1.8 +            parts = module.name.split(".")
     1.9 +            if parts[0] != "native":
    1.10                  tm = TranslatedModule(module.name, self.importer, self.deducer, self.optimiser)
    1.11                  tm.translate(module.filename, join(output, "%s.c" % module.name))
    1.12  
    1.13 @@ -1479,7 +1480,7 @@
    1.14  
    1.15              if name is not None:
    1.16                  name_ref = self.process_structure_node(name)
    1.17 -                self.writeline("else if (__BOOL(__fn_native__isinstance((__attr[]) {{0, 0}, __tmp_exc.arg, %s})))" % name_ref)
    1.18 +                self.writeline("else if (__BOOL(__fn_native_introspection_isinstance((__attr[]) {{0, 0}, __tmp_exc.arg, %s})))" % name_ref)
    1.19              else:
    1.20                  self.writeline("else if (1)")
    1.21