fix tests
authorRobert Bradshaw <robertwb@math.washington.edu>
Tue, 30 Sep 2008 19:07:11 +0000 (12:07 -0700)
committerRobert Bradshaw <robertwb@math.washington.edu>
Tue, 30 Sep 2008 19:07:11 +0000 (12:07 -0700)
tests/compile/types_and_names.pxd [new file with mode: 0644]
tests/compile/types_and_names.pyx

diff --git a/tests/compile/types_and_names.pxd b/tests/compile/types_and_names.pxd
new file mode 100644 (file)
index 0000000..22a7b73
--- /dev/null
@@ -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)
+             
index cd58910d57c36ad4a0b355d551964918caeb6163..c54bb321a2b6dcbfc6b00013b4cc58dfa40d0200 100644 (file)
@@ -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