Ejemplo n.º 1
0
 def __init__(self, space, name, mode):
     self.flags = libffi.FUNCFLAG_CDECL
     self.space = space
     if name is None:
         self.name = "<None>"
     else:
         self.name = name
     try:
         self.cdll = libffi.CDLL(name, mode)
     except DLOpenError, e:
         raise wrap_dlopenerror(space, e, self.name)
Ejemplo n.º 2
0
def c_load_dictionary(name):
    return libffi.CDLL(name)
Ejemplo n.º 3
0
def c_load_dictionary(name):
    result = _c_load_dictionary(name)
    # ignore result: libffi.CDLL(name) either returns a handle to the already
    # open file, or will fail as well and produce a correctly formatted error
    return libffi.CDLL(name)