/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: Martin
  • Date: 2019-06-16 19:53:27 UTC
  • mto: This revision was merged to the branch mainline in revision 7349.
  • Revision ID: gzlist@googlemail.com-20190616195327-awvhgbjo9g6mkt57
Relocate the bzr log file out of $HOME

Now under $XDG_CACHE_HOME on nix and %LOCALAPPDATA% on windows.

Setting $BRZ_HOME will override the cache location, to simplify test
isolation, and $BRZ_LOG is still the final word.

Drive-by fix various docs around bzr/brz spelling.

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)