Yong Sun wrote: > BTW, how did you deal with the #define constant in C source? I use > "ctypedef enum:" block to re-declare them. That's a perfectly good way. You don't have to specify the values in the Pyrex file, only the names. The values will be gotten from the .h file. Greg