[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Subversion SWIG patch.

From: Michael Wood <mwood_at_its.uct.ac.za>
Date: 2002-09-17 10:22:00 CEST

On Mon, Sep 16, 2002 at 03:27:33PM -0500, cmpilato@collab.net wrote:
[snip]
> %typemap(arginit) apr_pool_t *pool(apr_pool_t *_global_pool) {
> if (SWIG_ConvertPtr(PyObject_GetItem(args, PyInt_FromLong($argnum)),
> (void **)&$1, $1_descriptor, 0) == -1) {
> return NULL;
> }
> _global_pool = $1;
> }
> %typemap(in) apr_pool_t *pool "";
[snip]

I've only played around with SWIG and Python C bindings a little, but
shouldn't that "return NULL;" be something like this instead:

  Py_INCREF(Py_None); return PyNone;

-- 
Michael Wood <mwood@its.uct.ac.za>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Sep 17 10:23:11 2002

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.