示例#1
0
 def _search_system(self):
     """try to match unresolved declaration to system as stdio.h, math.h"""
     for cell, _ in self.block_holder.simple_resources:
         sys_validator = getSystemNameValidatorFor(cell)
         sys_names = sys_validator.names()
         deps = cell.dependencies
         for declaration in deps.unresolved.copy():
             system_match = declaration.match_system(sys_names)
             if system_match:
                 deps.resolve_system(declaration, system_match)
示例#2
0
 def _search_system(self):
     """try to match unresolved declaration to system as stdio.h, math.h"""
     for cell, _ in self.block_holder.simple_resources:
         sys_validator = getSystemNameValidatorFor(cell)
         sys_names = sys_validator.names()
         deps = cell.dependencies
         for declaration in deps.unresolved.copy():
             system_match = declaration.match_system(sys_names)
             if system_match:
                 deps.resolve_system(declaration, system_match)
 def generate_python_sys_libs(self):
     cell_mock = Mock()
     cell_mock.type = BiiType(PYTHON)
     validator = getSystemNameValidatorFor(cell_mock).names()
     return validator
 def generate_python_sys_libs(self):
     cell_mock = Mock()
     cell_mock.type = BiiType(PYTHON)
     validator = getSystemNameValidatorFor(cell_mock).names()
     return validator