[Pyrex] conditional types from C headers

Phil Frost indigo at bitglue.com
Tue Jun 29 01:43:16 CEST 2004


In C it's rather common to have typedefs within #ifdef statements, for
example, size_t, uint32_t, etc. Is there any way to tell pyrex, "there
is a type called 'size_t', so just use it and let the C compiler do the
rest"? From what I can tell, If i do "ctypedef fu bar", then pyrex
translates all bars to fus, so the compiler and preprocessor can't do
their "magic". Any way to solve this?




More information about the Pyrex mailing list