[Pyrex] Dynamic arrays in Pyrex
Greg Ewing
greg at cosc.canterbury.ac.nz
Thu Jun 5 02:29:45 CEST 2003
Simon Frost <sdfrost at ucsd.edu>:
> I'm still trying to work with dynamic arrays. This doesn't seem to work;
> any ideas?
>
> cdef extern from "stdlib.h":
> void *malloc(size_t size)
Make that
void *malloc(int size)
since Pyrex doesn't automatically know about types
such as size_t.
If that doesn't solve your problem, you'll have to
provide some more info about what went wrong -- e.g.
show us some error messages....
Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury, | A citizen of NewZealandCorp, a |
Christchurch, New Zealand | wholly-owned subsidiary of USA Inc. |
greg at cosc.canterbury.ac.nz +--------------------------------------+
More information about the Pyrex
mailing list