Hello community, here is the log from the commit of package swig checked in at Tue Mar 25 19:50:15 CET 2008. -------- --- swig/swig.changes 2008-02-29 16:21:52.000000000 +0100 +++ /mounts/work_src_done/STABLE/swig/swig.changes 2008-03-20 18:08:01.000000000 +0100 @@ -1,0 +2,8 @@ +Thu Mar 20 14:28:40 CET 2008 - pth@suse.de + +- define SWIG_croak_null as croak("%s","") not croak(Nullch) + as croak is defined to take a string constant as 1st arg. +- Don't return an unitialized local variable in template code. +- Bracket if clauses so that the compiler doesn't warn in template code. + +------------------------------------------------------------------- New: ---- swig-perl_croak_fix.patch swig-python_disambiguate_if.patch swig-use_uninitialized_var.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ swig.spec ++++++ --- /var/tmp/diff_new_pack.E10813/_old 2008-03-25 19:48:40.000000000 +0100 +++ /var/tmp/diff_new_pack.E10813/_new 2008-03-25 19:48:40.000000000 +0100 @@ -19,9 +19,12 @@ AutoReqProv: on Summary: Simplified Wrapper and Interface Generator Version: 1.3.34 -Release: 2 +Release: 6 Source: swig-%{version}.tar.bz2 Patch2: swig-1.3.32-testsuite-warnings.patch +Patch3: swig-perl_croak_fix.patch +Patch4: swig-use_uninitialized_var.patch +Patch5: swig-python_disambiguate_if.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -91,6 +94,9 @@ %prep %setup -q %patch2 +%patch3 +%patch4 +%patch5 %build v1=$(awk '/^# Generated by GNU Autoconf / { print $6; exit; }' configure) @@ -146,6 +152,11 @@ %{_libdir}/swig %changelog +* Thu Mar 20 2008 pth@suse.de +- define SWIG_croak_null as croak("%%s","") not croak(Nullch) + as croak is defined to take a string constant as 1st arg. +- Don't return an unitialized local variable in template code. +- Bracket if clauses so that the compiler doesn't warn in template code. * Fri Feb 29 2008 mmarek@suse.cz - updated to 1.3.34 + shared_ptr support for Python ++++++ swig-1.3.32-testsuite-warnings.patch ++++++ --- /var/tmp/diff_new_pack.E10813/_old 2008-03-25 19:48:40.000000000 +0100 +++ /var/tmp/diff_new_pack.E10813/_new 2008-03-25 19:48:40.000000000 +0100 @@ -1,10 +1,6 @@ ---- - Examples/test-suite/template_array_numeric.i | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - ---- Examples/test-suite/template_array_numeric.i.orig +--- Examples/test-suite/template_array_numeric.i +++ Examples/test-suite/template_array_numeric.i -@@ -8,7 +8,7 @@ class Arrayf +@@ -8,7 +8,7 @@ float a[Len]; public: Arrayf() {} ++++++ swig-perl_croak_fix.patch ++++++ --- Lib/perl5/perlrun.swg +++ Lib/perl5/perlrun.swg @@ -158,7 +158,7 @@ # endif } #else -# define SWIG_croak_null() croak(Nullch) +# define SWIG_croak_null() croak("%s", "") #endif ++++++ swig-python_disambiguate_if.patch ++++++ --- Lib/python/pyclasses.swg +++ Lib/python/pyclasses.swg @@ -74,7 +74,10 @@ PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj) { - if (initial_ref) Py_XINCREF(_obj); + if (initial_ref) + { + Py_XINCREF(_obj); + } } PyObject_ptr & operator=(const PyObject_ptr& item) --- Lib/python/pycontainer.swg +++ Lib/python/pycontainer.swg @@ -448,7 +448,7 @@ ~PySequence_Cont() { - if (_seq) Py_DECREF(_seq); + if (_seq) { Py_DECREF(_seq); } } size_type size() const ++++++ swig-use_uninitialized_var.patch ++++++ --- Source/Modules/python.cxx +++ Source/Modules/python.cxx @@ -3400,6 +3400,11 @@ } else { Printf(w->code, "Swig::DirectorPureVirtualException::raise(\"Attempted to invoke pure virtual method %s::%s\");\n", SwigType_namestr(c_classname), SwigType_namestr(name)); + if (!is_void) { + if (!(ignored_method && !pure_virtual)) { + Printf(w->code, "c_result = (%s)0;\n", return_type); + } + } } } else { /* attach typemaps to arguments (C/C++ -> Python) */ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org