コード例 #1
0
ファイル: dep_processor.py プロジェクト: lasote/common
 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
ファイル: dep_processor.py プロジェクト: MordodeMaru/common
 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)
コード例 #3
0
 def generate_python_sys_libs(self):
     cell_mock = Mock()
     cell_mock.type = BiiType(PYTHON)
     validator = getSystemNameValidatorFor(cell_mock).names()
     return validator
コード例 #4
0
 def generate_python_sys_libs(self):
     cell_mock = Mock()
     cell_mock.type = BiiType(PYTHON)
     validator = getSystemNameValidatorFor(cell_mock).names()
     return validator