On Mon, Apr 27, 2009 at 7:11 AM, Dag Sverre Seljebotn
<[email protected]> wrote:
> How about
> cdef extern ...:
>    ctypedef void* FOO

That makes more sense to me, since I dont know what the struct FOO is, anyways.

Now, this lib requires me to create one such FOO, and initialize it to
NULL, then pass a pointer to it around.
The C example does something like this:

static FOO s_foo=NULL;

then:

lib_func(&foo)

How would I do this in Cython?

cdef FOO s_foo=NULL

Does not work.
Thanks a lot,
Mohamed.
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to