[Pyrex] Calling C varargs function with a NULL pointer
Greg Ewing
greg.ewing at canterbury.ac.nz
Thu May 24 08:23:19 UTC 2007
Sven Berkvens-Matthijsse wrote:
> 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?
--
Greg
More information about the Pyrex
mailing list