/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 breezy/_static_tuple_c.pxd

  • Committer: Jelmer Vernooij
  • Date: 2018-11-20 08:11:03 UTC
  • mto: This revision was merged to the branch mainline in revision 7209.
  • Revision ID: jelmer@jelmer.uk-20181120081103-qx2dpf4rca0okzd3
Import plugin-development.txt.

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
22
21
    ctypedef struct PyObject:
23
22
        pass
24
23
 
25
24
cdef extern from "_static_tuple_c.h":
26
 
    ctypedef class bzrlib._static_tuple_c.StaticTuple [object StaticTuple]:
 
25
    ctypedef class breezy._static_tuple_c.StaticTuple [object StaticTuple]:
27
26
        cdef unsigned char size
28
27
        cdef unsigned char flags
29
28
        cdef PyObject *items[0]
33
32
    int import_static_tuple_c() except -1
34
33
    StaticTuple StaticTuple_New(Py_ssize_t)
35
34
    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)