> The sig is: struct iovec *hdr_names[], struct iovec *hdr_values[]
Okay, this is probably the problem then. It is expecting an array of
pointers to individual structs, not a pointer to an array of structs.
When it iterates over the array, it iterates over the itvec**
instance, expecting an iovec* at each iteration. What you need to do
with your code is create an intermediate array that is what it wants.
If there is only one element, then the two cases are the same, so it
would not segfault. Something like:
cdef iovec** ptrarray = <iovec**>malloc(n*sizeof(iovec*)
for 0 <= i < n:
ptr_array[i] = &hrd_array[i]
...
free(ptr_array)
--Hoyt
++++++++++++++++++++++++++++++++++++++++++++++++
+ Hoyt Koepke
+ University of Washington Department of Statistics
+ http://www.stat.washington.edu/~hoytak/
+ [email protected]
++++++++++++++++++++++++++++++++++++++++++
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev