[Pyrex] opaque types, constructors, assignment - help please

Péter Szabó ptspts+pyrex at gmail.com
Thu Feb 25 20:47:48 CET 2010


Hi,

> cdef extern from "../src/capi.h":
>    ctypedef extern struct FastBitQueryHandle

Try this instead:

cdef extern from "../src/capi.h":
  struct FastBitQueryHandle:
    pass

Or this:

cdef extern from "../src/capi.h":
  struct FastBitQueryHandle_struct "FastBitQueryHandle":
    pass
  ctypedef FastBitQueryHandle_struct FastBitQueryHandle

To better understand what happens, diff the .c files generated by the
various methods.

Best regards,

Péter



More information about the Pyrex mailing list