set PyObject * out typemaps back to simple returns

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8584 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2006-01-28 03:38:05 +00:00
commit b8bf059066
4 changed files with 5 additions and 24 deletions

View file

@ -26,9 +26,6 @@ namespace swig
Mark methods that return new objects
*/
%newobject PySwigIterator::copy;
%newobject PySwigIterator::value;
%newobject PySwigIterator::next;
%newobject PySwigIterator::previous;
%newobject PySwigIterator::operator + (ptrdiff_t n) const;
%newobject PySwigIterator::operator - (ptrdiff_t n) const;
}

View file

@ -83,21 +83,6 @@
}
/* For output, we increase the reference object */
%typemap(out,noblock=1) PyObject * {
$result = $1;
%#if !($owner)
Py_XINCREF($result);
%#endif
}
%typemap(out,noblock=1) PyObject * const & {
$result = *$1;
%#if !($owner)
Py_XINCREF($result);
%#endif
}
/* Consttab, needed for callbacks, it should be removed later */
%typemap(consttab) SWIGTYPE ((*)(ANY))