[Pyrex] Calling C varargs function with a NULL pointer
Sven Berkvens-Matthijsse
sven at pyrex.berkvens.net
Thu May 24 08:34:54 UTC 2007
> >I'm using Pyrex 0.9.5.1a, which seems to be the latest version. I've
> >attached a very small test file which demonstrates the problem.
> >
> >cdef extern from *:
> > void test(char *something, ...)
> >
> >def check_test():
> > test("hello", "whatever", "blah", NULL)
>
> When I compile this, it generates the following code
> for the function call:
>
> /* "/Users/greg/foo.pyx":5 */
> test(__pyx_k1,__pyx_k2,__pyx_k3,NULL);
>
> Do you get something different?
No, not anymore. Apparently I had a different version of Pyrex
installed than I thought. I reinstalled Pyrex yesterday to be sure
that I had the latest version, but apparently something went wrong
there.
I'm sorry to have bothered you for nothing :-(
--
Sven
More information about the Pyrex
mailing list