[Pyrex] Dynamic arrays in Pyrex

Francesc Alted falted at openlc.org
Thu Jun 5 10:19:23 CEST 2003


A Dimecres 04 Juny 2003 20:57, Simon Frost va escriure:
> Dear Francesc, and the Pyrex list,
>
> I'm still trying to work with dynamic arrays. This doesn't seem to work;
> any ideas?

You miss to say what exactly is failing. Try adding the next line:

   ctypedef int size_t

so that you get

cdef extern from "stdlib.h":
   ctypedef int size_t
   void *malloc(size_t size)
   void free(void *ptr)

That should work

Cheers,

-- 
Francesc Alted




More information about the Pyrex mailing list