/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/_static_tuple_c.pxd

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2010-04-06 06:59:03 UTC
  • mfrom: (5051.5.1 subunit)
  • Revision ID: pqm@pqm.ubuntu.com-20100406065903-y9dxgwmog1pmw7dz
Use subunit when running tests in PQM.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 
19
19
 
20
20
cdef extern from "Python.h":
 
21
    ctypedef int Py_ssize_t # Required for older pyrex versions
21
22
    ctypedef struct PyObject:
22
23
        pass
23
24
 
24
25
cdef extern from "_static_tuple_c.h":
25
 
    ctypedef class breezy._static_tuple_c.StaticTuple [object StaticTuple]:
 
26
    ctypedef class bzrlib._static_tuple_c.StaticTuple [object StaticTuple]:
26
27
        cdef unsigned char size
27
28
        cdef unsigned char flags
28
29
        cdef PyObject *items[0]
32
33
    int import_static_tuple_c() except -1
33
34
    StaticTuple StaticTuple_New(Py_ssize_t)
34
35
    StaticTuple StaticTuple_Intern(StaticTuple)
35
 
    StaticTuple StaticTuple_FromSequence(object)
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)
42
42
    # not an 'object' return value.
43
43
    void *StaticTuple_GET_ITEM(StaticTuple key, Py_ssize_t offset)
44
44
    int StaticTuple_CheckExact(object)
45
 
    Py_ssize_t StaticTuple_GET_SIZE(StaticTuple key)