fix #675: make 'by' a non-keyword also in .pyx files
[cython.git] / tests / compile / cnamespec.pyx
1 # mode: compile
2
3 cdef extern from "cnamespec.h":
4     int a "c_a", b "c_b"
5
6 cdef struct foo "c_foo":
7     int i "c_i"
8
9 ctypedef enum blarg "c_blarg":
10     x "c_x"
11     y "c_y" = 42
12
13 cdef double spam "c_spam" (int i, float f):
14     cdef double d "c_d"
15     cdef foo *p
16     global b
17     d = spam(a, f)
18     cdef foo q
19     q.i = 7
20     p = &q
21     b = p.i
22     p.i = x
23     p.i = y
24
25 cdef inline double spam2 "c_spam2" (int i, float f):
26     return spam(i,f)