Lisandro wrote: > On Fri, May 15, 2009 at 1:03 AM, Mohamed Lrhazi <[email protected]> wrote: >> >> I tried first with commented version, then the uncommented: >> >> cdef extern from "sys/uio.h": >> # ctypedef struct iovec "struct iovec": >> # void *iov_base >> # size_t iov_len >> cdef struct iovec: >> void *iov_base >> size_t iov_len >> >> >> With the first, it fails whenever iovecs are declared, like this: >> >> uint32_t max_pending_trans >> char *traffic_class >> struct iovec *req_hdrs >> ^ > > But if you use the first, commented version, then do not use "struct > iovec *req_hdrs", just "iovec *req_hdrs" !!
Actually, I'm fairly certain that in Cython it is iovec* req_hrds in both cases. Cython does away with the strange C requirement in the same way as C++ does. Dag Sverre _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
