~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/_btree_serializer_pyx.pyx

  • Committer: John Arbash Meinel
  • Date: 2009-10-07 15:27:24 UTC
  • mto: (4679.6.1 2.1-export-c-api)
  • mto: This revision was merged to the branch mainline in revision 4735.
  • Revision ID: john@arbash-meinel.com-20091007152724-m1w3zh7zt1aj4b0e
Revert back to before I started trying to move to pyrex/cython code.

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
 
60
60
# It seems we need to import the definitions so that the pyrex compiler has
61
61
# local names to access them.
62
 
# from _static_tuple_pyx cimport StaticTuple, \
63
 
#     StaticTuple_New, \
64
 
#     StaticTuple_Intern, StaticTuple_SET_ITEM, StaticTuple_CheckExact
 
62
from _static_tuple_c cimport StaticTuple, \
 
63
    import_static_tuple_c, STATIC_TUPLE_ALL_STRING, StaticTuple_New, \
 
64
    StaticTuple_Intern, StaticTuple_SET_ITEM, StaticTuple_CheckExact
65
65
 
66
66
 
67
67
# TODO: Find some way to import this from _dirstate_helpers
102
102
    Py_DECREF_ptr(py_str)
103
103
    return result
104
104
 
105
 
from bzrlib import _static_tuple_pyx
106
 
# import_static_tuple_pyx()
 
105
from bzrlib import _static_tuple_c
 
106
cdef object _ST
 
107
_ST = _static_tuple_c.StaticTuple
 
108
# This sets up the StaticTuple C_API functionality
 
109
import_static_tuple_c()
107
110
 
108
111
 
109
112
cdef class BTreeLeafParser: