コード例 #1
0
def shallow(libs, iface):
    tf = tempfile.NamedTemporaryFile(suffix=".iface", delete=False)
    tf.close()
    if not (iface is None):
        interface.writeInterface(iface, tf.name)
    else:
        iface = interface.emptyInterface()

    for l in libs:
        passes.interface(l, tf.name, [tf.name], quiet=True)
        x = interface.parseInterface(tf.name)
        interface.joinInterfaces(iface, x)

    tf.unlink(tf.name)
    return iface
コード例 #2
0
 def _references((m,f)):
     "Computing references"
     name = refs[m].new()
     passes.interface(f.get(), name, [])
コード例 #3
0
 def _references((m, f)):
     "Computing references"
     name = refs[m].new()
     passes.interface(f.get(), name, [])