Hi Wim,

On 1 August 2014 02:12,  <wlavrij...@lbl.gov> wrote:
>  flag = c_int(0)
>  set_flag(flag)
>
> and I can cook up a c_int myself, or re-use a data type representing a
> c_int, either from ctypes or cffi, that is already available. Re-using
> seems a better idea. For that to work, though, I need to be able to
> take the address of the actual payload of the c_int. This is not in the
> public interface of ctypes on CPython.

Isn't it `ctypes.addressof(flag)`?


Armin
_______________________________________________
pypy-dev mailing list
pypy-dev@python.org
https://mail.python.org/mailman/listinfo/pypy-dev

Reply via email to