[pypy-svn] r53266 - pypy/dist/pypy/lib/_ctypes
fijal at codespeak.net
fijal at codespeak.net
Thu Apr 3 03:32:48 CEST 2008
Author: fijal
Date: Thu Apr 3 03:32:47 2008
New Revision: 53266
Modified:
pypy/dist/pypy/lib/_ctypes/function.py
Log:
This fixes non-working pyglet examples, but I still don't completely get
what should be here in the first place
Modified: pypy/dist/pypy/lib/_ctypes/function.py
==============================================================================
--- pypy/dist/pypy/lib/_ctypes/function.py (original)
+++ pypy/dist/pypy/lib/_ctypes/function.py Thu Apr 3 03:32:47 2008
@@ -114,8 +114,8 @@
argtypes = argtypes[:] + self._guess_argtypes(args[cut:])
restype = self._restype_
funcptr = self._getfuncptr(argtypes, restype)
- args = self._wrap_args(argtypes, args)
- resbuffer = funcptr(*[arg._buffer for obj, arg in args])
+ argsandobjs = self._wrap_args(argtypes, args)
+ resbuffer = funcptr(*[arg._buffer for _, arg in argsandobjs])
if restype is not None:
if not isinstance(restype, _CDataMeta):
return restype(resbuffer[0])
@@ -147,8 +147,8 @@
res.append(type(arg))
elif arg is None:
res.append(c_void_p)
- elif arg == 0:
- res.append(c_void_p)
+ #elif arg == 0:
+ # res.append(c_void_p)
elif isinstance(arg, (int, long)):
res.append(c_int)
else:
More information about the Pypy-commit
mailing list