Skip to content

Commit 89e9284

Browse files
Update SWIG to v4.2.1
1 parent cd7e0e2 commit 89e9284

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

91 files changed

+880
-520
lines changed

src/swig-0_27_3/basicio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# This file was automatically generated by SWIG (https://www.swig.org).
2-
# Version 4.2.0
2+
# Version 4.2.1
33
#
44
# Do not make changes to this file unless you know what you are doing - modify
55
# the SWIG interface file instead.

src/swig-0_27_3/basicio_wrap.cxx

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
/* ----------------------------------------------------------------------------
22
* This file was automatically generated by SWIG (https://www.swig.org).
3-
* Version 4.2.0
3+
* Version 4.2.1
44
*
55
* Do not make changes to this file unless you know what you are doing - modify
66
* the SWIG interface file instead.
77
* ----------------------------------------------------------------------------- */
88

99

10-
#define SWIG_VERSION 0x040200
10+
#define SWIG_VERSION 0x040201
1111
#define SWIGPYTHON
1212
#define SWIG_PYTHON_THREADS
1313
#define SWIG_PYTHON_DIRECTOR_NO_VTABLE
@@ -138,12 +138,17 @@
138138
# pragma warning disable 592
139139
#endif
140140

141-
#if __cplusplus >=201103L
141+
#if defined(__cplusplus) && __cplusplus >=201103L
142142
# define SWIG_NULLPTR nullptr
143143
#else
144144
# define SWIG_NULLPTR NULL
145145
#endif
146146

147+
/* -----------------------------------------------------------------------------
148+
* swigcompat.swg
149+
*
150+
* Macros to provide support compatibility with older C and C++ standards.
151+
* ----------------------------------------------------------------------------- */
147152

