[pypy-svn] r52975 - pypy/dist/pypy/module/_rawffi
fijal at codespeak.net
fijal at codespeak.net
Thu Mar 27 03:24:15 CET 2008
Author: fijal
Date: Thu Mar 27 03:24:12 2008
New Revision: 52975
Modified:
pypy/dist/pypy/module/_rawffi/callback.py
Log:
a bit less magic - always pass buffer address to callback. This buffer leaves
long enough for callback to finish, later might be bogus. This still does not
solve a problem of a return value, next step.
Modified: pypy/dist/pypy/module/_rawffi/callback.py
==============================================================================
--- pypy/dist/pypy/module/_rawffi/callback.py (original)
+++ pypy/dist/pypy/module/_rawffi/callback.py Thu Mar 27 03:24:12 2008
@@ -18,8 +18,7 @@
res = rffi.cast(rffi.VOIDPP, ll_res)
argtypes = callback_ptr.args
space = callback_ptr.space
- w_args = space.newlist([wrap_value(space, get_elem, ll_args[i], 0,
- letter2tp(space, argtypes[i]))
+ w_args = space.newlist([space.wrap(rffi.cast(rffi.UINT, ll_args[i]))
for i in range(len(argtypes))])
w_res = space.call(w_callable, w_args)
unwrap_value(space, push_elem, ll_res, 0,
More information about the Pypy-commit
mailing list