Flag a few other functions returning borrowed refs

This commit is contained in:
Daniele Varrazzo 2012-02-24 20:42:16 +00:00
parent 4ecfd48671
commit 0ee641361b
3 changed files with 3 additions and 0 deletions

View File

@ -550,6 +550,7 @@ psyco_conn_autocommit_get(connectionObject *self)
return ret;
}
CPYCHECKER_RETURNS_BORROWED_REF
static PyObject *
_psyco_conn_autocommit_set_checks(connectionObject *self)
{

View File

@ -85,6 +85,7 @@ struct cursorObject {
/* C-callable functions in cursor_int.c and cursor_ext.c */
CPYCHECKER_RETURNS_BORROWED_REF
HIDDEN PyObject *curs_get_cast(cursorObject *self, PyObject *oid);
HIDDEN void curs_reset(cursorObject *self);

View File

@ -38,6 +38,7 @@
* Return a borrowed reference.
*/
CPYCHECKER_RETURNS_BORROWED_REF
PyObject *
curs_get_cast(cursorObject *self, PyObject *oid)
{