swig/swig-3.0.10-octave.patch
Andrey Bondrov c7cb27e326 New version 3.0.10
Add patch for Octave 4.2 support
2016-12-29 17:41:37 +10:00

62 lines
2.1 KiB
Diff

--- swig-3.0.10/Lib/octave/octopers.swg.orig 2016-12-03 02:02:12.071560260 +0100
+++ swig-3.0.10/Lib/octave/octopers.swg 2016-12-03 02:04:04.883696992 +0100
@@ -25,8 +25,6 @@
// __div__ a / b
// __pow__ a ^ b
// __ldiv__ a \ b
-// __lshift__ a << b
-// __rshift__ a >> b
// __lt__ a < b
// __le__ a <= b
// __eq__ a == b
@@ -51,8 +49,6 @@
%rename(__mul__) *::operator*;
%rename(__div__) *::operator/;
%rename(__mod__) *::operator%;
-%rename(__lshift__) *::operator<<;
-%rename(__rshift__) *::operator>>;
%rename(__el_and__) *::operator&&;
%rename(__el_or__) *::operator||;
%rename(__xor__) *::operator^;
@@ -75,8 +71,6 @@
%ignoreoperator(MULEQ) operator*=;
%ignoreoperator(DIVEQ) operator/=;
%ignoreoperator(MODEQ) operator%=;
-%ignoreoperator(LSHIFTEQ) operator<<=;
-%ignoreoperator(RSHIFTEQ) operator>>=;
%ignoreoperator(ANDEQ) operator&=;
%ignoreoperator(OREQ) operator|=;
%ignoreoperator(XOREQ) operator^=;
--- swig-3.0.10/Lib/octave/octrun.swg.orig 2016-12-03 02:02:17.491662734 +0100
+++ swig-3.0.10/Lib/octave/octrun.swg 2016-12-03 02:04:26.394105259 +0100
@@ -1340,8 +1340,6 @@
swig_binary_op(div);
swig_binary_op(pow);
swig_binary_op(ldiv);
- swig_binary_op(lshift);
- swig_binary_op(rshift);
swig_binary_op(lt);
swig_binary_op(le);
swig_binary_op(eq);
@@ -1371,8 +1369,6 @@
swigreg_binary_op(div);
swigreg_binary_op(pow);
swigreg_binary_op(ldiv);
- swigreg_binary_op(lshift);
- swigreg_binary_op(rshift);
swigreg_binary_op(lt);
swigreg_binary_op(le);
swigreg_binary_op(eq);
--- swig-3.0.10/Lib/octave/octruntime.swg.orig 2016-12-03 02:02:42.242130927 +0100
+++ swig-3.0.10/Lib/octave/octruntime.swg 2016-12-03 02:03:32.933091044 +0100
@@ -9,8 +9,9 @@
#include <octave/ov-scalar.h>
#include <octave/ov-fcn-handle.h>
#include <octave/parse.h>
-#include <octave/toplev.h>
+#include <octave/interpreter.h>
#include <octave/unwind-prot.h>
+#include <octave/call-stack.h>
%}
%insert(runtime) "swigrun.swg";