~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/_static_tuple_c.pxd

  • Committer: John Arbash Meinel
  • Date: 2009-10-21 21:27:19 UTC
  • mto: This revision was merged to the branch mainline in revision 4771.
  • Revision ID: john@arbash-meinel.com-20091021212719-05zh4t7oo5kaird3
More cleanups and clarifications.

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
 
    # This isn't particularly useful. Namely because Pyrex doesn't think of
40
 
    # this PyObject* to be the same type as a PyObject* defined in another
41
 
    # pyrex file... However, because we don't INCREF, we don't want to define
42
 
    # it as returning a regular 'object'.
43
 
    PyObject * 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)
44
44
    int StaticTuple_CheckExact(object)