~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/_static_tuple_c.pxd

  • Committer: John Arbash Meinel
  • Date: 2010-02-17 17:11:16 UTC
  • mfrom: (4797.2.17 2.1)
  • mto: (4797.2.18 2.1)
  • mto: This revision was merged to the branch mainline in revision 5055.
  • Revision ID: john@arbash-meinel.com-20100217171116-h7t9223ystbnx5h8
merge bzr.2.1 in preparation for NEWS entry.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2009 Canonical Ltd
 
1
# Copyright (C) 2009, 2010 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
 
    object StaticTuple_GET_ITEM(StaticTuple key, Py_ssize_t offset)
 
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)
40
44
    int StaticTuple_CheckExact(object)