* python/py-threadevent.c (get_event_thread): Use

CPYCHECKER_RETURNS_BORROWED_REF.
	* python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
	New define.
	(pspace_to_pspace_object, objfile_to_objfile_object)
	(find_thread_object): Use it.
This commit is contained in:
Tom Tromey 2013-05-20 20:10:03 +00:00
parent 62eec1a534
commit 634c58be55
3 changed files with 25 additions and 3 deletions

View file

@ -24,6 +24,9 @@
This function returns the currently stopped thread in non-stop mode and
Py_None otherwise. In each case it returns a borrowed reference. */
static PyObject *get_event_thread (void)
CPYCHECKER_RETURNS_BORROWED_REF;
static PyObject *
get_event_thread (void)
{