On 5 March 2010 14:55, Robert Bradshaw <[email protected]> wrote:
> On Mar 5, 2010, at 9:51 AM, Lisandro Dalcin wrote:
>
>> Let's wait for Robert's comments... Perhaps your original problem is
>> indeed a bug, and we should fix it.
>
> Yes, I consider that a bug.
>
> - Robert
>
Here you have an extended testcase:
diff -r 2137466cab4a tests/compile/funcptr.pyx
--- a/tests/compile/funcptr.pyx Wed Feb 24 17:21:15 2010 -0300
+++ b/tests/compile/funcptr.pyx Fri Mar 05 16:42:36 2010 -0300
@@ -8,3 +8,15 @@
cdef inline funcptr_t* dummy():
return &grail
+
+ctypedef int MyInt
+
+ctypedef int __stdcall foo0_t()
+foo0_t *a = grail
+ctypedef MyInt __stdcall foo1_t()
+foo1_t *b = grail
+
+ctypedef int (__stdcall *bar0_t)()
+bar0_t x = grail
+ctypedef MyInt (__stdcall *bar1_t)()
+bar0_t y = grail
--
Lisandro Dalcin
---------------
Centro Internacional de Métodos Computacionales en Ingeniería (CIMEC)
Instituto de Desarrollo Tecnológico para la Industria Química (INTEC)
Consejo Nacional de Investigaciones Científicas y Técnicas (CONICET)
PTLC - Güemes 3450, (3000) Santa Fe, Argentina
Tel/Fax: +54-(0)342-451.1594
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev