Cython has moved to github.

cython-devel

view tests/compile/cast_ctypedef_array_T518_helper.h @ 3080:982665cb1a01

casting to typedef pointer/array types (ticket #518)
author Lisandro Dalcin <dalcinl@gmail.com>
date Wed Mar 10 17:03:40 2010 -0300 (2 years ago)
parents
children
line source
1 struct __foo_struct { int i, j; };
2 typedef struct __foo_struct foo_t[1];
4 static void foo_init (foo_t v) { v[0].i = 0; v[0].j = 0; }
5 static void foo_clear (foo_t v) { v[0].i = 0; v[0].j = 0; }