fix #675: make 'by' a non-keyword also in .pyx files
[cython.git] / tests / compile / a_capi.pyx
1 # mode: compile
2
3 cdef public struct Foo:
4     int a, b
5
6 ctypedef struct Blarg:
7     int c, d
8
9 ctypedef public Foo Zax
10
11 cdef public class C[type C_Type, object C_Obj]:
12     pass
13
14 cdef public Zax *blarg
15
16 cdef public C c_pub = C()
17 cdef api    C c_api = C()
18
19 cdef public dict o_pub = C()
20 cdef api    list o_api = C()
21
22 cdef api float f(Foo *x):
23     pass
24
25 cdef public void g(Blarg *x):
26     pass
27
28 cdef public api void h(Zax *x):
29     pass
30
31 cdef extern from "a_capi.h":
32     pass