~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/_btree_serializer_c.pyx

  • Committer: John Arbash Meinel
  • Date: 2008-08-22 03:54:29 UTC
  • mto: This revision was merged to the branch mainline in revision 3644.
  • Revision ID: john@arbash-meinel.com-20080822035429-qa604ysmpghwzcs3
PQM's pyrex version requires Py_ssize_t to be manually defined

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
    ctypedef unsigned size_t
22
22
 
23
23
cdef extern from "Python.h":
 
24
    ctypedef int Py_ssize_t # Required for older pyrex versions
24
25
    ctypedef struct PyObject:
25
26
        pass
26
27
    int PyList_Append(object lst, object item) except -1