From: Marcelo M. <mar...@us...> - 2004-12-01 01:20:17
|
Update of /cvsroot/swig/SWIG/Lib/python In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28472 Modified Files: pyrun.swg pyvoid.swg Log Message: fixes for void* Index: pyrun.swg =================================================================== RCS file: /cvsroot/swig/SWIG/Lib/python/pyrun.swg,v retrieving revision 1.51 retrieving revision 1.52 diff -C2 -d -r1.51 -r1.52 *** pyrun.swg 22 Nov 2004 16:47:49 -0000 1.51 --- pyrun.swg 1 Dec 2004 01:20:03 -0000 1.52 *************** *** 562,565 **** --- 562,567 ---- if (!tc) goto type_error; *ptr = SWIG_TypeCast(tc,vptr); + } else { + *ptr = vptr; } Index: pyvoid.swg =================================================================== RCS file: /cvsroot/swig/SWIG/Lib/python/pyvoid.swg,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** pyvoid.swg 18 Oct 2004 00:31:24 -0000 1.5 --- pyvoid.swg 1 Dec 2004 01:20:04 -0000 1.6 *************** *** 11,15 **** } ! %typemap(in) const void *& ($*ltype temp) { SWIG_ConvertPtr($input,(void **)&temp,0,SWIG_POINTER_EXCEPTION|$disown); if (SWIG_arg_fail($argnum)) SWIG_fail; --- 11,15 ---- } ! %typemap(in) void * const& ($*ltype temp) { SWIG_ConvertPtr($input,(void **)&temp,0,SWIG_POINTER_EXCEPTION|$disown); if (SWIG_arg_fail($argnum)) SWIG_fail; |