[Pyrex] How could I embed/inline a small piece of c code in pyrex file?

Greg Ewing greg.ewing at canterbury.ac.nz
Mon Mar 13 23:57:02 CET 2006


Yong Sun wrote:

> However, the xEvent definition is too long and too complex

You don't have to declare all of its fields in
the Pyrex file, only the ones you want to access.
As long as it's in a "cdef extern from" block,
the actual definition in the .h file will get
used at C compilation time.

Greg



More information about the Pyrex mailing list