148153
/* C99 and C++11 should provide snprintf, but define SWIG_NO_SNPRINTF
149154
* if you're missing it.
@@ -164,7 +169,6 @@
164169
#endif
165170

166171

167-
168172
#if defined(__GNUC__) && defined(_WIN32) && !defined(SWIG_PYTHON_NO_HYPOT_WORKAROUND)
169173
/* Workaround for '::hypot' has not been declared', see https://bugs.python.org/issue11566 */
170174
# include <math.h>
@@ -3686,8 +3690,10 @@ SwigPyBuiltin_ternaryfunc_closure(SwigPyWrapperFunction wrapper, PyObject *a, Py
36863690
assert(tuple);
36873691
Py_INCREF(b);
36883692
PyTuple_SET_ITEM(tuple, 0, b);
3689-
Py_INCREF(c);
3690-
PyTuple_SET_ITEM(tuple, 1, c);
3693+
if (c) {
3694+
Py_INCREF(c);
3695+
PyTuple_SET_ITEM(tuple, 1, c);
3696+
}
36913697
result = wrapper(a, tuple);
36923698
Py_DECREF(tuple);
36933699
return result;
@@ -3802,8 +3808,10 @@ SwigPyBuiltin_ssizeobjargproc_closure(SwigPyWrapperFunction wrapper, PyObject *a
38023808
tuple = PyTuple_New(2);
38033809
assert(tuple);
38043810
PyTuple_SET_ITEM(tuple, 0, _PyLong_FromSsize_t(b));
3805-
Py_INCREF(c);
3806-
PyTuple_SET_ITEM(tuple, 1, c);
3811+
if (c) {
3812+
Py_INCREF(c);
3813+
PyTuple_SET_ITEM(tuple, 1, c);
3814+
}
38073815
resultobj = wrapper(a, tuple);
38083816
result = resultobj ? 0 : -1;
38093817
Py_XDECREF(resultobj);
@@ -4244,7 +4252,7 @@ static void _set_python_exception() {
42444252

42454253

42464254

4247-
/*@SWIG:/usr/local/share/swig/4.2.0/typemaps/exception.swg,59,SWIG_CATCH_STDEXCEPT@*/ /* catching std::exception */
4255+
/*@SWIG:/usr/local/share/swig/4.2.1/typemaps/exception.swg,59,SWIG_CATCH_STDEXCEPT@*/ /* catching std::exception */
42484256
catch (std::invalid_argument& e) {
42494257
SWIG_exception_fail(SWIG_ValueError, e.what() );
42504258
} catch (std::domain_error& e) {

src/swig-0_27_3/datasets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# This file was automatically generated by SWIG (https://www.swig.org).
2-
# Version 4.2.0
2+
# Version 4.2.1
33
#
44
# Do not make changes to this file unless you know what you are doing - modify
55
# the SWIG interface file instead.

src/swig-0_27_3/datasets_wrap.cxx

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
/* ----------------------------------------------------------------------------
22
* This file was automatically generated by SWIG (https://www.swig.org).
3-
* Version 4.2.0
3+
* Version 4.2.1
44
*
55
* Do not make changes to this file unless you know what you are doing - modify
66
* the SWIG interface file instead.
77
* ----------------------------------------------------------------------------- */
88

99

10-
#define SWIG_VERSION 0x040200
10+
#define SWIG_VERSION 0x040201
1111
#define SWIGPYTHON
1212
#define SWIG_PYTHON_DIRECTOR_NO_VTABLE
1313
#define SWIGPYTHON_BUILTIN
@@ -137,12 +137,17 @@
137137
# pragma warning disable 592
138138
#endif
139139

140-
#if __cplusplus >=201103L
140+
#if defined(__cplusplus) && __cplusplus >=201103L
141141
# define SWIG_NULLPTR nullptr
142142
#else
143143
# define SWIG_NULLPTR NULL
144144
#endif
145145

146+
/* -----------------------------------------------------------------------------
147+
* swigcompat.swg
148+
*
149+
* Macros to provide support compatibility with older C and C++ standards.
150+
* ----------------------------------------------------------------------------- */
146151

147152
/* C99 and C++11 should provide snprintf, but define SWIG_NO_SNPRINTF
148153
* if you're missing it.
@@ -163,7 +168,6 @@
163168
#endif
164169

165170

166-
167171
#if defined(__GNUC__) && defined(_WIN32) && !defined(SWIG_PYTHON_NO_HYPOT_WORKAROUND)
168172
/* Workaround for '::hypot' has not been declared', see https://bugs.python.org/issue11566 */
169173
# include <math.h>
@@ -3685,8 +3689,10 @@ SwigPyBuiltin_ternaryfunc_closure(SwigPyWrapperFunction wrapper, PyObject *a, Py
36853689
assert(tuple);
36863690
Py_INCREF(b);
36873691
PyTuple_SET_ITEM(tuple, 0, b);
3688-
Py_INCREF(c);
3689-
PyTuple_SET_ITEM(tuple, 1, c);
3692+
if (c) {
3693+
Py_INCREF(c);
3694+
PyTuple_SET_ITEM(tuple, 1, c);
3695+
}
36903696
result = wrapper(a, tuple);
36913697
Py_DECREF(tuple);
36923698
return result;
@@ -3801,8 +3807,10 @@ SwigPyBuiltin_ssizeobjargproc_closure(SwigPyWrapperFunction wrapper, PyObject *a
38013807
tuple = PyTuple_New(2);
38023808
assert(tuple);
38033809
PyTuple_SET_ITEM(tuple, 0, _PyLong_FromSsize_t(b));
3804-
Py_INCREF(c);
3805-
PyTuple_SET_ITEM(tuple, 1, c);
3810+
if (c) {
3811+
Py_INCREF(c);
3812+
PyTuple_SET_ITEM(tuple, 1, c);
3813+
}
38063814
resultobj = wrapper(a, tuple);
38073815
result = resultobj ? 0 : -1;
38083816
Py_XDECREF(resultobj);
@@ -4267,7 +4275,7 @@ static void _set_python_exception() {
42674275

42684276

42694277

4270-
/*@SWIG:/usr/local/share/swig/4.2.0/typemaps/exception.swg,59,SWIG_CATCH_STDEXCEPT@*/ /* catching std::exception */
4278+
/*@SWIG:/usr/local/share/swig/4.2.1/typemaps/exception.swg,59,SWIG_CATCH_STDEXCEPT@*/ /* catching std::exception */
42714279
catch (std::invalid_argument& e) {
42724280
SWIG_exception_fail(SWIG_ValueError, e.what() );
42734281
} catch (std::domain_error& e) {

src/swig-0_27_3/easyaccess.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# This file was automatically generated by SWIG (https://www.swig.org).
2-
# Version 4.2.0
2+
# Version 4.2.1
33
#
44
# Do not make changes to this file unless you know what you are doing - modify
55
# the SWIG interface file instead.

src/swig-0_27_3/easyaccess_wrap.cxx

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
/* ----------------------------------------------------------------------------
22
* This file was automatically generated by SWIG (https://www.swig.org).
3-
* Version 4.2.0
3+
* Version 4.2.1
44
*
55
* Do not make changes to this file unless you know what you are doing - modify
66
* the SWIG interface file instead.
77
* ----------------------------------------------------------------------------- */
88

99

10-
#define SWIG_VERSION 0x040200
10+
#define SWIG_VERSION 0x040201
1111
#define SWIGPYTHON
1212
#define SWIG_PYTHON_DIRECTOR_NO_VTABLE
1313
#define SWIGPYTHON_BUILTIN
@@ -137,12 +137,17 @@
137137
# pragma warning disable 592
138138
#endif
139139

140-
#if __cplusplus >=201103L
140+
#if defined(__cplusplus) && __cplusplus >=201103L
141141
# define SWIG_NULLPTR nullptr
142142
#else
143143
# define SWIG_NULLPTR NULL
144144
#endif
145145

146+
/* -----------------------------------------------------------------------------
147+
* swigcompat.swg
148+
*
149+
* Macros to provide support compatibility with older C and C++ standards.
150+
* ----------------------------------------------------------------------------- */
146151

147152
/* C99 and C++11 should provide snprintf, but define SWIG_NO_SNPRINTF
148153
* if you're missing it.
@@ -163,7 +168,6 @@
163168
#endif
164169

165170

166-
167171
#if defined(__GNUC__) && defined(_WIN32) && !defined(SWIG_PYTHON_NO_HYPOT_WORKAROUND)
168172
/* Workaround for '::hypot' has not been declared', see https://bugs.python.org/issue11566 */
169173
# include <math.h>
@@ -3685,8 +3689,10 @@ SwigPyBuiltin_ternaryfunc_closure(SwigPyWrapperFunction wrapper, PyObject *a, Py
36853689
assert(tuple);
36863690
Py_INCREF(b);
36873691
PyTuple_SET_ITEM(tuple, 0, b);
3688-
Py_INCREF(c);
3689-
PyTuple_SET_ITEM(tuple, 1, c);
3692+
if (c) {
3693+
Py_INCREF(c);
3694+
PyTuple_SET_ITEM(tuple, 1, c);
3695+
}
36903696
result = wrapper(a, tuple);
36913697
Py_DECREF(tuple);
36923698
return result;
@@ -3801,8 +3807,10 @@ SwigPyBuiltin_ssizeobjargproc_closure(SwigPyWrapperFunction wrapper, PyObject *a
38013807
tuple = PyTuple_New(2);
38023808
assert(tuple);
38033809
PyTuple_SET_ITEM(tuple, 0, _PyLong_FromSsize_t(b));
3804-
Py_INCREF(c);
3805-
PyTuple_SET_ITEM(tuple, 1, c);
3810+
if (c) {
3811+
Py_INCREF(c);
3812+
PyTuple_SET_ITEM(tuple, 1, c);
3813+
}
38063814
resultobj = wrapper(a, tuple);
38073815
result = resultobj ? 0 : -1;
38083816
Py_XDECREF(resultobj);
@@ -4223,7 +4231,7 @@ static void _set_python_exception() {
42234231

42244232

42254233

4226-
/*@SWIG:/usr/local/share/swig/4.2.0/typemaps/exception.swg,59,SWIG_CATCH_STDEXCEPT@*/ /* catching std::exception */
4234+
/*@SWIG:/usr/local/share/swig/4.2.1/typemaps/exception.swg,59,SWIG_CATCH_STDEXCEPT@*/ /* catching std::exception */
42274235
catch (std::invalid_argument& e) {
42284236
SWIG_exception_fail(SWIG_ValueError, e.what() );
42294237
} catch (std::domain_error& e) {

src/swig-0_27_3/error.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# This file was automatically generated by SWIG (https://www.swig.org).
2-
# Version 4.2.0
2+
# Version 4.2.1
33
#
44
# Do not make changes to this file unless you know what you are doing - modify
55
# the SWIG interface file instead.

src/swig-0_27_3/error_wrap.cxx

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
/* ----------------------------------------------------------------------------
22
* This file was automatically generated by SWIG (https://www.swig.org).
3-
* Version 4.2.0
3+
* Version 4.2.1
44
*
55
* Do not make changes to this file unless you know what you are doing - modify
66
* the SWIG interface file instead.
77
* ----------------------------------------------------------------------------- */
88

99

10-
#define SWIG_VERSION 0x040200
10+
#define SWIG_VERSION 0x040201
1111
#define SWIGPYTHON
1212
#define SWIG_PYTHON_DIRECTOR_NO_VTABLE
1313
#define SWIGPYTHON_BUILTIN
@@ -137,12 +137,17 @@
137137
# pragma warning disable 592
138138
#endif
139139

140-
#if __cplusplus >=201103L
140+
#if defined(__cplusplus) && __cplusplus >=201103L
141141
# define SWIG_NULLPTR nullptr
142142
#else
143143
# define SWIG_NULLPTR NULL
144144
#endif
145145

146+
/* -----------------------------------------------------------------------------
147+
* swigcompat.swg
148+
*
149+
* Macros to provide support compatibility with older C and C++ standards.
150+
* ----------------------------------------------------------------------------- */
146151

147152
/* C99 and C++11 should provide snprintf, but define SWIG_NO_SNPRINTF
148153
* if you're missing it.
@@ -163,7 +168,6 @@
163168
#endif
164169

165170

166-
167171
#if defined(__GNUC__) && defined(_WIN32) && !defined(SWIG_PYTHON_NO_HYPOT_WORKAROUND)
168172
/* Workaround for '::hypot' has not been declared', see https://bugs.python.org/issue11566 */
169173
# include <math.h>
@@ -3685,8 +3689,10 @@ SwigPyBuiltin_ternaryfunc_closure(SwigPyWrapperFunction wrapper, PyObject *a, Py
36853689
assert(tuple);
36863690
Py_INCREF(b);
36873691
PyTuple_SET_ITEM(tuple, 0, b);
3688-
Py_INCREF(c);
3689-
PyTuple_SET_ITEM(tuple, 1, c);
3692+
if (c) {
3693+
Py_INCREF(c);
3694+
PyTuple_SET_ITEM(tuple, 1, c);
3695+
}
36903696
result = wrapper(a, tuple);
36913697
Py_DECREF(tuple);
36923698
return result;
@@ -3801,8 +3807,10 @@ SwigPyBuiltin_ssizeobjargproc_closure(SwigPyWrapperFunction wrapper, PyObject *a
38013807
tuple = PyTuple_New(2);
38023808
assert(tuple);
38033809
PyTuple_SET_ITEM(tuple, 0, _PyLong_FromSsize_t(b));
3804-
Py_INCREF(c);
3805-
PyTuple_SET_ITEM(tuple, 1, c);
3810+
if (c) {
3811+
Py_INCREF(c);
3812+
PyTuple_SET_ITEM(tuple, 1, c);
3813+
}
38063814
resultobj = wrapper(a, tuple);
38073815
result = resultobj ? 0 : -1;
38083816
Py_XDECREF(resultobj);

src/swig-0_27_3/exif.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# This file was automatically generated by SWIG (https://www.swig.org).
2-
# Version 4.2.0
2+
# Version 4.2.1
33
#
44
# Do not make changes to this file unless you know what you are doing - modify
55
# the SWIG interface file instead.

0 commit comments

Comments
 (0)