PageRenderTime 89ms CodeModel.GetById 32ms RepoModel.GetById 1ms app.codeStats 0ms

/swig-pantheon/swig-1.3.31-ruby-rastullah-1.patch

https://bitbucket.org/axil42/aur-mirror
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
  1. --- swig-1.3.31/configure.old 2008-02-10 12:47:23.890611021 +0100
  2. +++ swig-1.3.31/configure 2008-02-10 12:47:54.908610178 +0100
  3. @@ -269,8 +269,8 @@
  4. # Identity of this package.
  5. PACKAGE_NAME='swig'
  6. PACKAGE_TARNAME='swig'
  7. -PACKAGE_VERSION='1.3.31'
  8. -PACKAGE_STRING='swig 1.3.31'
  9. +PACKAGE_VERSION='1.3.31-rl'
  10. +PACKAGE_STRING='swig 1.3.31-rl'
  11. PACKAGE_BUGREPORT='http://www.swig.org'
  12. ac_unique_file="Source/Swig/swig.h"
  13. --- swig-1.3.31/Source/Modules/ruby.cxx.old 2008-02-10 12:39:23.766610819 +0100
  14. +++ swig-1.3.31/Source/Modules/ruby.cxx 2008-02-10 12:39:44.290610709 +0100
  15. @@ -2156,9 +2156,11 @@
  16. // Exception handler
  17. Printf(rescue->def, "VALUE %s(VALUE args, VALUE error) {\n", rescueName);
  18. Replaceall(tm, "$error", "error");
  19. - Printf(rescue->code, "if (%s == 1) ", depthCountName);
  20. - Printv(rescue->code, Str(tm), "\n", NIL);
  21. - Printf(rescue->code, "%s--;\n", depthCountName);
  22. + // Substract at the beginning, because Str(tm) will break out of the function
  23. + Printf(rescue->code, "%s--;\n", depthCountName);
  24. + // Compare with zero, because of the substraction
  25. + Printf(rescue->code, "if (%s == 0) ", depthCountName);
  26. + Printv(rescue->code, Str(tm), "\n", NIL);
  27. Printv(rescue->code, "rb_exc_raise(error);\n", NIL);
  28. Printv(rescue->code, "}", NIL);
  29. }
  30. --- swig-1.3.31/Source/Modules/main.cxx.old 2008-02-10 12:54:32.670611028 +0100
  31. +++ swig-1.3.31/Source/Modules/main.cxx 2008-02-10 12:56:19.085610514 +0100
  32. @@ -755,13 +755,11 @@
  33. int count = 0;
  34. while (token) {
  35. int len = strlen(token);
  36. - assert(len == 1 || len == 2);
  37. Printf(vers, "%s%s", (len == 1) ? "0" : "", token);
  38. token = strtok(NULL, ".");
  39. count++;
  40. }
  41. Delete(package_version);
  42. - assert(count == 3); // Check version format is correct
  43. /* Turn on contracts */