From 8cee959ee4d76b12ddb5842d026a07ccc043aec5 Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Tue, 30 Sep 2008 12:07:11 -0700 Subject: [PATCH] fix tests --- tests/compile/types_and_names.pxd | 9 +++++++++ tests/compile/types_and_names.pyx | 12 +++--------- 2 files changed, 12 insertions(+), 9 deletions(-) create mode 100644 tests/compile/types_and_names.pxd diff --git a/tests/compile/types_and_names.pxd b/tests/compile/types_and_names.pxd new file mode 100644 index 00000000..22a7b733 --- /dev/null +++ b/tests/compile/types_and_names.pxd @@ -0,0 +1,9 @@ +cdef struct point: + double x + double y + double z + +cdef foo(int, int i, + list, list L, + point, point p, point* ps) + diff --git a/tests/compile/types_and_names.pyx b/tests/compile/types_and_names.pyx index cd58910d..c54bb321 100644 --- a/tests/compile/types_and_names.pyx +++ b/tests/compile/types_and_names.pyx @@ -1,18 +1,12 @@ -cdef struct point: - double x - double y - double z - print sizeof(point*) -cdef extern from *: - cdef foo(int, int i, - list, list L, - point, point p, point* ps) +cdef foo(int i0, int i, list L0, list L, point p0, point p, point* ps): + pass cdef class A: cdef list cdef list L + # Possibly empty declarators cdef point(self, int, int i, list, list L, point, point p, point* ps): pass -- 2.26.2