fix #675: make 'by' a non-keyword also in .pyx files
[cython.git] / tests / compile / pylong.pyx
1 # mode: compile
2
3 cdef extern from "Python.h":
4     ctypedef struct PyTypeObject:
5         pass
6
7     ctypedef struct PyObject:
8         Py_ssize_t ob_refcnt
9         PyTypeObject *ob_type
10
11 cdef extern from "longintrepr.h":
12     cdef struct _longobject:
13         int ob_refcnt
14         PyTypeObject *ob_type
15 #        int ob_size            # not in Py3k
16         unsigned int *ob_digit
17
18 def test(temp = long(0)):
19     cdef _longobject *l
20     l = <_longobject *> temp
21     #print sizeof(l.ob_size)    # not in Py3k
22     print sizeof(l.ob_digit[0])