[Pyrex] ctypedef bug?
Florian Schulze
florian.proff.schulze at gmx.net
Wed Jul 23 21:29:04 CEST 2003
Hi!
If I do the following:
cdef extern from "stdarg.h":
ctypedef void *va_list
void va_start(va_list ap, char *fmt)
void va_end(va_list)
int vprintf(char *fmt, va_list v)
cdef int test(char *fmt, ...):
cdef va_list v
va_start(v, fmt)
vprintf(fmt, v)
va_end(v)
then I this:
static int __pyx_f_5test1_test(char (*__pyx_v_fmt),...) {
void (*__pyx_v_v);
where it should be:
static int __pyx_f_5test1_test(char (*__pyx_v_fmt),...) {
va_list __pyx_v_v;
This gives a problem when compiling in gcc, because va_list is not really
void *, but __builtin_va_list.
Florian Schulze
More information about the Pyrex
mailing list