~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: 2010-05-11 11:47:36 UTC
  • mfrom: (5200.3.8 lock_return)
  • Revision ID: pqm@pqm.ubuntu.com-20100511114736-mc1sq9zyo3vufec7
(lifeless) Provide a consistent interface to Tree, Branch,
 Repository where lock methods return an object with an unlock method to
 unlock the lock. This breaks the API for Branch,
 Repository on their lock_write methods. (Robert Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
    int import_static_tuple_c() except -1
34
34
    StaticTuple StaticTuple_New(Py_ssize_t)
35
35
    StaticTuple StaticTuple_Intern(StaticTuple)
36
 
    StaticTuple StaticTuple_FromSequence(object)
37
36
 
38
37
    # Steals a reference and val must be a valid type, no checking is done
39
38
    void StaticTuple_SET_ITEM(StaticTuple key, Py_ssize_t offset, object val)
43
42
    # not an 'object' return value.
44
43
    void *StaticTuple_GET_ITEM(StaticTuple key, Py_ssize_t offset)
45
44
    int StaticTuple_CheckExact(object)
46
 
    Py_ssize_t StaticTuple_GET_SIZE(StaticTuple key)