/swig-pantheon/swig-1.3.31-ruby-rastullah-1.patch
Patch | 46 lines | 43 code | 3 blank | 0 comment | 0 complexity | 29dd22425ddf0ddaa62e2a0d23fd9aff MD5 | raw file
Possible License(s): IPL-1.0, Apache-2.0, LGPL-2.0, Unlicense, MPL-2.0-no-copyleft-exception, LGPL-2.1, JSON, GPL-3.0, MPL-2.0, CC0-1.0, CC-BY-SA-3.0, LGPL-3.0, WTFPL, BSD-2-Clause, 0BSD, BitTorrent-1.0, Cube, EPL-1.0, ISC, BSD-3-Clause, AGPL-3.0, GPL-2.0, MIT, AGPL-1.0, CC-BY-3.0
- --- swig-1.3.31/configure.old 2008-02-10 12:47:23.890611021 +0100
- +++ swig-1.3.31/configure 2008-02-10 12:47:54.908610178 +0100
- @@ -269,8 +269,8 @@
- # Identity of this package.
- PACKAGE_NAME='swig'
- PACKAGE_TARNAME='swig'
- -PACKAGE_VERSION='1.3.31'
- -PACKAGE_STRING='swig 1.3.31'
- +PACKAGE_VERSION='1.3.31-rl'
- +PACKAGE_STRING='swig 1.3.31-rl'
- PACKAGE_BUGREPORT='http://www.swig.org'
-
- ac_unique_file="Source/Swig/swig.h"
- --- swig-1.3.31/Source/Modules/ruby.cxx.old 2008-02-10 12:39:23.766610819 +0100
- +++ swig-1.3.31/Source/Modules/ruby.cxx 2008-02-10 12:39:44.290610709 +0100
- @@ -2156,9 +2156,11 @@
- // Exception handler
- Printf(rescue->def, "VALUE %s(VALUE args, VALUE error) {\n", rescueName);
- Replaceall(tm, "$error", "error");
- - Printf(rescue->code, "if (%s == 1) ", depthCountName);
- - Printv(rescue->code, Str(tm), "\n", NIL);
- - Printf(rescue->code, "%s--;\n", depthCountName);
- + // Substract at the beginning, because Str(tm) will break out of the function
- + Printf(rescue->code, "%s--;\n", depthCountName);
- + // Compare with zero, because of the substraction
- + Printf(rescue->code, "if (%s == 0) ", depthCountName);
- + Printv(rescue->code, Str(tm), "\n", NIL);
- Printv(rescue->code, "rb_exc_raise(error);\n", NIL);
- Printv(rescue->code, "}", NIL);
- }
- --- swig-1.3.31/Source/Modules/main.cxx.old 2008-02-10 12:54:32.670611028 +0100
- +++ swig-1.3.31/Source/Modules/main.cxx 2008-02-10 12:56:19.085610514 +0100
- @@ -755,13 +755,11 @@
- int count = 0;
- while (token) {
- int len = strlen(token);
- - assert(len == 1 || len == 2);
- Printf(vers, "%s%s", (len == 1) ? "0" : "", token);
- token = strtok(NULL, ".");
- count++;
- }
- Delete(package_version);
- - assert(count == 3); // Check version format is correct
-
- /* Turn on contracts */
-