~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/_static_tuple_c.pxd

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-10-26 15:59:54 UTC
  • mfrom: (4679.9.25 2.1-static-tuple-chk-map)
  • Revision ID: pqm@pqm.ubuntu.com-20091026155954-r9gw2rizkikw7cg7
(jam) Start using StaticTuple as part of the chk_map code.

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
 
37
37
    # Steals a reference and val must be a valid type, no checking is done
38
38
    void StaticTuple_SET_ITEM(StaticTuple key, Py_ssize_t offset, object val)
39
 
    object StaticTuple_GET_ITEM(StaticTuple key, Py_ssize_t offset)
 
39
    # We would normally use PyObject * here. However it seems that cython/pyrex
 
40
    # treat the PyObject defined in this header as something different than one
 
41
    # defined in a .pyx file. And since we don't INCREF, we need a raw pointer,
 
42
    # not an 'object' return value.
 
43
    void *StaticTuple_GET_ITEM(StaticTuple key, Py_ssize_t offset)
40
44
    int StaticTuple_CheckExact(object)