/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: John Arbash Meinel
  • Date: 2009-10-20 04:25:27 UTC
  • mto: This revision was merged to the branch mainline in revision 4758.
  • Revision ID: john@arbash-meinel.com-20091020042527-ehogm27th7o4htt6
Move the note and assertions.

We will assert that the internal node cache doesn't change,
though since it is empty, it isn't asserting much... :)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2009, 2010 Canonical Ltd
 
1
# Copyright (C) 2009 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
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)
39
 
    # We would normally use PyObject * here. However it seems that cython/pyrex
40
 
    # treat the PyObject defined in this header as something different than one
41
 
    # defined in a .pyx file. And since we don't INCREF, we need a raw pointer,
42
 
    # not an 'object' return value.
43
 
    void *StaticTuple_GET_ITEM(StaticTuple key, Py_ssize_t offset)
 
39
    object StaticTuple_GET_ITEM(StaticTuple key, Py_ssize_t offset)
44
40
    int StaticTuple_CheckExact(object)