/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: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2020-07-28 02:47:10 UTC
  • mfrom: (7519.1.1 merge-3.1)
  • Revision ID: breezy.the.bot@gmail.com-20200728024710-a2ylds219f1lsl62
Merge lp:brz/3.1.

Merged from https://code.launchpad.net/~jelmer/brz/merge-3.1/+merge/388173

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
# You should have received a copy of the GNU General Public License
14
14
# along with this program; if not, write to the Free Software
15
15
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
 
16
#
 
17
# cython: language_level=3
16
18
 
17
19
"""The interface definition file for the StaticTuple class."""
18
20
 
19
21
 
20
22
cdef extern from "Python.h":
21
 
    ctypedef int Py_ssize_t # Required for older pyrex versions
22
23
    ctypedef struct PyObject:
23
24
        pass
24
25
 
25
26
cdef extern from "_static_tuple_c.h":
26
 
    ctypedef class bzrlib._static_tuple_c.StaticTuple [object StaticTuple]:
 
27
    ctypedef class breezy._static_tuple_c.StaticTuple [object StaticTuple]:
27
28
        cdef unsigned char size
28
29
        cdef unsigned char flags
29
30
        cdef PyObject *items[0]
33
34
    int import_static_tuple_c() except -1
34
35
    StaticTuple StaticTuple_New(Py_ssize_t)
35
36
    StaticTuple StaticTuple_Intern(StaticTuple)
 
37
    StaticTuple StaticTuple_FromSequence(object)
36
38
 
37
39
    # Steals a reference and val must be a valid type, no checking is done
38
40
    void StaticTuple_SET_ITEM(StaticTuple key, Py_ssize_t offset, object val)
42
44
    # not an 'object' return value.
43
45
    void *StaticTuple_GET_ITEM(StaticTuple key, Py_ssize_t offset)
44
46
    int StaticTuple_CheckExact(object)
 
47
    Py_ssize_t StaticTuple_GET_SIZE(StaticTuple key)