/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/_simple_set_pyx.pxd

  • Committer: Marius Kruger
  • Date: 2010-07-10 21:28:56 UTC
  • mto: (5384.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 5385.
  • Revision ID: marius.kruger@enerweb.co.za-20100710212856-uq4ji3go0u5se7hx
* Update documentation
* add NEWS

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
     eg. SimpleSet.add(key) => saved_key and SimpleSet[key] => saved_key
24
24
"""
25
25
 
26
 
from cpython.object cimport PyObject
 
26
cdef extern from "Python.h":
 
27
    ctypedef struct PyObject:
 
28
        pass
27
29
 
28
30
 
29
31
cdef public api class SimpleSet [object SimpleSetObject, type SimpleSet_Type]:
72
74
                            # so we manage it manually
73
75
 
74
76
    cdef PyObject *_get(self, object key) except? NULL
75
 
    cpdef object add(self, key)
76
 
    cpdef bint discard(self, key) except -1
 
77
    cdef object _add(self, key)
 
78
    cdef int _discard(self, key) except -1
77
79
    cdef int _insert_clean(self, PyObject *key) except -1
78
80
    cdef Py_ssize_t _resize(self, Py_ssize_t min_unused) except -1
79
81