[Pyrex] reserved word as function name problem
Greg Ewing
greg.ewing at canterbury.ac.nz
Wed Jul 5 00:58:11 UTC 2006
Test Drive wrote:
> tried various combinations of the following:
>
> cdef void(*del) "ctx_delete"
Using a C name is the right idea, but there are two
things: (1) the name you put in the quotes is the
one to be used in the generated C code, (2) the
C name always goes directly after the Pyrex name
that it corresponds to.
So you want
cdef struct ContextController:
void (*delete "del") (Context *)
--
Greg
More information about the Pyrex
mailing list