Hi,
Lisandro Dalcin wrote:
> cdef api void activate(Vehicle *v):
> .....
>
> and then in the generated 'delorean_api.h' we have
>
> static void (*activate)(struct Vehicle *);
>
> Then the question is: Why the C name of the function pointer
> 'activate' is not mangled, using something like this (as it is
> similarly done for C type objects):
>
> static void (*__pyx_cfun_8delorean_activate)(struct Vehicle *);
> #define activate __pyx_cfun_8delorean_activate
That's not the case for types at all. If you say
cdef public class _Element [ type LxmlElementType, object LxmlElement ]:
then the names appear in the C file unchanged.
Stefan
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev