From 97316d60b0473fdf728df24247a392fbe36f922f Mon Sep 17 00:00:00 2001 From: Mykhailo Dubish Date: Tue, 24 Nov 2026 01:40:22 +0000 Subject: [PATCH 1/3] BUILD: Make every C and C++ warning an error in the native builds The Device Detection and IP Intelligence on-premise packages now build their native code with every warning on and treated as an error. - MSVC: /W4 /WX for the wrapper, the C++ and the C. The /wd list is gone. - GCC and Clang: -Wall -Wextra -Werror for the wrapper, the C++ and the C. The -Wno-* flags are gone. -Wunused-result comes after the flags Python was built with, which can turn it off. The SWIG interface files now ask SWIG not to turn off any warning in the wrapper, and use fast dispatch for overloads. Fast dispatch checks only the arguments that tell overloads apart, each in a scope of its own, so no local in the dispatch code hides another (C4456). On MSVC, SWIG's runtime helpers are static inline, so those a module does not call are not reported as removed (C4505). GCC and Clang already get SWIG's unused attribute. Both wrappers are regenerated from the interface files with SWIG 4.4.1, the version that made them. --- .../setup.py | 31 +- .../hash_python.i | 19 + .../hash_python_wrap.cxx | 1639 +++------- .../setup.py | 31 +- .../ipi_python.i | 19 + .../ipi_python_wrap.cxx | 2911 +++++------------ 6 files changed, 1254 insertions(+), 3396 deletions(-) diff --git a/device-detection/fiftyone_devicedetection_onpremise/setup.py b/device-detection/fiftyone_devicedetection_onpremise/setup.py index 7a9f0e2b..e7db308a 100644 --- a/device-detection/fiftyone_devicedetection_onpremise/setup.py +++ b/device-detection/fiftyone_devicedetection_onpremise/setup.py @@ -129,21 +129,24 @@ def stage_native_source(): # Extra compilation flags for C library cflags = [] +# Every warning is on and is an error, for the wrapper, the C++ and the C +# alike. -Wunused-result comes after the flags Python was built with, which +# can turn it off. if sys.platform != "win32": extra_compile_args.extend([ '-fPIC', '-std=gnu++17', '-Wall', - # '-Werror' + '-Wextra', + '-Wunused-result', + '-Werror' ]) cflags.extend([ '-std=gnu11', '-Wall', - # '-Werror', - '-Wno-strict-prototypes', - '-Wno-unused-variable', - '-Wno-missing-braces', - '-Wno-strict-aliasing' + '-Wextra', + '-Wunused-result', + '-Werror' ]) @@ -154,19 +157,14 @@ def stage_native_source(): '/D_UNICODE', '/DUNICODE', '/W4', - # '/WX', - '/wd4127', - '/wd4456', - '/wd4701', - '/wd4703', - '/wd4706' + '/WX' ]) cflags.extend([ '/D_CRT_SECURE_NO_WARNINGS', '/D_UNICODE', '/DUNICODE', '/W4', - # '/WX' + '/WX' ]) extra_link_args.extend([ '/WX' @@ -182,13 +180,6 @@ def stage_native_source(): extra_compile_args.extend([ '-DGCC_ENABLE_CPP_EXCEPTIONS=YES' ]) - if sys.version_info[0] == 3 and sys.version_info[1] == 8: - extra_compile_args.extend([ - '-Wno-deprecated-declarations' - ]) - cflags.extend([ - '-Wno-atomic-alignment' - ]) DeviceDetectionHashEngineModule = Extension('_DeviceDetectionHashEngineModule', sources=[ diff --git a/device-detection/fiftyone_devicedetection_onpremise/src/fiftyone_devicedetection_onpremise/hash_python.i b/device-detection/fiftyone_devicedetection_onpremise/src/fiftyone_devicedetection_onpremise/hash_python.i index 8360e0fa..ddb7017e 100644 --- a/device-detection/fiftyone_devicedetection_onpremise/src/fiftyone_devicedetection_onpremise/hash_python.i +++ b/device-detection/fiftyone_devicedetection_onpremise/src/fiftyone_devicedetection_onpremise/hash_python.i @@ -20,6 +20,25 @@ * such notice(s) shall fulfill the requirements of that article. * ********************************************************************* */ +/* Every compiler warning is on in the wrapper, so SWIG is asked not to turn + * off any of its own. SWIG's runtime defines helper functions that a module + * may not call. GCC and Clang are told so by SWIG's unused attribute, which + * MSVC has no equivalent for, so on MSVC they are inline, as unused inline + * functions are expected. The overloads are told apart by the arguments that + * differ only (fast dispatch), which also keeps each check in a scope of its + * own so no local hides another. */ +%begin %{ +#define SWIG_MSC_UNSUPPRESS_4505 +#define SWIG_NO_CRT_SECURE_NO_DEPRECATE +#define SWIG_NO_SCL_SECURE_NO_DEPRECATE +#if defined(_MSC_VER) +#define SWIGINTERN static inline +#define SWIGINTERNINLINE static inline +#define SWIGRUNTIMEINLINE static inline +#endif +%} +%feature("fastdispatch"); + %include %pybuffer_binary(unsigned char data[], long length); %rename(refreshDataFromFile) refreshData(const char *fileName); diff --git a/device-detection/fiftyone_devicedetection_onpremise/src/fiftyone_devicedetection_onpremise/hash_python_wrap.cxx b/device-detection/fiftyone_devicedetection_onpremise/src/fiftyone_devicedetection_onpremise/hash_python_wrap.cxx index 259bd9cf..9c38b773 100644 --- a/device-detection/fiftyone_devicedetection_onpremise/src/fiftyone_devicedetection_onpremise/hash_python_wrap.cxx +++ b/device-detection/fiftyone_devicedetection_onpremise/src/fiftyone_devicedetection_onpremise/hash_python_wrap.cxx @@ -6,6 +6,16 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ +#define SWIG_MSC_UNSUPPRESS_4505 +#define SWIG_NO_CRT_SECURE_NO_DEPRECATE +#define SWIG_NO_SCL_SECURE_NO_DEPRECATE +#if defined(_MSC_VER) +#define SWIGINTERN static inline +#define SWIGINTERNINLINE static inline +#define SWIGRUNTIMEINLINE static inline +#endif + + #define SWIG_VERSION 0x040401 #define SWIGPYTHON @@ -6477,28 +6487,14 @@ SWIGINTERN PyObject *_wrap_SwigPyIterator_incr(PyObject *self, PyObject *args) { if (!(argc = SWIG_Python_UnpackTuple(args, "SwigPyIterator_incr", 0, 2, argv))) SWIG_fail; --argc; if (argc == 1) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_SwigPyIterator_incr__SWIG_1(self, argc, argv); - } + PyObject *retobj = _wrap_SwigPyIterator_incr__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 2) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_size_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_SwigPyIterator_incr__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_SwigPyIterator_incr__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -6573,28 +6569,14 @@ SWIGINTERN PyObject *_wrap_SwigPyIterator_decr(PyObject *self, PyObject *args) { if (!(argc = SWIG_Python_UnpackTuple(args, "SwigPyIterator_decr", 0, 2, argv))) SWIG_fail; --argc; if (argc == 1) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_SwigPyIterator_decr__SWIG_1(self, argc, argv); - } + PyObject *retobj = _wrap_SwigPyIterator_decr__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 2) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_size_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_SwigPyIterator_decr__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_SwigPyIterator_decr__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -7077,31 +7059,19 @@ SWIGINTERN PyObject *_wrap_SwigPyIterator___sub__(PyObject *self, PyObject *args --argc; if (argc == 2) { int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0); - _v = SWIG_CheckState(res); - if (_v) { + { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_NO_NULL | 0); _v = SWIG_CheckState(res); - if (_v) { - return _wrap_SwigPyIterator___sub____SWIG_1(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_SwigPyIterator___sub____SWIG_1(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_SwigPyIterator___sub____SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_SwigPyIterator___sub____SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -7629,32 +7599,14 @@ SWIGINTERN PyObject *_wrap_MapStringStringSwig___setitem__(PyObject *self, PyObj if (!(argc = SWIG_Python_UnpackTuple(args, "MapStringStringSwig___setitem__", 0, 3, argv))) SWIG_fail; --argc; if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::map< std::string,std::string,std::less< std::string >,std::allocator< std::pair< std::string const,std::string > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_MapStringStringSwig___setitem____SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_MapStringStringSwig___setitem____SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::map< std::string,std::string,std::less< std::string >,std::allocator< std::pair< std::string const,std::string > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_MapStringStringSwig___setitem____SWIG_1(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_MapStringStringSwig___setitem____SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -7743,23 +7695,25 @@ SWIGINTERN PyObject *_wrap_new_MapStringStringSwig(PyObject *self, PyObject *arg if (!(argc = SWIG_Python_UnpackTuple(args, "new_MapStringStringSwig", 0, 1, argv))) SWIG_fail; --argc; if (argc == 0) { - return _wrap_new_MapStringStringSwig__SWIG_1(self, argc, argv); + PyObject *retobj = _wrap_new_MapStringStringSwig__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 1) { int _v = 0; - int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_std__lessT_std__string_t, SWIG_POINTER_NO_NULL | 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_MapStringStringSwig__SWIG_0(self, argc, argv); + { + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_std__lessT_std__string_t, SWIG_POINTER_NO_NULL | 0); + _v = SWIG_CheckState(res); } + if (!_v) goto check_2; + return _wrap_new_MapStringStringSwig__SWIG_0(self, argc, argv); } +check_2: + if (argc == 1) { - int _v = 0; - int res = swig::asptr(argv[0], (std::map< std::string,std::string,std::less< std::string >,std::allocator< std::pair< std::string const,std::string > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_MapStringStringSwig__SWIG_2(self, argc, argv); - } + PyObject *retobj = _wrap_new_MapStringStringSwig__SWIG_2(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -8169,46 +8123,25 @@ SWIGINTERN PyObject *_wrap_MapStringStringSwig_erase(PyObject *self, PyObject *a --argc; if (argc == 2) { int _v = 0; - int res = swig::asptr(argv[0], (std::map< std::string,std::string,std::less< std::string >,std::allocator< std::pair< std::string const,std::string > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { + { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - return _wrap_MapStringStringSwig_erase__SWIG_1(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_MapStringStringSwig_erase__SWIG_1(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::map< std::string,std::string,std::less< std::string >,std::allocator< std::pair< std::string const,std::string > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_MapStringStringSwig_erase__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_MapStringStringSwig_erase__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::map< std::string,std::string,std::less< std::string >,std::allocator< std::pair< std::string const,std::string > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - return _wrap_MapStringStringSwig_erase__SWIG_2(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_MapStringStringSwig_erase__SWIG_2(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -8657,48 +8590,14 @@ SWIGINTERN PyObject *_wrap_VectorStringSwig___setslice__(PyObject *self, PyObjec if (!(argc = SWIG_Python_UnpackTuple(args, "VectorStringSwig___setslice__", 0, 4, argv))) SWIG_fail; --argc; if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_VectorStringSwig___setslice____SWIG_0(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_VectorStringSwig___setslice____SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 4) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = swig::asptr(argv[3], (std::vector< std::string,std::allocator< std::string > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_VectorStringSwig___setslice____SWIG_1(self, argc, argv); - } - } - } - } + PyObject *retobj = _wrap_VectorStringSwig___setslice____SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -8951,30 +8850,20 @@ SWIGINTERN PyObject *_wrap_VectorStringSwig___delitem__(PyObject *self, PyObject --argc; if (argc == 2) { int _v = 0; - int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { + { { _v = PySlice_Check(argv[1]); } - if (_v) { - return _wrap_VectorStringSwig___delitem____SWIG_1(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_VectorStringSwig___delitem____SWIG_1(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_VectorStringSwig___delitem____SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_VectorStringSwig___delitem____SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -9033,30 +8922,20 @@ SWIGINTERN PyObject *_wrap_VectorStringSwig___getitem__(PyObject *self, PyObject --argc; if (argc == 2) { int _v = 0; - int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { + { { _v = PySlice_Check(argv[1]); } - if (_v) { - return _wrap_VectorStringSwig___getitem____SWIG_0(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_VectorStringSwig___getitem____SWIG_0(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_VectorStringSwig___getitem____SWIG_1(self, argc, argv); - } - } + PyObject *retobj = _wrap_VectorStringSwig___getitem____SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -9125,52 +9004,31 @@ SWIGINTERN PyObject *_wrap_VectorStringSwig___setitem__(PyObject *self, PyObject if (!(argc = SWIG_Python_UnpackTuple(args, "VectorStringSwig___setitem__", 0, 3, argv))) SWIG_fail; --argc; if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - _v = PySlice_Check(argv[1]); - } - if (_v) { - return _wrap_VectorStringSwig___setitem____SWIG_1(self, argc, argv); - } - } + PyObject *retobj = _wrap_VectorStringSwig___setitem____SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 3) { int _v = 0; - int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { + { { _v = PySlice_Check(argv[1]); } - if (_v) { - int res = swig::asptr(argv[2], (std::vector< std::string,std::allocator< std::string > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_VectorStringSwig___setitem____SWIG_0(self, argc, argv); - } - } } + if (!_v) goto check_2; + { + int res = swig::asptr(argv[2], (std::vector< std::string,std::allocator< std::string > >**)(0)); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + return _wrap_VectorStringSwig___setitem____SWIG_0(self, argc, argv); } +check_2: + if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_VectorStringSwig___setitem____SWIG_2(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_VectorStringSwig___setitem____SWIG_2(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -9690,35 +9548,14 @@ SWIGINTERN PyObject *_wrap_VectorStringSwig_erase(PyObject *self, PyObject *args if (!(argc = SWIG_Python_UnpackTuple(args, "VectorStringSwig_erase", 0, 3, argv))) SWIG_fail; --argc; if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - return _wrap_VectorStringSwig_erase__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_VectorStringSwig_erase__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - return _wrap_VectorStringSwig_erase__SWIG_1(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_VectorStringSwig_erase__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -9776,39 +9613,32 @@ SWIGINTERN PyObject *_wrap_new_VectorStringSwig(PyObject *self, PyObject *args) if (!(argc = SWIG_Python_UnpackTuple(args, "new_VectorStringSwig", 0, 2, argv))) SWIG_fail; --argc; if (argc == 0) { - return _wrap_new_VectorStringSwig__SWIG_0(self, argc, argv); + PyObject *retobj = _wrap_new_VectorStringSwig__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 1) { int _v = 0; { - int res = SWIG_AsVal_size_t(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_VectorStringSwig__SWIG_2(self, argc, argv); + { + int res = SWIG_AsVal_size_t(argv[0], NULL); + _v = SWIG_CheckState(res); + } } + if (!_v) goto check_2; + return _wrap_new_VectorStringSwig__SWIG_2(self, argc, argv); } +check_2: + if (argc == 1) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_VectorStringSwig__SWIG_1(self, argc, argv); - } + PyObject *retobj = _wrap_new_VectorStringSwig__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 2) { - int _v = 0; - { - int res = SWIG_AsVal_size_t(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_VectorStringSwig__SWIG_3(self, argc, argv); - } - } + PyObject *retobj = _wrap_new_VectorStringSwig__SWIG_3(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -10011,36 +9841,14 @@ SWIGINTERN PyObject *_wrap_VectorStringSwig_resize(PyObject *self, PyObject *arg if (!(argc = SWIG_Python_UnpackTuple(args, "VectorStringSwig_resize", 0, 3, argv))) SWIG_fail; --argc; if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_size_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_VectorStringSwig_resize__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_VectorStringSwig_resize__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_size_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_VectorStringSwig_resize__SWIG_1(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_VectorStringSwig_resize__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -10171,44 +9979,14 @@ SWIGINTERN PyObject *_wrap_VectorStringSwig_insert(PyObject *self, PyObject *arg if (!(argc = SWIG_Python_UnpackTuple(args, "VectorStringSwig_insert", 0, 4, argv))) SWIG_fail; --argc; if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_VectorStringSwig_insert__SWIG_0(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_VectorStringSwig_insert__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 4) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - { - int res = SWIG_AsVal_size_t(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_AsPtr_std_string(argv[3], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_VectorStringSwig_insert__SWIG_1(self, argc, argv); - } - } - } - } + PyObject *retobj = _wrap_VectorStringSwig_insert__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -10502,23 +10280,25 @@ SWIGINTERN PyObject *_wrap_new_RequiredPropertiesConfigSwig(PyObject *self, PyOb if (!(argc = SWIG_Python_UnpackTuple(args, "new_RequiredPropertiesConfigSwig", 0, 1, argv))) SWIG_fail; --argc; if (argc == 0) { - return _wrap_new_RequiredPropertiesConfigSwig__SWIG_0(self, argc, argv); + PyObject *retobj = _wrap_new_RequiredPropertiesConfigSwig__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 1) { int _v = 0; - int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_RequiredPropertiesConfigSwig__SWIG_2(self, argc, argv); + { + int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0); + _v = SWIG_CheckState(res); } + if (!_v) goto check_2; + return _wrap_new_RequiredPropertiesConfigSwig__SWIG_2(self, argc, argv); } +check_2: + if (argc == 1) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_RequiredPropertiesConfigSwig__SWIG_1(self, argc, argv); - } + PyObject *retobj = _wrap_new_RequiredPropertiesConfigSwig__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -12460,31 +12240,21 @@ SWIGINTERN PyObject *_wrap_ResultsBaseSwig_getValues(PyObject *self, PyObject *a --argc; if (argc == 2) { int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsBase, 0); - _v = SWIG_CheckState(res); - if (_v) { + { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } - if (_v) { - return _wrap_ResultsBaseSwig_getValues__SWIG_1(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_ResultsBaseSwig_getValues__SWIG_1(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsBase, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_ResultsBaseSwig_getValues__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_ResultsBaseSwig_getValues__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -12635,31 +12405,21 @@ SWIGINTERN PyObject *_wrap_ResultsBaseSwig_getValueAsString(PyObject *self, PyOb --argc; if (argc == 2) { int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsBase, 0); - _v = SWIG_CheckState(res); - if (_v) { + { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } - if (_v) { - return _wrap_ResultsBaseSwig_getValueAsString__SWIG_1(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_ResultsBaseSwig_getValueAsString__SWIG_1(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsBase, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_ResultsBaseSwig_getValueAsString__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_ResultsBaseSwig_getValueAsString__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -12810,31 +12570,21 @@ SWIGINTERN PyObject *_wrap_ResultsBaseSwig_getValueAsBool(PyObject *self, PyObje --argc; if (argc == 2) { int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsBase, 0); - _v = SWIG_CheckState(res); - if (_v) { + { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } - if (_v) { - return _wrap_ResultsBaseSwig_getValueAsBool__SWIG_1(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_ResultsBaseSwig_getValueAsBool__SWIG_1(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsBase, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_ResultsBaseSwig_getValueAsBool__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_ResultsBaseSwig_getValueAsBool__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -12985,31 +12735,21 @@ SWIGINTERN PyObject *_wrap_ResultsBaseSwig_getValueAsInteger(PyObject *self, PyO --argc; if (argc == 2) { int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsBase, 0); - _v = SWIG_CheckState(res); - if (_v) { + { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } - if (_v) { - return _wrap_ResultsBaseSwig_getValueAsInteger__SWIG_1(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_ResultsBaseSwig_getValueAsInteger__SWIG_1(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsBase, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_ResultsBaseSwig_getValueAsInteger__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_ResultsBaseSwig_getValueAsInteger__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -13160,31 +12900,21 @@ SWIGINTERN PyObject *_wrap_ResultsBaseSwig_getValueAsDouble(PyObject *self, PyOb --argc; if (argc == 2) { int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsBase, 0); - _v = SWIG_CheckState(res); - if (_v) { + { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } - if (_v) { - return _wrap_ResultsBaseSwig_getValueAsDouble__SWIG_1(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_ResultsBaseSwig_getValueAsDouble__SWIG_1(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsBase, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_ResultsBaseSwig_getValueAsDouble__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_ResultsBaseSwig_getValueAsDouble__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -13335,31 +13065,21 @@ SWIGINTERN PyObject *_wrap_ResultsBaseSwig_getValueAsStrictBool(PyObject *self, --argc; if (argc == 2) { int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsBase, 0); - _v = SWIG_CheckState(res); - if (_v) { + { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } - if (_v) { - return _wrap_ResultsBaseSwig_getValueAsStrictBool__SWIG_1(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_ResultsBaseSwig_getValueAsStrictBool__SWIG_1(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsBase, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_ResultsBaseSwig_getValueAsStrictBool__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_ResultsBaseSwig_getValueAsStrictBool__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -13510,31 +13230,21 @@ SWIGINTERN PyObject *_wrap_ResultsBaseSwig_getValueAsStrictInteger(PyObject *sel --argc; if (argc == 2) { int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsBase, 0); - _v = SWIG_CheckState(res); - if (_v) { + { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } - if (_v) { - return _wrap_ResultsBaseSwig_getValueAsStrictInteger__SWIG_1(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_ResultsBaseSwig_getValueAsStrictInteger__SWIG_1(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsBase, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_ResultsBaseSwig_getValueAsStrictInteger__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_ResultsBaseSwig_getValueAsStrictInteger__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -13685,31 +13395,21 @@ SWIGINTERN PyObject *_wrap_ResultsBaseSwig_getValueAsStrictDouble(PyObject *self --argc; if (argc == 2) { int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsBase, 0); - _v = SWIG_CheckState(res); - if (_v) { + { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } - if (_v) { - return _wrap_ResultsBaseSwig_getValueAsStrictDouble__SWIG_1(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_ResultsBaseSwig_getValueAsStrictDouble__SWIG_1(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsBase, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_ResultsBaseSwig_getValueAsStrictDouble__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_ResultsBaseSwig_getValueAsStrictDouble__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -15543,48 +15243,14 @@ SWIGINTERN PyObject *_wrap_UTF8StringSwig___setslice__(PyObject *self, PyObject if (!(argc = SWIG_Python_UnpackTuple(args, "UTF8StringSwig___setslice__", 0, 4, argv))) SWIG_fail; --argc; if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned char,std::allocator< unsigned char > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_UTF8StringSwig___setslice____SWIG_0(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_UTF8StringSwig___setslice____SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 4) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned char,std::allocator< unsigned char > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = swig::asptr(argv[3], (std::vector< unsigned char,std::allocator< unsigned char > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_UTF8StringSwig___setslice____SWIG_1(self, argc, argv); - } - } - } - } + PyObject *retobj = _wrap_UTF8StringSwig___setslice____SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -16023,30 +15689,20 @@ SWIGINTERN PyObject *_wrap_UTF8StringSwig___delitem__(PyObject *self, PyObject * --argc; if (argc == 2) { int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned char,std::allocator< unsigned char > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { + { { _v = PySlice_Check(argv[1]); } - if (_v) { - return _wrap_UTF8StringSwig___delitem____SWIG_1(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_UTF8StringSwig___delitem____SWIG_1(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned char,std::allocator< unsigned char > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_UTF8StringSwig___delitem____SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_UTF8StringSwig___delitem____SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -16136,30 +15792,20 @@ SWIGINTERN PyObject *_wrap_UTF8StringSwig___getitem__(PyObject *self, PyObject * --argc; if (argc == 2) { int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned char,std::allocator< unsigned char > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { + { { _v = PySlice_Check(argv[1]); } - if (_v) { - return _wrap_UTF8StringSwig___getitem____SWIG_0(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_UTF8StringSwig___getitem____SWIG_0(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned char,std::allocator< unsigned char > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_UTF8StringSwig___getitem____SWIG_1(self, argc, argv); - } - } + PyObject *retobj = _wrap_UTF8StringSwig___getitem____SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -16254,54 +15900,31 @@ SWIGINTERN PyObject *_wrap_UTF8StringSwig___setitem__(PyObject *self, PyObject * if (!(argc = SWIG_Python_UnpackTuple(args, "UTF8StringSwig___setitem__", 0, 3, argv))) SWIG_fail; --argc; if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned char,std::allocator< unsigned char > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - _v = PySlice_Check(argv[1]); - } - if (_v) { - return _wrap_UTF8StringSwig___setitem____SWIG_1(self, argc, argv); - } - } + PyObject *retobj = _wrap_UTF8StringSwig___setitem____SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 3) { int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned char,std::allocator< unsigned char > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { + { { _v = PySlice_Check(argv[1]); } - if (_v) { - int res = swig::asptr(argv[2], (std::vector< unsigned char,std::allocator< unsigned char > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_UTF8StringSwig___setitem____SWIG_0(self, argc, argv); - } - } } + if (!_v) goto check_2; + { + int res = swig::asptr(argv[2], (std::vector< unsigned char,std::allocator< unsigned char > >**)(0)); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + return _wrap_UTF8StringSwig___setitem____SWIG_0(self, argc, argv); } +check_2: + if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned char,std::allocator< unsigned char > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_char(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_UTF8StringSwig___setitem____SWIG_2(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_UTF8StringSwig___setitem____SWIG_2(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -17374,35 +16997,14 @@ SWIGINTERN PyObject *_wrap_UTF8StringSwig_erase(PyObject *self, PyObject *args) if (!(argc = SWIG_Python_UnpackTuple(args, "UTF8StringSwig_erase", 0, 3, argv))) SWIG_fail; --argc; if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned char,std::allocator< unsigned char > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - return _wrap_UTF8StringSwig_erase__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_UTF8StringSwig_erase__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned char,std::allocator< unsigned char > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - return _wrap_UTF8StringSwig_erase__SWIG_1(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_UTF8StringSwig_erase__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -17486,41 +17088,32 @@ SWIGINTERN PyObject *_wrap_new_UTF8StringSwig(PyObject *self, PyObject *args) { if (!(argc = SWIG_Python_UnpackTuple(args, "new_UTF8StringSwig", 0, 2, argv))) SWIG_fail; --argc; if (argc == 0) { - return _wrap_new_UTF8StringSwig__SWIG_0(self, argc, argv); + PyObject *retobj = _wrap_new_UTF8StringSwig__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 1) { int _v = 0; { - int res = SWIG_AsVal_size_t(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_UTF8StringSwig__SWIG_2(self, argc, argv); + { + int res = SWIG_AsVal_size_t(argv[0], NULL); + _v = SWIG_CheckState(res); + } } + if (!_v) goto check_2; + return _wrap_new_UTF8StringSwig__SWIG_2(self, argc, argv); } +check_2: + if (argc == 1) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned char,std::allocator< unsigned char > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_UTF8StringSwig__SWIG_1(self, argc, argv); - } + PyObject *retobj = _wrap_new_UTF8StringSwig__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 2) { - int _v = 0; - { - int res = SWIG_AsVal_size_t(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_char(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_UTF8StringSwig__SWIG_3(self, argc, argv); - } - } + PyObject *retobj = _wrap_new_UTF8StringSwig__SWIG_3(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -17863,38 +17456,14 @@ SWIGINTERN PyObject *_wrap_UTF8StringSwig_resize(PyObject *self, PyObject *args) if (!(argc = SWIG_Python_UnpackTuple(args, "UTF8StringSwig_resize", 0, 3, argv))) SWIG_fail; --argc; if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned char,std::allocator< unsigned char > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_size_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_UTF8StringSwig_resize__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_UTF8StringSwig_resize__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned char,std::allocator< unsigned char > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_size_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_char(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_UTF8StringSwig_resize__SWIG_1(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_UTF8StringSwig_resize__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -18074,51 +17643,17 @@ SWIGINTERN PyObject *_wrap_UTF8StringSwig_insert(PyObject *self, PyObject *args) 0 }; - if (!(argc = SWIG_Python_UnpackTuple(args, "UTF8StringSwig_insert", 0, 4, argv))) SWIG_fail; - --argc; - if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned char,std::allocator< unsigned char > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_char(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_UTF8StringSwig_insert__SWIG_0(self, argc, argv); - } - } - } - } - if (argc == 4) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned char,std::allocator< unsigned char > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - { - int res = SWIG_AsVal_size_t(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_char(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_UTF8StringSwig_insert__SWIG_1(self, argc, argv); - } - } - } - } + if (!(argc = SWIG_Python_UnpackTuple(args, "UTF8StringSwig_insert", 0, 4, argv))) SWIG_fail; + --argc; + if (argc == 3) { + PyObject *retobj = _wrap_UTF8StringSwig_insert__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; + } + if (argc == 4) { + PyObject *retobj = _wrap_UTF8StringSwig_insert__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -18476,37 +18011,22 @@ SWIGINTERN PyObject *_wrap_new_ValueMetaDataKeySwig(PyObject *self, PyObject *ar --argc; if (argc == 2) { int _v = 0; - int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { + { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_char, 0); _v = SWIG_CheckState(res); - if (_v) { - if (argc <= 2) { - return _wrap_new_ValueMetaDataKeySwig__SWIG_1(self, argc, argv); - } - { - int res = SWIG_AsVal_long(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_ValueMetaDataKeySwig__SWIG_1(self, argc, argv); - } - } } + if (!_v) goto check_1; + PyObject *retobj = _wrap_new_ValueMetaDataKeySwig__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } +check_1: + if (argc == 2) { - int _v = 0; - int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_ValueMetaDataKeySwig__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_new_ValueMetaDataKeySwig__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -23246,30 +22766,20 @@ SWIGINTERN PyObject *_wrap_EngineDeviceDetectionSwig_processDeviceDetection(PyOb --argc; if (argc == 2) { int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_EngineDeviceDetection, 0); - _v = SWIG_CheckState(res); - if (_v) { + { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_EvidenceDeviceDetection, 0); _v = SWIG_CheckState(res); - if (_v) { - return _wrap_EngineDeviceDetectionSwig_processDeviceDetection__SWIG_0(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_EngineDeviceDetectionSwig_processDeviceDetection__SWIG_0(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_EngineDeviceDetection, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_EngineDeviceDetectionSwig_processDeviceDetection__SWIG_1(self, argc, argv); - } - } + PyObject *retobj = _wrap_EngineDeviceDetectionSwig_processDeviceDetection__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -23752,28 +23262,14 @@ SWIGINTERN PyObject *_wrap_ResultsHashSwig_getDeviceId(PyObject *self, PyObject if (!(argc = SWIG_Python_UnpackTuple(args, "ResultsHashSwig_getDeviceId", 0, 2, argv))) SWIG_fail; --argc; if (argc == 1) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsHash, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_ResultsHashSwig_getDeviceId__SWIG_0(self, argc, argv); - } + PyObject *retobj = _wrap_ResultsHashSwig_getDeviceId__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 2) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsHash, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_ResultsHashSwig_getDeviceId__SWIG_1(self, argc, argv); - } - } + PyObject *retobj = _wrap_ResultsHashSwig_getDeviceId__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -23908,28 +23404,14 @@ SWIGINTERN PyObject *_wrap_ResultsHashSwig_getDifference(PyObject *self, PyObjec if (!(argc = SWIG_Python_UnpackTuple(args, "ResultsHashSwig_getDifference", 0, 2, argv))) SWIG_fail; --argc; if (argc == 1) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsHash, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_ResultsHashSwig_getDifference__SWIG_0(self, argc, argv); - } + PyObject *retobj = _wrap_ResultsHashSwig_getDifference__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 2) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsHash, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_ResultsHashSwig_getDifference__SWIG_1(self, argc, argv); - } - } + PyObject *retobj = _wrap_ResultsHashSwig_getDifference__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -24064,28 +23546,14 @@ SWIGINTERN PyObject *_wrap_ResultsHashSwig_getMethod(PyObject *self, PyObject *a if (!(argc = SWIG_Python_UnpackTuple(args, "ResultsHashSwig_getMethod", 0, 2, argv))) SWIG_fail; --argc; if (argc == 1) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsHash, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_ResultsHashSwig_getMethod__SWIG_0(self, argc, argv); - } + PyObject *retobj = _wrap_ResultsHashSwig_getMethod__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 2) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsHash, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_ResultsHashSwig_getMethod__SWIG_1(self, argc, argv); - } - } + PyObject *retobj = _wrap_ResultsHashSwig_getMethod__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -24220,28 +23688,14 @@ SWIGINTERN PyObject *_wrap_ResultsHashSwig_getDrift(PyObject *self, PyObject *ar if (!(argc = SWIG_Python_UnpackTuple(args, "ResultsHashSwig_getDrift", 0, 2, argv))) SWIG_fail; --argc; if (argc == 1) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsHash, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_ResultsHashSwig_getDrift__SWIG_0(self, argc, argv); - } + PyObject *retobj = _wrap_ResultsHashSwig_getDrift__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 2) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsHash, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_ResultsHashSwig_getDrift__SWIG_1(self, argc, argv); - } - } + PyObject *retobj = _wrap_ResultsHashSwig_getDrift__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -27111,48 +26565,14 @@ SWIGINTERN PyObject *_wrap_VectorUInt32Swig___setslice__(PyObject *self, PyObjec if (!(argc = SWIG_Python_UnpackTuple(args, "VectorUInt32Swig___setslice__", 0, 4, argv))) SWIG_fail; --argc; if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned int,std::allocator< unsigned int > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_VectorUInt32Swig___setslice____SWIG_0(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_VectorUInt32Swig___setslice____SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 4) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned int,std::allocator< unsigned int > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = swig::asptr(argv[3], (std::vector< unsigned int,std::allocator< unsigned int > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_VectorUInt32Swig___setslice____SWIG_1(self, argc, argv); - } - } - } - } + PyObject *retobj = _wrap_VectorUInt32Swig___setslice____SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -27591,30 +27011,20 @@ SWIGINTERN PyObject *_wrap_VectorUInt32Swig___delitem__(PyObject *self, PyObject --argc; if (argc == 2) { int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned int,std::allocator< unsigned int > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { + { { _v = PySlice_Check(argv[1]); } - if (_v) { - return _wrap_VectorUInt32Swig___delitem____SWIG_1(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_VectorUInt32Swig___delitem____SWIG_1(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned int,std::allocator< unsigned int > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_VectorUInt32Swig___delitem____SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_VectorUInt32Swig___delitem____SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -27704,30 +27114,20 @@ SWIGINTERN PyObject *_wrap_VectorUInt32Swig___getitem__(PyObject *self, PyObject --argc; if (argc == 2) { int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned int,std::allocator< unsigned int > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { + { { _v = PySlice_Check(argv[1]); } - if (_v) { - return _wrap_VectorUInt32Swig___getitem____SWIG_0(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_VectorUInt32Swig___getitem____SWIG_0(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned int,std::allocator< unsigned int > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_VectorUInt32Swig___getitem____SWIG_1(self, argc, argv); - } - } + PyObject *retobj = _wrap_VectorUInt32Swig___getitem____SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -27822,54 +27222,31 @@ SWIGINTERN PyObject *_wrap_VectorUInt32Swig___setitem__(PyObject *self, PyObject if (!(argc = SWIG_Python_UnpackTuple(args, "VectorUInt32Swig___setitem__", 0, 3, argv))) SWIG_fail; --argc; if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned int,std::allocator< unsigned int > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - _v = PySlice_Check(argv[1]); - } - if (_v) { - return _wrap_VectorUInt32Swig___setitem____SWIG_1(self, argc, argv); - } - } + PyObject *retobj = _wrap_VectorUInt32Swig___setitem____SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 3) { int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned int,std::allocator< unsigned int > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { + { { _v = PySlice_Check(argv[1]); } - if (_v) { - int res = swig::asptr(argv[2], (std::vector< unsigned int,std::allocator< unsigned int > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_VectorUInt32Swig___setitem____SWIG_0(self, argc, argv); - } - } } + if (!_v) goto check_2; + { + int res = swig::asptr(argv[2], (std::vector< unsigned int,std::allocator< unsigned int > >**)(0)); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + return _wrap_VectorUInt32Swig___setitem____SWIG_0(self, argc, argv); } +check_2: + if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned int,std::allocator< unsigned int > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_VectorUInt32Swig___setitem____SWIG_2(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_VectorUInt32Swig___setitem____SWIG_2(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -28942,35 +28319,14 @@ SWIGINTERN PyObject *_wrap_VectorUInt32Swig_erase(PyObject *self, PyObject *args if (!(argc = SWIG_Python_UnpackTuple(args, "VectorUInt32Swig_erase", 0, 3, argv))) SWIG_fail; --argc; if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned int,std::allocator< unsigned int > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - return _wrap_VectorUInt32Swig_erase__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_VectorUInt32Swig_erase__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned int,std::allocator< unsigned int > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - return _wrap_VectorUInt32Swig_erase__SWIG_1(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_VectorUInt32Swig_erase__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -29054,41 +28410,32 @@ SWIGINTERN PyObject *_wrap_new_VectorUInt32Swig(PyObject *self, PyObject *args) if (!(argc = SWIG_Python_UnpackTuple(args, "new_VectorUInt32Swig", 0, 2, argv))) SWIG_fail; --argc; if (argc == 0) { - return _wrap_new_VectorUInt32Swig__SWIG_0(self, argc, argv); + PyObject *retobj = _wrap_new_VectorUInt32Swig__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 1) { int _v = 0; { - int res = SWIG_AsVal_size_t(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_VectorUInt32Swig__SWIG_2(self, argc, argv); + { + int res = SWIG_AsVal_size_t(argv[0], NULL); + _v = SWIG_CheckState(res); + } } + if (!_v) goto check_2; + return _wrap_new_VectorUInt32Swig__SWIG_2(self, argc, argv); } +check_2: + if (argc == 1) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned int,std::allocator< unsigned int > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_VectorUInt32Swig__SWIG_1(self, argc, argv); - } + PyObject *retobj = _wrap_new_VectorUInt32Swig__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 2) { - int _v = 0; - { - int res = SWIG_AsVal_size_t(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_VectorUInt32Swig__SWIG_3(self, argc, argv); - } - } + PyObject *retobj = _wrap_new_VectorUInt32Swig__SWIG_3(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -29431,38 +28778,14 @@ SWIGINTERN PyObject *_wrap_VectorUInt32Swig_resize(PyObject *self, PyObject *arg if (!(argc = SWIG_Python_UnpackTuple(args, "VectorUInt32Swig_resize", 0, 3, argv))) SWIG_fail; --argc; if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned int,std::allocator< unsigned int > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_size_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_VectorUInt32Swig_resize__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_VectorUInt32Swig_resize__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned int,std::allocator< unsigned int > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_size_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_VectorUInt32Swig_resize__SWIG_1(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_VectorUInt32Swig_resize__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -29645,48 +28968,14 @@ SWIGINTERN PyObject *_wrap_VectorUInt32Swig_insert(PyObject *self, PyObject *arg if (!(argc = SWIG_Python_UnpackTuple(args, "VectorUInt32Swig_insert", 0, 4, argv))) SWIG_fail; --argc; if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned int,std::allocator< unsigned int > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_VectorUInt32Swig_insert__SWIG_0(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_VectorUInt32Swig_insert__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 4) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned int,std::allocator< unsigned int > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - { - int res = SWIG_AsVal_size_t(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_VectorUInt32Swig_insert__SWIG_1(self, argc, argv); - } - } - } - } + PyObject *retobj = _wrap_VectorUInt32Swig_insert__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -30061,40 +29350,22 @@ SWIGINTERN PyObject *_wrap_new_EngineHashSwig(PyObject *self, PyObject *args) { --argc; if (argc == 3) { int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_unsigned_char, 0); - _v = SWIG_CheckState(res); - if (_v) { + { void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ConfigHash, 0); + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_unsigned_char, 0); _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_RequiredPropertiesConfig, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_EngineHashSwig__SWIG_1(self, argc, argv); - } - } } + if (!_v) goto check_1; + PyObject *retobj = _wrap_new_EngineHashSwig__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } +check_1: + if (argc == 3) { - int _v = 0; - int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ConfigHash, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_RequiredPropertiesConfig, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_EngineHashSwig__SWIG_0(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_new_EngineHashSwig__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -30676,30 +29947,20 @@ SWIGINTERN PyObject *_wrap_EngineHashSwig_process(PyObject *self, PyObject *args --argc; if (argc == 2) { int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_EngineHash, 0); - _v = SWIG_CheckState(res); - if (_v) { + { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_EvidenceDeviceDetection, 0); _v = SWIG_CheckState(res); - if (_v) { - return _wrap_EngineHashSwig_process__SWIG_0(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_EngineHashSwig_process__SWIG_0(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_EngineHash, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_EngineHashSwig_process__SWIG_1(self, argc, argv); - } - } + PyObject *retobj = _wrap_EngineHashSwig_process__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -30992,30 +30253,20 @@ SWIGINTERN PyObject *_wrap_EngineHashSwig_processDeviceDetection(PyObject *self, --argc; if (argc == 2) { int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_EngineHash, 0); - _v = SWIG_CheckState(res); - if (_v) { + { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_EvidenceDeviceDetection, 0); _v = SWIG_CheckState(res); - if (_v) { - return _wrap_EngineHashSwig_processDeviceDetection__SWIG_0(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_EngineHashSwig_processDeviceDetection__SWIG_0(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_EngineHash, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_EngineHashSwig_processDeviceDetection__SWIG_1(self, argc, argv); - } - } + PyObject *retobj = _wrap_EngineHashSwig_processDeviceDetection__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -31199,17 +30450,14 @@ SWIGINTERN PyObject *_wrap_new_ResultsHashSerializer(PyObject *self, PyObject *a if (!(argc = SWIG_Python_UnpackTuple(args, "new_ResultsHashSerializer", 0, 1, argv))) SWIG_fail; --argc; if (argc == 0) { - return _wrap_new_ResultsHashSerializer__SWIG_0(self, argc, argv); + PyObject *retobj = _wrap_new_ResultsHashSerializer__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 1) { - int _v = 0; - { - int res = SWIG_AsVal_size_t(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_ResultsHashSerializer__SWIG_1(self, argc, argv); - } + PyObject *retobj = _wrap_new_ResultsHashSerializer__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -31455,17 +30703,14 @@ SWIGINTERN PyObject *_wrap_new_Transform(PyObject *self, PyObject *args) { if (!(argc = SWIG_Python_UnpackTuple(args, "new_Transform", 0, 1, argv))) SWIG_fail; --argc; if (argc == 0) { - return _wrap_new_Transform__SWIG_0(self, argc, argv); + PyObject *retobj = _wrap_new_Transform__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 1) { - int _v = 0; - { - int res = SWIG_AsVal_size_t(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_Transform__SWIG_1(self, argc, argv); - } + PyObject *retobj = _wrap_new_Transform__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: diff --git a/ip-intelligence/fiftyone_ipintelligence_onpremise/setup.py b/ip-intelligence/fiftyone_ipintelligence_onpremise/setup.py index 85089057..6bbaf80f 100644 --- a/ip-intelligence/fiftyone_ipintelligence_onpremise/setup.py +++ b/ip-intelligence/fiftyone_ipintelligence_onpremise/setup.py @@ -147,23 +147,26 @@ def stage_native_source(): '-DFIFTYONE_DEGREES_LARGE_DATA_FILE_SUPPORT=1', '-DFIFTYONE_DEGREES_REDUCED_FILE=1'] +# Every warning is on and is an error, for the wrapper, the C++ and the C +# alike. -Wunused-result comes after the flags Python was built with, which +# can turn it off. if sys.platform != "win32": extra_compile_args.extend([ '-fPIC', '-std=gnu++17', '-Wall', + '-Wextra', + '-Wunused-result', '-D_FILE_OFFSET_BITS=64', - # '-Werror' + '-Werror' ]) cflags.extend([ '-std=gnu11', '-Wall', + '-Wextra', + '-Wunused-result', '-D_FILE_OFFSET_BITS=64', - # '-Werror', - '-Wno-strict-prototypes', - '-Wno-unused-variable', - '-Wno-missing-braces', - '-Wno-strict-aliasing' + '-Werror' ]) @@ -174,19 +177,14 @@ def stage_native_source(): '/D_UNICODE', '/DUNICODE', '/W4', - # '/WX', - '/wd4127', - '/wd4456', - '/wd4701', - '/wd4703', - '/wd4706' + '/WX' ]) cflags.extend([ '/D_CRT_SECURE_NO_WARNINGS', '/D_UNICODE', '/DUNICODE', '/W4', - # '/WX' + '/WX' ]) extra_link_args.extend([ '/WX' @@ -202,13 +200,6 @@ def stage_native_source(): extra_compile_args.extend([ '-DGCC_ENABLE_CPP_EXCEPTIONS=YES' ]) - if sys.version_info[0] == 3 and sys.version_info[1] == 8: - extra_compile_args.extend([ - '-Wno-deprecated-declarations' - ]) - cflags.extend([ - '-Wno-atomic-alignment' - ]) IpIntelligenceEngineModule = Extension('_IpIntelligenceEngineModule', sources=[ diff --git a/ip-intelligence/fiftyone_ipintelligence_onpremise/src/fiftyone_ipintelligence_onpremise/ipi_python.i b/ip-intelligence/fiftyone_ipintelligence_onpremise/src/fiftyone_ipintelligence_onpremise/ipi_python.i index 76a5d7b6..18cf2260 100644 --- a/ip-intelligence/fiftyone_ipintelligence_onpremise/src/fiftyone_ipintelligence_onpremise/ipi_python.i +++ b/ip-intelligence/fiftyone_ipintelligence_onpremise/src/fiftyone_ipintelligence_onpremise/ipi_python.i @@ -20,6 +20,25 @@ * such notice(s) shall fulfill the requirements of that article. * ********************************************************************* */ +/* Every compiler warning is on in the wrapper, so SWIG is asked not to turn + * off any of its own. SWIG's runtime defines helper functions that a module + * may not call. GCC and Clang are told so by SWIG's unused attribute, which + * MSVC has no equivalent for, so on MSVC they are inline, as unused inline + * functions are expected. The overloads are told apart by the arguments that + * differ only (fast dispatch), which also keeps each check in a scope of its + * own so no local hides another. */ +%begin %{ +#define SWIG_MSC_UNSUPPRESS_4505 +#define SWIG_NO_CRT_SECURE_NO_DEPRECATE +#define SWIG_NO_SCL_SECURE_NO_DEPRECATE +#if defined(_MSC_VER) +#define SWIGINTERN static inline +#define SWIGINTERNINLINE static inline +#define SWIGRUNTIMEINLINE static inline +#endif +%} +%feature("fastdispatch"); + %include %pybuffer_binary(unsigned char data[], long length); %pybuffer_mutable_binary(unsigned char copy[], uint32_t size); diff --git a/ip-intelligence/fiftyone_ipintelligence_onpremise/src/fiftyone_ipintelligence_onpremise/ipi_python_wrap.cxx b/ip-intelligence/fiftyone_ipintelligence_onpremise/src/fiftyone_ipintelligence_onpremise/ipi_python_wrap.cxx index 440dec16..41ef0d43 100644 --- a/ip-intelligence/fiftyone_ipintelligence_onpremise/src/fiftyone_ipintelligence_onpremise/ipi_python_wrap.cxx +++ b/ip-intelligence/fiftyone_ipintelligence_onpremise/src/fiftyone_ipintelligence_onpremise/ipi_python_wrap.cxx @@ -6,6 +6,16 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ +#define SWIG_MSC_UNSUPPRESS_4505 +#define SWIG_NO_CRT_SECURE_NO_DEPRECATE +#define SWIG_NO_SCL_SECURE_NO_DEPRECATE +#if defined(_MSC_VER) +#define SWIGINTERN static inline +#define SWIGINTERNINLINE static inline +#define SWIGRUNTIMEINLINE static inline +#endif + + #define SWIG_VERSION 0x040401 #define SWIGPYTHON @@ -6977,28 +6987,14 @@ SWIGINTERN PyObject *_wrap_SwigPyIterator_incr(PyObject *self, PyObject *args) { if (!(argc = SWIG_Python_UnpackTuple(args, "SwigPyIterator_incr", 0, 2, argv))) SWIG_fail; --argc; if (argc == 1) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_SwigPyIterator_incr__SWIG_1(self, argc, argv); - } + PyObject *retobj = _wrap_SwigPyIterator_incr__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 2) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_size_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_SwigPyIterator_incr__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_SwigPyIterator_incr__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -7073,28 +7069,14 @@ SWIGINTERN PyObject *_wrap_SwigPyIterator_decr(PyObject *self, PyObject *args) { if (!(argc = SWIG_Python_UnpackTuple(args, "SwigPyIterator_decr", 0, 2, argv))) SWIG_fail; --argc; if (argc == 1) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_SwigPyIterator_decr__SWIG_1(self, argc, argv); - } + PyObject *retobj = _wrap_SwigPyIterator_decr__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 2) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_size_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_SwigPyIterator_decr__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_SwigPyIterator_decr__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -7577,31 +7559,19 @@ SWIGINTERN PyObject *_wrap_SwigPyIterator___sub__(PyObject *self, PyObject *args --argc; if (argc == 2) { int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0); - _v = SWIG_CheckState(res); - if (_v) { + { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_NO_NULL | 0); _v = SWIG_CheckState(res); - if (_v) { - return _wrap_SwigPyIterator___sub____SWIG_1(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_SwigPyIterator___sub____SWIG_1(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_SwigPyIterator___sub____SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_SwigPyIterator___sub____SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -8129,32 +8099,14 @@ SWIGINTERN PyObject *_wrap_MapStringStringSwig___setitem__(PyObject *self, PyObj if (!(argc = SWIG_Python_UnpackTuple(args, "MapStringStringSwig___setitem__", 0, 3, argv))) SWIG_fail; --argc; if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::map< std::string,std::string,std::less< std::string >,std::allocator< std::pair< std::string const,std::string > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_MapStringStringSwig___setitem____SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_MapStringStringSwig___setitem____SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::map< std::string,std::string,std::less< std::string >,std::allocator< std::pair< std::string const,std::string > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_MapStringStringSwig___setitem____SWIG_1(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_MapStringStringSwig___setitem____SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -8243,23 +8195,25 @@ SWIGINTERN PyObject *_wrap_new_MapStringStringSwig(PyObject *self, PyObject *arg if (!(argc = SWIG_Python_UnpackTuple(args, "new_MapStringStringSwig", 0, 1, argv))) SWIG_fail; --argc; if (argc == 0) { - return _wrap_new_MapStringStringSwig__SWIG_1(self, argc, argv); + PyObject *retobj = _wrap_new_MapStringStringSwig__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 1) { int _v = 0; - int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_std__lessT_std__string_t, SWIG_POINTER_NO_NULL | 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_MapStringStringSwig__SWIG_0(self, argc, argv); + { + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_std__lessT_std__string_t, SWIG_POINTER_NO_NULL | 0); + _v = SWIG_CheckState(res); } + if (!_v) goto check_2; + return _wrap_new_MapStringStringSwig__SWIG_0(self, argc, argv); } +check_2: + if (argc == 1) { - int _v = 0; - int res = swig::asptr(argv[0], (std::map< std::string,std::string,std::less< std::string >,std::allocator< std::pair< std::string const,std::string > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_MapStringStringSwig__SWIG_2(self, argc, argv); - } + PyObject *retobj = _wrap_new_MapStringStringSwig__SWIG_2(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -8669,46 +8623,25 @@ SWIGINTERN PyObject *_wrap_MapStringStringSwig_erase(PyObject *self, PyObject *a --argc; if (argc == 2) { int _v = 0; - int res = swig::asptr(argv[0], (std::map< std::string,std::string,std::less< std::string >,std::allocator< std::pair< std::string const,std::string > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { + { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - return _wrap_MapStringStringSwig_erase__SWIG_1(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_MapStringStringSwig_erase__SWIG_1(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::map< std::string,std::string,std::less< std::string >,std::allocator< std::pair< std::string const,std::string > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_MapStringStringSwig_erase__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_MapStringStringSwig_erase__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::map< std::string,std::string,std::less< std::string >,std::allocator< std::pair< std::string const,std::string > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - return _wrap_MapStringStringSwig_erase__SWIG_2(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_MapStringStringSwig_erase__SWIG_2(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -9157,48 +9090,14 @@ SWIGINTERN PyObject *_wrap_VectorStringSwig___setslice__(PyObject *self, PyObjec if (!(argc = SWIG_Python_UnpackTuple(args, "VectorStringSwig___setslice__", 0, 4, argv))) SWIG_fail; --argc; if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_VectorStringSwig___setslice____SWIG_0(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_VectorStringSwig___setslice____SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 4) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = swig::asptr(argv[3], (std::vector< std::string,std::allocator< std::string > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_VectorStringSwig___setslice____SWIG_1(self, argc, argv); - } - } - } - } + PyObject *retobj = _wrap_VectorStringSwig___setslice____SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -9451,30 +9350,20 @@ SWIGINTERN PyObject *_wrap_VectorStringSwig___delitem__(PyObject *self, PyObject --argc; if (argc == 2) { int _v = 0; - int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { + { { _v = PySlice_Check(argv[1]); } - if (_v) { - return _wrap_VectorStringSwig___delitem____SWIG_1(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_VectorStringSwig___delitem____SWIG_1(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_VectorStringSwig___delitem____SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_VectorStringSwig___delitem____SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -9533,30 +9422,20 @@ SWIGINTERN PyObject *_wrap_VectorStringSwig___getitem__(PyObject *self, PyObject --argc; if (argc == 2) { int _v = 0; - int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { + { { _v = PySlice_Check(argv[1]); } - if (_v) { - return _wrap_VectorStringSwig___getitem____SWIG_0(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_VectorStringSwig___getitem____SWIG_0(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_VectorStringSwig___getitem____SWIG_1(self, argc, argv); - } - } + PyObject *retobj = _wrap_VectorStringSwig___getitem____SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -9625,52 +9504,31 @@ SWIGINTERN PyObject *_wrap_VectorStringSwig___setitem__(PyObject *self, PyObject if (!(argc = SWIG_Python_UnpackTuple(args, "VectorStringSwig___setitem__", 0, 3, argv))) SWIG_fail; --argc; if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - _v = PySlice_Check(argv[1]); - } - if (_v) { - return _wrap_VectorStringSwig___setitem____SWIG_1(self, argc, argv); - } - } + PyObject *retobj = _wrap_VectorStringSwig___setitem____SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 3) { int _v = 0; - int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { + { { _v = PySlice_Check(argv[1]); } - if (_v) { - int res = swig::asptr(argv[2], (std::vector< std::string,std::allocator< std::string > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_VectorStringSwig___setitem____SWIG_0(self, argc, argv); - } - } } + if (!_v) goto check_2; + { + int res = swig::asptr(argv[2], (std::vector< std::string,std::allocator< std::string > >**)(0)); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + return _wrap_VectorStringSwig___setitem____SWIG_0(self, argc, argv); } +check_2: + if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_VectorStringSwig___setitem____SWIG_2(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_VectorStringSwig___setitem____SWIG_2(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -10190,35 +10048,14 @@ SWIGINTERN PyObject *_wrap_VectorStringSwig_erase(PyObject *self, PyObject *args if (!(argc = SWIG_Python_UnpackTuple(args, "VectorStringSwig_erase", 0, 3, argv))) SWIG_fail; --argc; if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - return _wrap_VectorStringSwig_erase__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_VectorStringSwig_erase__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - return _wrap_VectorStringSwig_erase__SWIG_1(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_VectorStringSwig_erase__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -10276,39 +10113,32 @@ SWIGINTERN PyObject *_wrap_new_VectorStringSwig(PyObject *self, PyObject *args) if (!(argc = SWIG_Python_UnpackTuple(args, "new_VectorStringSwig", 0, 2, argv))) SWIG_fail; --argc; if (argc == 0) { - return _wrap_new_VectorStringSwig__SWIG_0(self, argc, argv); + PyObject *retobj = _wrap_new_VectorStringSwig__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 1) { int _v = 0; { - int res = SWIG_AsVal_size_t(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_VectorStringSwig__SWIG_2(self, argc, argv); + { + int res = SWIG_AsVal_size_t(argv[0], NULL); + _v = SWIG_CheckState(res); + } } + if (!_v) goto check_2; + return _wrap_new_VectorStringSwig__SWIG_2(self, argc, argv); } +check_2: + if (argc == 1) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_VectorStringSwig__SWIG_1(self, argc, argv); - } + PyObject *retobj = _wrap_new_VectorStringSwig__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 2) { - int _v = 0; - { - int res = SWIG_AsVal_size_t(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_VectorStringSwig__SWIG_3(self, argc, argv); - } - } + PyObject *retobj = _wrap_new_VectorStringSwig__SWIG_3(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -10511,36 +10341,14 @@ SWIGINTERN PyObject *_wrap_VectorStringSwig_resize(PyObject *self, PyObject *arg if (!(argc = SWIG_Python_UnpackTuple(args, "VectorStringSwig_resize", 0, 3, argv))) SWIG_fail; --argc; if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_size_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_VectorStringSwig_resize__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_VectorStringSwig_resize__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_size_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_VectorStringSwig_resize__SWIG_1(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_VectorStringSwig_resize__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -10671,44 +10479,14 @@ SWIGINTERN PyObject *_wrap_VectorStringSwig_insert(PyObject *self, PyObject *arg if (!(argc = SWIG_Python_UnpackTuple(args, "VectorStringSwig_insert", 0, 4, argv))) SWIG_fail; --argc; if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_VectorStringSwig_insert__SWIG_0(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_VectorStringSwig_insert__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 4) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - { - int res = SWIG_AsVal_size_t(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_AsPtr_std_string(argv[3], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_VectorStringSwig_insert__SWIG_1(self, argc, argv); - } - } - } - } + PyObject *retobj = _wrap_VectorStringSwig_insert__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -11002,23 +10780,25 @@ SWIGINTERN PyObject *_wrap_new_RequiredPropertiesConfigSwig(PyObject *self, PyOb if (!(argc = SWIG_Python_UnpackTuple(args, "new_RequiredPropertiesConfigSwig", 0, 1, argv))) SWIG_fail; --argc; if (argc == 0) { - return _wrap_new_RequiredPropertiesConfigSwig__SWIG_0(self, argc, argv); + PyObject *retobj = _wrap_new_RequiredPropertiesConfigSwig__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 1) { int _v = 0; - int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_RequiredPropertiesConfigSwig__SWIG_2(self, argc, argv); + { + int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0); + _v = SWIG_CheckState(res); } + if (!_v) goto check_2; + return _wrap_new_RequiredPropertiesConfigSwig__SWIG_2(self, argc, argv); } +check_2: + if (argc == 1) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_RequiredPropertiesConfigSwig__SWIG_1(self, argc, argv); - } + PyObject *retobj = _wrap_new_RequiredPropertiesConfigSwig__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -12960,31 +12740,21 @@ SWIGINTERN PyObject *_wrap_ResultsBaseSwig_getValues(PyObject *self, PyObject *a --argc; if (argc == 2) { int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsBase, 0); - _v = SWIG_CheckState(res); - if (_v) { + { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } - if (_v) { - return _wrap_ResultsBaseSwig_getValues__SWIG_1(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_ResultsBaseSwig_getValues__SWIG_1(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsBase, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_ResultsBaseSwig_getValues__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_ResultsBaseSwig_getValues__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -13135,31 +12905,21 @@ SWIGINTERN PyObject *_wrap_ResultsBaseSwig_getValueAsString(PyObject *self, PyOb --argc; if (argc == 2) { int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsBase, 0); - _v = SWIG_CheckState(res); - if (_v) { + { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } - if (_v) { - return _wrap_ResultsBaseSwig_getValueAsString__SWIG_1(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_ResultsBaseSwig_getValueAsString__SWIG_1(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsBase, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_ResultsBaseSwig_getValueAsString__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_ResultsBaseSwig_getValueAsString__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -13310,31 +13070,21 @@ SWIGINTERN PyObject *_wrap_ResultsBaseSwig_getValueAsBool(PyObject *self, PyObje --argc; if (argc == 2) { int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsBase, 0); - _v = SWIG_CheckState(res); - if (_v) { + { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } - if (_v) { - return _wrap_ResultsBaseSwig_getValueAsBool__SWIG_1(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_ResultsBaseSwig_getValueAsBool__SWIG_1(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsBase, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_ResultsBaseSwig_getValueAsBool__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_ResultsBaseSwig_getValueAsBool__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -13485,31 +13235,21 @@ SWIGINTERN PyObject *_wrap_ResultsBaseSwig_getValueAsInteger(PyObject *self, PyO --argc; if (argc == 2) { int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsBase, 0); - _v = SWIG_CheckState(res); - if (_v) { + { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } - if (_v) { - return _wrap_ResultsBaseSwig_getValueAsInteger__SWIG_1(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_ResultsBaseSwig_getValueAsInteger__SWIG_1(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsBase, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_ResultsBaseSwig_getValueAsInteger__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_ResultsBaseSwig_getValueAsInteger__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -13660,31 +13400,21 @@ SWIGINTERN PyObject *_wrap_ResultsBaseSwig_getValueAsDouble(PyObject *self, PyOb --argc; if (argc == 2) { int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsBase, 0); - _v = SWIG_CheckState(res); - if (_v) { + { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } - if (_v) { - return _wrap_ResultsBaseSwig_getValueAsDouble__SWIG_1(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_ResultsBaseSwig_getValueAsDouble__SWIG_1(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsBase, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_ResultsBaseSwig_getValueAsDouble__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_ResultsBaseSwig_getValueAsDouble__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -13835,31 +13565,21 @@ SWIGINTERN PyObject *_wrap_ResultsBaseSwig_getValueAsStrictBool(PyObject *self, --argc; if (argc == 2) { int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsBase, 0); - _v = SWIG_CheckState(res); - if (_v) { + { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } - if (_v) { - return _wrap_ResultsBaseSwig_getValueAsStrictBool__SWIG_1(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_ResultsBaseSwig_getValueAsStrictBool__SWIG_1(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsBase, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_ResultsBaseSwig_getValueAsStrictBool__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_ResultsBaseSwig_getValueAsStrictBool__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -14010,31 +13730,21 @@ SWIGINTERN PyObject *_wrap_ResultsBaseSwig_getValueAsStrictInteger(PyObject *sel --argc; if (argc == 2) { int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsBase, 0); - _v = SWIG_CheckState(res); - if (_v) { + { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } - if (_v) { - return _wrap_ResultsBaseSwig_getValueAsStrictInteger__SWIG_1(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_ResultsBaseSwig_getValueAsStrictInteger__SWIG_1(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsBase, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_ResultsBaseSwig_getValueAsStrictInteger__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_ResultsBaseSwig_getValueAsStrictInteger__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -14185,31 +13895,21 @@ SWIGINTERN PyObject *_wrap_ResultsBaseSwig_getValueAsStrictDouble(PyObject *self --argc; if (argc == 2) { int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsBase, 0); - _v = SWIG_CheckState(res); - if (_v) { + { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } - if (_v) { - return _wrap_ResultsBaseSwig_getValueAsStrictDouble__SWIG_1(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_ResultsBaseSwig_getValueAsStrictDouble__SWIG_1(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsBase, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_ResultsBaseSwig_getValueAsStrictDouble__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_ResultsBaseSwig_getValueAsStrictDouble__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -16043,48 +15743,14 @@ SWIGINTERN PyObject *_wrap_UTF8StringSwig___setslice__(PyObject *self, PyObject if (!(argc = SWIG_Python_UnpackTuple(args, "UTF8StringSwig___setslice__", 0, 4, argv))) SWIG_fail; --argc; if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned char,std::allocator< unsigned char > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_UTF8StringSwig___setslice____SWIG_0(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_UTF8StringSwig___setslice____SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 4) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned char,std::allocator< unsigned char > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = swig::asptr(argv[3], (std::vector< unsigned char,std::allocator< unsigned char > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_UTF8StringSwig___setslice____SWIG_1(self, argc, argv); - } - } - } - } + PyObject *retobj = _wrap_UTF8StringSwig___setslice____SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -16523,30 +16189,20 @@ SWIGINTERN PyObject *_wrap_UTF8StringSwig___delitem__(PyObject *self, PyObject * --argc; if (argc == 2) { int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned char,std::allocator< unsigned char > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { + { { _v = PySlice_Check(argv[1]); } - if (_v) { - return _wrap_UTF8StringSwig___delitem____SWIG_1(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_UTF8StringSwig___delitem____SWIG_1(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned char,std::allocator< unsigned char > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_UTF8StringSwig___delitem____SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_UTF8StringSwig___delitem____SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -16636,30 +16292,20 @@ SWIGINTERN PyObject *_wrap_UTF8StringSwig___getitem__(PyObject *self, PyObject * --argc; if (argc == 2) { int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned char,std::allocator< unsigned char > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { + { { _v = PySlice_Check(argv[1]); } - if (_v) { - return _wrap_UTF8StringSwig___getitem____SWIG_0(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_UTF8StringSwig___getitem____SWIG_0(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned char,std::allocator< unsigned char > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_UTF8StringSwig___getitem____SWIG_1(self, argc, argv); - } - } + PyObject *retobj = _wrap_UTF8StringSwig___getitem____SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -16754,54 +16400,31 @@ SWIGINTERN PyObject *_wrap_UTF8StringSwig___setitem__(PyObject *self, PyObject * if (!(argc = SWIG_Python_UnpackTuple(args, "UTF8StringSwig___setitem__", 0, 3, argv))) SWIG_fail; --argc; if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned char,std::allocator< unsigned char > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - _v = PySlice_Check(argv[1]); - } - if (_v) { - return _wrap_UTF8StringSwig___setitem____SWIG_1(self, argc, argv); - } - } + PyObject *retobj = _wrap_UTF8StringSwig___setitem____SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 3) { int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned char,std::allocator< unsigned char > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { + { { _v = PySlice_Check(argv[1]); } - if (_v) { - int res = swig::asptr(argv[2], (std::vector< unsigned char,std::allocator< unsigned char > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_UTF8StringSwig___setitem____SWIG_0(self, argc, argv); - } - } } + if (!_v) goto check_2; + { + int res = swig::asptr(argv[2], (std::vector< unsigned char,std::allocator< unsigned char > >**)(0)); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + return _wrap_UTF8StringSwig___setitem____SWIG_0(self, argc, argv); } +check_2: + if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned char,std::allocator< unsigned char > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_char(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_UTF8StringSwig___setitem____SWIG_2(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_UTF8StringSwig___setitem____SWIG_2(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -17874,35 +17497,14 @@ SWIGINTERN PyObject *_wrap_UTF8StringSwig_erase(PyObject *self, PyObject *args) if (!(argc = SWIG_Python_UnpackTuple(args, "UTF8StringSwig_erase", 0, 3, argv))) SWIG_fail; --argc; if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned char,std::allocator< unsigned char > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - return _wrap_UTF8StringSwig_erase__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_UTF8StringSwig_erase__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned char,std::allocator< unsigned char > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - return _wrap_UTF8StringSwig_erase__SWIG_1(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_UTF8StringSwig_erase__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -17986,41 +17588,32 @@ SWIGINTERN PyObject *_wrap_new_UTF8StringSwig(PyObject *self, PyObject *args) { if (!(argc = SWIG_Python_UnpackTuple(args, "new_UTF8StringSwig", 0, 2, argv))) SWIG_fail; --argc; if (argc == 0) { - return _wrap_new_UTF8StringSwig__SWIG_0(self, argc, argv); + PyObject *retobj = _wrap_new_UTF8StringSwig__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 1) { int _v = 0; { - int res = SWIG_AsVal_size_t(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_UTF8StringSwig__SWIG_2(self, argc, argv); + { + int res = SWIG_AsVal_size_t(argv[0], NULL); + _v = SWIG_CheckState(res); + } } + if (!_v) goto check_2; + return _wrap_new_UTF8StringSwig__SWIG_2(self, argc, argv); } +check_2: + if (argc == 1) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned char,std::allocator< unsigned char > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_UTF8StringSwig__SWIG_1(self, argc, argv); - } + PyObject *retobj = _wrap_new_UTF8StringSwig__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 2) { - int _v = 0; - { - int res = SWIG_AsVal_size_t(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_char(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_UTF8StringSwig__SWIG_3(self, argc, argv); - } - } + PyObject *retobj = _wrap_new_UTF8StringSwig__SWIG_3(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -18363,38 +17956,14 @@ SWIGINTERN PyObject *_wrap_UTF8StringSwig_resize(PyObject *self, PyObject *args) if (!(argc = SWIG_Python_UnpackTuple(args, "UTF8StringSwig_resize", 0, 3, argv))) SWIG_fail; --argc; if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned char,std::allocator< unsigned char > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_size_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_UTF8StringSwig_resize__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_UTF8StringSwig_resize__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned char,std::allocator< unsigned char > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_size_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_char(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_UTF8StringSwig_resize__SWIG_1(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_UTF8StringSwig_resize__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -18577,48 +18146,14 @@ SWIGINTERN PyObject *_wrap_UTF8StringSwig_insert(PyObject *self, PyObject *args) if (!(argc = SWIG_Python_UnpackTuple(args, "UTF8StringSwig_insert", 0, 4, argv))) SWIG_fail; --argc; if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned char,std::allocator< unsigned char > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_char(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_UTF8StringSwig_insert__SWIG_0(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_UTF8StringSwig_insert__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 4) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned char,std::allocator< unsigned char > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - { - int res = SWIG_AsVal_size_t(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_char(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_UTF8StringSwig_insert__SWIG_1(self, argc, argv); - } - } - } - } + PyObject *retobj = _wrap_UTF8StringSwig_insert__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -19046,37 +18581,22 @@ SWIGINTERN PyObject *_wrap_new_ValueMetaDataKeySwig(PyObject *self, PyObject *ar --argc; if (argc == 2) { int _v = 0; - int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { + { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_char, 0); _v = SWIG_CheckState(res); - if (_v) { - if (argc <= 2) { - return _wrap_new_ValueMetaDataKeySwig__SWIG_1(self, argc, argv); - } - { - int res = SWIG_AsVal_long(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_ValueMetaDataKeySwig__SWIG_1(self, argc, argv); - } - } } + if (!_v) goto check_1; + PyObject *retobj = _wrap_new_ValueMetaDataKeySwig__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } +check_1: + if (argc == 2) { - int _v = 0; - int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_ValueMetaDataKeySwig__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_new_ValueMetaDataKeySwig__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -24303,27 +23823,14 @@ SWIGINTERN PyObject *_wrap_new_IpAddressSwig(PyObject *self, PyObject *args) { if (!(argc = SWIG_Python_UnpackTuple(args, "new_IpAddressSwig", 0, 2, argv))) SWIG_fail; --argc; if (argc == 1) { - int _v = 0; - int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_IpAddressSwig__SWIG_1(self, argc, argv); - } + PyObject *retobj = _wrap_new_IpAddressSwig__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 2) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_unsigned_char, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_IpAddressSwig__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_new_IpAddressSwig__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -25014,48 +24521,14 @@ SWIGINTERN PyObject *_wrap_WeightedStringListSwig___setslice__(PyObject *self, P if (!(argc = SWIG_Python_UnpackTuple(args, "WeightedStringListSwig___setslice__", 0, 4, argv))) SWIG_fail; --argc; if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< std::string >,std::allocator< WeightedValue< std::string > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_WeightedStringListSwig___setslice____SWIG_0(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_WeightedStringListSwig___setslice____SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 4) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< std::string >,std::allocator< WeightedValue< std::string > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = swig::asptr(argv[3], (std::vector< WeightedValue< std::string >,std::allocator< WeightedValue< std::string > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_WeightedStringListSwig___setslice____SWIG_1(self, argc, argv); - } - } - } - } + PyObject *retobj = _wrap_WeightedStringListSwig___setslice____SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -25494,30 +24967,20 @@ SWIGINTERN PyObject *_wrap_WeightedStringListSwig___delitem__(PyObject *self, Py --argc; if (argc == 2) { int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< std::string >,std::allocator< WeightedValue< std::string > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { + { { _v = PySlice_Check(argv[1]); } - if (_v) { - return _wrap_WeightedStringListSwig___delitem____SWIG_1(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_WeightedStringListSwig___delitem____SWIG_1(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< std::string >,std::allocator< WeightedValue< std::string > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_WeightedStringListSwig___delitem____SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_WeightedStringListSwig___delitem____SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -25607,30 +25070,20 @@ SWIGINTERN PyObject *_wrap_WeightedStringListSwig___getitem__(PyObject *self, Py --argc; if (argc == 2) { int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< std::string >,std::allocator< WeightedValue< std::string > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { + { { _v = PySlice_Check(argv[1]); } - if (_v) { - return _wrap_WeightedStringListSwig___getitem____SWIG_0(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_WeightedStringListSwig___getitem____SWIG_0(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< std::string >,std::allocator< WeightedValue< std::string > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_WeightedStringListSwig___getitem____SWIG_1(self, argc, argv); - } - } + PyObject *retobj = _wrap_WeightedStringListSwig___getitem____SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -25726,52 +25179,31 @@ SWIGINTERN PyObject *_wrap_WeightedStringListSwig___setitem__(PyObject *self, Py if (!(argc = SWIG_Python_UnpackTuple(args, "WeightedStringListSwig___setitem__", 0, 3, argv))) SWIG_fail; --argc; if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< std::string >,std::allocator< WeightedValue< std::string > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - _v = PySlice_Check(argv[1]); - } - if (_v) { - return _wrap_WeightedStringListSwig___setitem____SWIG_1(self, argc, argv); - } - } + PyObject *retobj = _wrap_WeightedStringListSwig___setitem____SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 3) { int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< std::string >,std::allocator< WeightedValue< std::string > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { + { { _v = PySlice_Check(argv[1]); } - if (_v) { - int res = swig::asptr(argv[2], (std::vector< WeightedValue< std::string >,std::allocator< WeightedValue< std::string > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_WeightedStringListSwig___setitem____SWIG_0(self, argc, argv); - } - } } + if (!_v) goto check_2; + { + int res = swig::asptr(argv[2], (std::vector< WeightedValue< std::string >,std::allocator< WeightedValue< std::string > > >**)(0)); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + return _wrap_WeightedStringListSwig___setitem____SWIG_0(self, argc, argv); } +check_2: + if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< std::string >,std::allocator< WeightedValue< std::string > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_WeightedValueT_std__string_t, SWIG_POINTER_NO_NULL | 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_WeightedStringListSwig___setitem____SWIG_2(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_WeightedStringListSwig___setitem____SWIG_2(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -26845,35 +26277,14 @@ SWIGINTERN PyObject *_wrap_WeightedStringListSwig_erase(PyObject *self, PyObject if (!(argc = SWIG_Python_UnpackTuple(args, "WeightedStringListSwig_erase", 0, 3, argv))) SWIG_fail; --argc; if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< std::string >,std::allocator< WeightedValue< std::string > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast >::iterator > *>(iter) != 0)); - if (_v) { - return _wrap_WeightedStringListSwig_erase__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_WeightedStringListSwig_erase__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< std::string >,std::allocator< WeightedValue< std::string > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast >::iterator > *>(iter) != 0)); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast >::iterator > *>(iter) != 0)); - if (_v) { - return _wrap_WeightedStringListSwig_erase__SWIG_1(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_WeightedStringListSwig_erase__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -26958,39 +26369,32 @@ SWIGINTERN PyObject *_wrap_new_WeightedStringListSwig(PyObject *self, PyObject * if (!(argc = SWIG_Python_UnpackTuple(args, "new_WeightedStringListSwig", 0, 2, argv))) SWIG_fail; --argc; if (argc == 0) { - return _wrap_new_WeightedStringListSwig__SWIG_0(self, argc, argv); + PyObject *retobj = _wrap_new_WeightedStringListSwig__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 1) { int _v = 0; { - int res = SWIG_AsVal_size_t(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_WeightedStringListSwig__SWIG_2(self, argc, argv); + { + int res = SWIG_AsVal_size_t(argv[0], NULL); + _v = SWIG_CheckState(res); + } } + if (!_v) goto check_2; + return _wrap_new_WeightedStringListSwig__SWIG_2(self, argc, argv); } +check_2: + if (argc == 1) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< std::string >,std::allocator< WeightedValue< std::string > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_WeightedStringListSwig__SWIG_1(self, argc, argv); - } + PyObject *retobj = _wrap_new_WeightedStringListSwig__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 2) { - int _v = 0; - { - int res = SWIG_AsVal_size_t(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_WeightedValueT_std__string_t, SWIG_POINTER_NO_NULL | 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_WeightedStringListSwig__SWIG_3(self, argc, argv); - } - } + PyObject *retobj = _wrap_new_WeightedStringListSwig__SWIG_3(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -27336,36 +26740,14 @@ SWIGINTERN PyObject *_wrap_WeightedStringListSwig_resize(PyObject *self, PyObjec if (!(argc = SWIG_Python_UnpackTuple(args, "WeightedStringListSwig_resize", 0, 3, argv))) SWIG_fail; --argc; if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< std::string >,std::allocator< WeightedValue< std::string > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_size_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_WeightedStringListSwig_resize__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_WeightedStringListSwig_resize__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< std::string >,std::allocator< WeightedValue< std::string > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_size_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_WeightedValueT_std__string_t, SWIG_POINTER_NO_NULL | 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_WeightedStringListSwig_resize__SWIG_1(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_WeightedStringListSwig_resize__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -27550,44 +26932,14 @@ SWIGINTERN PyObject *_wrap_WeightedStringListSwig_insert(PyObject *self, PyObjec if (!(argc = SWIG_Python_UnpackTuple(args, "WeightedStringListSwig_insert", 0, 4, argv))) SWIG_fail; --argc; if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< std::string >,std::allocator< WeightedValue< std::string > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast >::iterator > *>(iter) != 0)); - if (_v) { - int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_WeightedValueT_std__string_t, SWIG_POINTER_NO_NULL | 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_WeightedStringListSwig_insert__SWIG_0(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_WeightedStringListSwig_insert__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 4) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< std::string >,std::allocator< WeightedValue< std::string > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast >::iterator > *>(iter) != 0)); - if (_v) { - { - int res = SWIG_AsVal_size_t(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_WeightedValueT_std__string_t, SWIG_POINTER_NO_NULL | 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_WeightedStringListSwig_insert__SWIG_1(self, argc, argv); - } - } - } - } + PyObject *retobj = _wrap_WeightedStringListSwig_insert__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -28251,48 +27603,14 @@ SWIGINTERN PyObject *_wrap_WeightedUTF8StringListSwig___setslice__(PyObject *sel if (!(argc = SWIG_Python_UnpackTuple(args, "WeightedUTF8StringListSwig___setslice__", 0, 4, argv))) SWIG_fail; --argc; if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< std::vector< uint8_t,std::allocator< uint8_t > > >,std::allocator< WeightedValue< std::vector< uint8_t > > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_WeightedUTF8StringListSwig___setslice____SWIG_0(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_WeightedUTF8StringListSwig___setslice____SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 4) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< std::vector< uint8_t,std::allocator< uint8_t > > >,std::allocator< WeightedValue< std::vector< uint8_t > > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = swig::asptr(argv[3], (std::vector< WeightedValue< std::vector< uint8_t,std::allocator< uint8_t > > >,std::allocator< WeightedValue< std::vector< uint8_t > > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_WeightedUTF8StringListSwig___setslice____SWIG_1(self, argc, argv); - } - } - } - } + PyObject *retobj = _wrap_WeightedUTF8StringListSwig___setslice____SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -28731,30 +28049,20 @@ SWIGINTERN PyObject *_wrap_WeightedUTF8StringListSwig___delitem__(PyObject *self --argc; if (argc == 2) { int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< std::vector< uint8_t,std::allocator< uint8_t > > >,std::allocator< WeightedValue< std::vector< uint8_t > > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { + { { _v = PySlice_Check(argv[1]); } - if (_v) { - return _wrap_WeightedUTF8StringListSwig___delitem____SWIG_1(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_WeightedUTF8StringListSwig___delitem____SWIG_1(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< std::vector< uint8_t,std::allocator< uint8_t > > >,std::allocator< WeightedValue< std::vector< uint8_t > > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_WeightedUTF8StringListSwig___delitem____SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_WeightedUTF8StringListSwig___delitem____SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -28844,30 +28152,20 @@ SWIGINTERN PyObject *_wrap_WeightedUTF8StringListSwig___getitem__(PyObject *self --argc; if (argc == 2) { int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< std::vector< uint8_t,std::allocator< uint8_t > > >,std::allocator< WeightedValue< std::vector< uint8_t > > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { + { { _v = PySlice_Check(argv[1]); } - if (_v) { - return _wrap_WeightedUTF8StringListSwig___getitem____SWIG_0(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_WeightedUTF8StringListSwig___getitem____SWIG_0(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< std::vector< uint8_t,std::allocator< uint8_t > > >,std::allocator< WeightedValue< std::vector< uint8_t > > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_WeightedUTF8StringListSwig___getitem____SWIG_1(self, argc, argv); - } - } + PyObject *retobj = _wrap_WeightedUTF8StringListSwig___getitem____SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -28963,52 +28261,31 @@ SWIGINTERN PyObject *_wrap_WeightedUTF8StringListSwig___setitem__(PyObject *self if (!(argc = SWIG_Python_UnpackTuple(args, "WeightedUTF8StringListSwig___setitem__", 0, 3, argv))) SWIG_fail; --argc; if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< std::vector< uint8_t,std::allocator< uint8_t > > >,std::allocator< WeightedValue< std::vector< uint8_t > > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - _v = PySlice_Check(argv[1]); - } - if (_v) { - return _wrap_WeightedUTF8StringListSwig___setitem____SWIG_1(self, argc, argv); - } - } + PyObject *retobj = _wrap_WeightedUTF8StringListSwig___setitem____SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 3) { int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< std::vector< uint8_t,std::allocator< uint8_t > > >,std::allocator< WeightedValue< std::vector< uint8_t > > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { + { { _v = PySlice_Check(argv[1]); } - if (_v) { - int res = swig::asptr(argv[2], (std::vector< WeightedValue< std::vector< uint8_t,std::allocator< uint8_t > > >,std::allocator< WeightedValue< std::vector< uint8_t > > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_WeightedUTF8StringListSwig___setitem____SWIG_0(self, argc, argv); - } - } } + if (!_v) goto check_2; + { + int res = swig::asptr(argv[2], (std::vector< WeightedValue< std::vector< uint8_t,std::allocator< uint8_t > > >,std::allocator< WeightedValue< std::vector< uint8_t > > > >**)(0)); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + return _wrap_WeightedUTF8StringListSwig___setitem____SWIG_0(self, argc, argv); } +check_2: + if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< std::vector< uint8_t,std::allocator< uint8_t > > >,std::allocator< WeightedValue< std::vector< uint8_t > > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_WeightedValueT_std__vectorT_uint8_t_t_t, SWIG_POINTER_NO_NULL | 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_WeightedUTF8StringListSwig___setitem____SWIG_2(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_WeightedUTF8StringListSwig___setitem____SWIG_2(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -30082,35 +29359,14 @@ SWIGINTERN PyObject *_wrap_WeightedUTF8StringListSwig_erase(PyObject *self, PyOb if (!(argc = SWIG_Python_UnpackTuple(args, "WeightedUTF8StringListSwig_erase", 0, 3, argv))) SWIG_fail; --argc; if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< std::vector< uint8_t,std::allocator< uint8_t > > >,std::allocator< WeightedValue< std::vector< uint8_t > > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast > >::iterator > *>(iter) != 0)); - if (_v) { - return _wrap_WeightedUTF8StringListSwig_erase__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_WeightedUTF8StringListSwig_erase__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< std::vector< uint8_t,std::allocator< uint8_t > > >,std::allocator< WeightedValue< std::vector< uint8_t > > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast > >::iterator > *>(iter) != 0)); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast > >::iterator > *>(iter) != 0)); - if (_v) { - return _wrap_WeightedUTF8StringListSwig_erase__SWIG_1(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_WeightedUTF8StringListSwig_erase__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -30195,39 +29451,32 @@ SWIGINTERN PyObject *_wrap_new_WeightedUTF8StringListSwig(PyObject *self, PyObje if (!(argc = SWIG_Python_UnpackTuple(args, "new_WeightedUTF8StringListSwig", 0, 2, argv))) SWIG_fail; --argc; if (argc == 0) { - return _wrap_new_WeightedUTF8StringListSwig__SWIG_0(self, argc, argv); + PyObject *retobj = _wrap_new_WeightedUTF8StringListSwig__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 1) { int _v = 0; { - int res = SWIG_AsVal_size_t(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_WeightedUTF8StringListSwig__SWIG_2(self, argc, argv); + { + int res = SWIG_AsVal_size_t(argv[0], NULL); + _v = SWIG_CheckState(res); + } } + if (!_v) goto check_2; + return _wrap_new_WeightedUTF8StringListSwig__SWIG_2(self, argc, argv); } +check_2: + if (argc == 1) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< std::vector< uint8_t,std::allocator< uint8_t > > >,std::allocator< WeightedValue< std::vector< uint8_t > > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_WeightedUTF8StringListSwig__SWIG_1(self, argc, argv); - } + PyObject *retobj = _wrap_new_WeightedUTF8StringListSwig__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 2) { - int _v = 0; - { - int res = SWIG_AsVal_size_t(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_WeightedValueT_std__vectorT_uint8_t_t_t, SWIG_POINTER_NO_NULL | 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_WeightedUTF8StringListSwig__SWIG_3(self, argc, argv); - } - } + PyObject *retobj = _wrap_new_WeightedUTF8StringListSwig__SWIG_3(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -30573,36 +29822,14 @@ SWIGINTERN PyObject *_wrap_WeightedUTF8StringListSwig_resize(PyObject *self, PyO if (!(argc = SWIG_Python_UnpackTuple(args, "WeightedUTF8StringListSwig_resize", 0, 3, argv))) SWIG_fail; --argc; if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< std::vector< uint8_t,std::allocator< uint8_t > > >,std::allocator< WeightedValue< std::vector< uint8_t > > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_size_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_WeightedUTF8StringListSwig_resize__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_WeightedUTF8StringListSwig_resize__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< std::vector< uint8_t,std::allocator< uint8_t > > >,std::allocator< WeightedValue< std::vector< uint8_t > > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_size_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_WeightedValueT_std__vectorT_uint8_t_t_t, SWIG_POINTER_NO_NULL | 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_WeightedUTF8StringListSwig_resize__SWIG_1(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_WeightedUTF8StringListSwig_resize__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -30787,44 +30014,14 @@ SWIGINTERN PyObject *_wrap_WeightedUTF8StringListSwig_insert(PyObject *self, PyO if (!(argc = SWIG_Python_UnpackTuple(args, "WeightedUTF8StringListSwig_insert", 0, 4, argv))) SWIG_fail; --argc; if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< std::vector< uint8_t,std::allocator< uint8_t > > >,std::allocator< WeightedValue< std::vector< uint8_t > > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast > >::iterator > *>(iter) != 0)); - if (_v) { - int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_WeightedValueT_std__vectorT_uint8_t_t_t, SWIG_POINTER_NO_NULL | 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_WeightedUTF8StringListSwig_insert__SWIG_0(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_WeightedUTF8StringListSwig_insert__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 4) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< std::vector< uint8_t,std::allocator< uint8_t > > >,std::allocator< WeightedValue< std::vector< uint8_t > > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast > >::iterator > *>(iter) != 0)); - if (_v) { - { - int res = SWIG_AsVal_size_t(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_WeightedValueT_std__vectorT_uint8_t_t_t, SWIG_POINTER_NO_NULL | 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_WeightedUTF8StringListSwig_insert__SWIG_1(self, argc, argv); - } - } - } - } + PyObject *retobj = _wrap_WeightedUTF8StringListSwig_insert__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -31488,48 +30685,14 @@ SWIGINTERN PyObject *_wrap_WeightedBoolListSwig___setslice__(PyObject *self, PyO if (!(argc = SWIG_Python_UnpackTuple(args, "WeightedBoolListSwig___setslice__", 0, 4, argv))) SWIG_fail; --argc; if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< bool >,std::allocator< WeightedValue< bool > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_WeightedBoolListSwig___setslice____SWIG_0(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_WeightedBoolListSwig___setslice____SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 4) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< bool >,std::allocator< WeightedValue< bool > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = swig::asptr(argv[3], (std::vector< WeightedValue< bool >,std::allocator< WeightedValue< bool > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_WeightedBoolListSwig___setslice____SWIG_1(self, argc, argv); - } - } - } - } + PyObject *retobj = _wrap_WeightedBoolListSwig___setslice____SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -31968,30 +31131,20 @@ SWIGINTERN PyObject *_wrap_WeightedBoolListSwig___delitem__(PyObject *self, PyOb --argc; if (argc == 2) { int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< bool >,std::allocator< WeightedValue< bool > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { + { { _v = PySlice_Check(argv[1]); } - if (_v) { - return _wrap_WeightedBoolListSwig___delitem____SWIG_1(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_WeightedBoolListSwig___delitem____SWIG_1(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< bool >,std::allocator< WeightedValue< bool > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_WeightedBoolListSwig___delitem____SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_WeightedBoolListSwig___delitem____SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -32081,30 +31234,20 @@ SWIGINTERN PyObject *_wrap_WeightedBoolListSwig___getitem__(PyObject *self, PyOb --argc; if (argc == 2) { int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< bool >,std::allocator< WeightedValue< bool > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { + { { _v = PySlice_Check(argv[1]); } - if (_v) { - return _wrap_WeightedBoolListSwig___getitem____SWIG_0(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_WeightedBoolListSwig___getitem____SWIG_0(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< bool >,std::allocator< WeightedValue< bool > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_WeightedBoolListSwig___getitem____SWIG_1(self, argc, argv); - } - } + PyObject *retobj = _wrap_WeightedBoolListSwig___getitem____SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -32200,52 +31343,31 @@ SWIGINTERN PyObject *_wrap_WeightedBoolListSwig___setitem__(PyObject *self, PyOb if (!(argc = SWIG_Python_UnpackTuple(args, "WeightedBoolListSwig___setitem__", 0, 3, argv))) SWIG_fail; --argc; if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< bool >,std::allocator< WeightedValue< bool > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - _v = PySlice_Check(argv[1]); - } - if (_v) { - return _wrap_WeightedBoolListSwig___setitem____SWIG_1(self, argc, argv); - } - } + PyObject *retobj = _wrap_WeightedBoolListSwig___setitem____SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 3) { int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< bool >,std::allocator< WeightedValue< bool > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { + { { _v = PySlice_Check(argv[1]); } - if (_v) { - int res = swig::asptr(argv[2], (std::vector< WeightedValue< bool >,std::allocator< WeightedValue< bool > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_WeightedBoolListSwig___setitem____SWIG_0(self, argc, argv); - } - } } + if (!_v) goto check_2; + { + int res = swig::asptr(argv[2], (std::vector< WeightedValue< bool >,std::allocator< WeightedValue< bool > > >**)(0)); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + return _wrap_WeightedBoolListSwig___setitem____SWIG_0(self, argc, argv); } +check_2: + if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< bool >,std::allocator< WeightedValue< bool > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_WeightedValueT_bool_t, SWIG_POINTER_NO_NULL | 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_WeightedBoolListSwig___setitem____SWIG_2(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_WeightedBoolListSwig___setitem____SWIG_2(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -33319,35 +32441,14 @@ SWIGINTERN PyObject *_wrap_WeightedBoolListSwig_erase(PyObject *self, PyObject * if (!(argc = SWIG_Python_UnpackTuple(args, "WeightedBoolListSwig_erase", 0, 3, argv))) SWIG_fail; --argc; if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< bool >,std::allocator< WeightedValue< bool > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast >::iterator > *>(iter) != 0)); - if (_v) { - return _wrap_WeightedBoolListSwig_erase__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_WeightedBoolListSwig_erase__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< bool >,std::allocator< WeightedValue< bool > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast >::iterator > *>(iter) != 0)); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast >::iterator > *>(iter) != 0)); - if (_v) { - return _wrap_WeightedBoolListSwig_erase__SWIG_1(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_WeightedBoolListSwig_erase__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -33432,39 +32533,32 @@ SWIGINTERN PyObject *_wrap_new_WeightedBoolListSwig(PyObject *self, PyObject *ar if (!(argc = SWIG_Python_UnpackTuple(args, "new_WeightedBoolListSwig", 0, 2, argv))) SWIG_fail; --argc; if (argc == 0) { - return _wrap_new_WeightedBoolListSwig__SWIG_0(self, argc, argv); + PyObject *retobj = _wrap_new_WeightedBoolListSwig__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 1) { int _v = 0; { - int res = SWIG_AsVal_size_t(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_WeightedBoolListSwig__SWIG_2(self, argc, argv); + { + int res = SWIG_AsVal_size_t(argv[0], NULL); + _v = SWIG_CheckState(res); + } } + if (!_v) goto check_2; + return _wrap_new_WeightedBoolListSwig__SWIG_2(self, argc, argv); } +check_2: + if (argc == 1) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< bool >,std::allocator< WeightedValue< bool > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_WeightedBoolListSwig__SWIG_1(self, argc, argv); - } + PyObject *retobj = _wrap_new_WeightedBoolListSwig__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 2) { - int _v = 0; - { - int res = SWIG_AsVal_size_t(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_WeightedValueT_bool_t, SWIG_POINTER_NO_NULL | 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_WeightedBoolListSwig__SWIG_3(self, argc, argv); - } - } + PyObject *retobj = _wrap_new_WeightedBoolListSwig__SWIG_3(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -33810,36 +32904,14 @@ SWIGINTERN PyObject *_wrap_WeightedBoolListSwig_resize(PyObject *self, PyObject if (!(argc = SWIG_Python_UnpackTuple(args, "WeightedBoolListSwig_resize", 0, 3, argv))) SWIG_fail; --argc; if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< bool >,std::allocator< WeightedValue< bool > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_size_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_WeightedBoolListSwig_resize__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_WeightedBoolListSwig_resize__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< bool >,std::allocator< WeightedValue< bool > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_size_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_WeightedValueT_bool_t, SWIG_POINTER_NO_NULL | 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_WeightedBoolListSwig_resize__SWIG_1(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_WeightedBoolListSwig_resize__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -34024,44 +33096,14 @@ SWIGINTERN PyObject *_wrap_WeightedBoolListSwig_insert(PyObject *self, PyObject if (!(argc = SWIG_Python_UnpackTuple(args, "WeightedBoolListSwig_insert", 0, 4, argv))) SWIG_fail; --argc; if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< bool >,std::allocator< WeightedValue< bool > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast >::iterator > *>(iter) != 0)); - if (_v) { - int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_WeightedValueT_bool_t, SWIG_POINTER_NO_NULL | 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_WeightedBoolListSwig_insert__SWIG_0(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_WeightedBoolListSwig_insert__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 4) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< bool >,std::allocator< WeightedValue< bool > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast >::iterator > *>(iter) != 0)); - if (_v) { - { - int res = SWIG_AsVal_size_t(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_WeightedValueT_bool_t, SWIG_POINTER_NO_NULL | 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_WeightedBoolListSwig_insert__SWIG_1(self, argc, argv); - } - } - } - } + PyObject *retobj = _wrap_WeightedBoolListSwig_insert__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -34725,48 +33767,14 @@ SWIGINTERN PyObject *_wrap_WeightedIntListSwig___setslice__(PyObject *self, PyOb if (!(argc = SWIG_Python_UnpackTuple(args, "WeightedIntListSwig___setslice__", 0, 4, argv))) SWIG_fail; --argc; if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< int >,std::allocator< WeightedValue< int > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_WeightedIntListSwig___setslice____SWIG_0(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_WeightedIntListSwig___setslice____SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 4) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< int >,std::allocator< WeightedValue< int > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = swig::asptr(argv[3], (std::vector< WeightedValue< int >,std::allocator< WeightedValue< int > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_WeightedIntListSwig___setslice____SWIG_1(self, argc, argv); - } - } - } - } + PyObject *retobj = _wrap_WeightedIntListSwig___setslice____SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -35205,30 +34213,20 @@ SWIGINTERN PyObject *_wrap_WeightedIntListSwig___delitem__(PyObject *self, PyObj --argc; if (argc == 2) { int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< int >,std::allocator< WeightedValue< int > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { + { { _v = PySlice_Check(argv[1]); } - if (_v) { - return _wrap_WeightedIntListSwig___delitem____SWIG_1(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_WeightedIntListSwig___delitem____SWIG_1(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< int >,std::allocator< WeightedValue< int > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_WeightedIntListSwig___delitem____SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_WeightedIntListSwig___delitem____SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -35318,30 +34316,20 @@ SWIGINTERN PyObject *_wrap_WeightedIntListSwig___getitem__(PyObject *self, PyObj --argc; if (argc == 2) { int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< int >,std::allocator< WeightedValue< int > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { + { { _v = PySlice_Check(argv[1]); } - if (_v) { - return _wrap_WeightedIntListSwig___getitem____SWIG_0(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_WeightedIntListSwig___getitem____SWIG_0(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< int >,std::allocator< WeightedValue< int > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_WeightedIntListSwig___getitem____SWIG_1(self, argc, argv); - } - } + PyObject *retobj = _wrap_WeightedIntListSwig___getitem____SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -35437,52 +34425,31 @@ SWIGINTERN PyObject *_wrap_WeightedIntListSwig___setitem__(PyObject *self, PyObj if (!(argc = SWIG_Python_UnpackTuple(args, "WeightedIntListSwig___setitem__", 0, 3, argv))) SWIG_fail; --argc; if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< int >,std::allocator< WeightedValue< int > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - _v = PySlice_Check(argv[1]); - } - if (_v) { - return _wrap_WeightedIntListSwig___setitem____SWIG_1(self, argc, argv); - } - } + PyObject *retobj = _wrap_WeightedIntListSwig___setitem____SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 3) { int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< int >,std::allocator< WeightedValue< int > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { + { { _v = PySlice_Check(argv[1]); } - if (_v) { - int res = swig::asptr(argv[2], (std::vector< WeightedValue< int >,std::allocator< WeightedValue< int > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_WeightedIntListSwig___setitem____SWIG_0(self, argc, argv); - } - } } + if (!_v) goto check_2; + { + int res = swig::asptr(argv[2], (std::vector< WeightedValue< int >,std::allocator< WeightedValue< int > > >**)(0)); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + return _wrap_WeightedIntListSwig___setitem____SWIG_0(self, argc, argv); } +check_2: + if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< int >,std::allocator< WeightedValue< int > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_WeightedValueT_int_t, SWIG_POINTER_NO_NULL | 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_WeightedIntListSwig___setitem____SWIG_2(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_WeightedIntListSwig___setitem____SWIG_2(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -36556,35 +35523,14 @@ SWIGINTERN PyObject *_wrap_WeightedIntListSwig_erase(PyObject *self, PyObject *a if (!(argc = SWIG_Python_UnpackTuple(args, "WeightedIntListSwig_erase", 0, 3, argv))) SWIG_fail; --argc; if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< int >,std::allocator< WeightedValue< int > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast >::iterator > *>(iter) != 0)); - if (_v) { - return _wrap_WeightedIntListSwig_erase__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_WeightedIntListSwig_erase__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< int >,std::allocator< WeightedValue< int > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast >::iterator > *>(iter) != 0)); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast >::iterator > *>(iter) != 0)); - if (_v) { - return _wrap_WeightedIntListSwig_erase__SWIG_1(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_WeightedIntListSwig_erase__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -36669,39 +35615,32 @@ SWIGINTERN PyObject *_wrap_new_WeightedIntListSwig(PyObject *self, PyObject *arg if (!(argc = SWIG_Python_UnpackTuple(args, "new_WeightedIntListSwig", 0, 2, argv))) SWIG_fail; --argc; if (argc == 0) { - return _wrap_new_WeightedIntListSwig__SWIG_0(self, argc, argv); + PyObject *retobj = _wrap_new_WeightedIntListSwig__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 1) { int _v = 0; { - int res = SWIG_AsVal_size_t(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_WeightedIntListSwig__SWIG_2(self, argc, argv); + { + int res = SWIG_AsVal_size_t(argv[0], NULL); + _v = SWIG_CheckState(res); + } } + if (!_v) goto check_2; + return _wrap_new_WeightedIntListSwig__SWIG_2(self, argc, argv); } +check_2: + if (argc == 1) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< int >,std::allocator< WeightedValue< int > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_WeightedIntListSwig__SWIG_1(self, argc, argv); - } + PyObject *retobj = _wrap_new_WeightedIntListSwig__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 2) { - int _v = 0; - { - int res = SWIG_AsVal_size_t(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_WeightedValueT_int_t, SWIG_POINTER_NO_NULL | 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_WeightedIntListSwig__SWIG_3(self, argc, argv); - } - } + PyObject *retobj = _wrap_new_WeightedIntListSwig__SWIG_3(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -37047,36 +35986,14 @@ SWIGINTERN PyObject *_wrap_WeightedIntListSwig_resize(PyObject *self, PyObject * if (!(argc = SWIG_Python_UnpackTuple(args, "WeightedIntListSwig_resize", 0, 3, argv))) SWIG_fail; --argc; if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< int >,std::allocator< WeightedValue< int > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_size_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_WeightedIntListSwig_resize__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_WeightedIntListSwig_resize__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< int >,std::allocator< WeightedValue< int > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_size_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_WeightedValueT_int_t, SWIG_POINTER_NO_NULL | 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_WeightedIntListSwig_resize__SWIG_1(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_WeightedIntListSwig_resize__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -37261,44 +36178,14 @@ SWIGINTERN PyObject *_wrap_WeightedIntListSwig_insert(PyObject *self, PyObject * if (!(argc = SWIG_Python_UnpackTuple(args, "WeightedIntListSwig_insert", 0, 4, argv))) SWIG_fail; --argc; if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< int >,std::allocator< WeightedValue< int > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast >::iterator > *>(iter) != 0)); - if (_v) { - int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_WeightedValueT_int_t, SWIG_POINTER_NO_NULL | 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_WeightedIntListSwig_insert__SWIG_0(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_WeightedIntListSwig_insert__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 4) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< int >,std::allocator< WeightedValue< int > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast >::iterator > *>(iter) != 0)); - if (_v) { - { - int res = SWIG_AsVal_size_t(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_WeightedValueT_int_t, SWIG_POINTER_NO_NULL | 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_WeightedIntListSwig_insert__SWIG_1(self, argc, argv); - } - } - } - } + PyObject *retobj = _wrap_WeightedIntListSwig_insert__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -37962,48 +36849,14 @@ SWIGINTERN PyObject *_wrap_WeightedDoubleListSwig___setslice__(PyObject *self, P if (!(argc = SWIG_Python_UnpackTuple(args, "WeightedDoubleListSwig___setslice__", 0, 4, argv))) SWIG_fail; --argc; if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< double >,std::allocator< WeightedValue< double > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_WeightedDoubleListSwig___setslice____SWIG_0(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_WeightedDoubleListSwig___setslice____SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 4) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< double >,std::allocator< WeightedValue< double > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = swig::asptr(argv[3], (std::vector< WeightedValue< double >,std::allocator< WeightedValue< double > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_WeightedDoubleListSwig___setslice____SWIG_1(self, argc, argv); - } - } - } - } + PyObject *retobj = _wrap_WeightedDoubleListSwig___setslice____SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -38442,30 +37295,20 @@ SWIGINTERN PyObject *_wrap_WeightedDoubleListSwig___delitem__(PyObject *self, Py --argc; if (argc == 2) { int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< double >,std::allocator< WeightedValue< double > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { + { { _v = PySlice_Check(argv[1]); } - if (_v) { - return _wrap_WeightedDoubleListSwig___delitem____SWIG_1(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_WeightedDoubleListSwig___delitem____SWIG_1(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< double >,std::allocator< WeightedValue< double > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_WeightedDoubleListSwig___delitem____SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_WeightedDoubleListSwig___delitem____SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -38555,30 +37398,20 @@ SWIGINTERN PyObject *_wrap_WeightedDoubleListSwig___getitem__(PyObject *self, Py --argc; if (argc == 2) { int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< double >,std::allocator< WeightedValue< double > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { + { { _v = PySlice_Check(argv[1]); } - if (_v) { - return _wrap_WeightedDoubleListSwig___getitem____SWIG_0(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_WeightedDoubleListSwig___getitem____SWIG_0(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< double >,std::allocator< WeightedValue< double > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_WeightedDoubleListSwig___getitem____SWIG_1(self, argc, argv); - } - } + PyObject *retobj = _wrap_WeightedDoubleListSwig___getitem____SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -38674,52 +37507,31 @@ SWIGINTERN PyObject *_wrap_WeightedDoubleListSwig___setitem__(PyObject *self, Py if (!(argc = SWIG_Python_UnpackTuple(args, "WeightedDoubleListSwig___setitem__", 0, 3, argv))) SWIG_fail; --argc; if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< double >,std::allocator< WeightedValue< double > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - _v = PySlice_Check(argv[1]); - } - if (_v) { - return _wrap_WeightedDoubleListSwig___setitem____SWIG_1(self, argc, argv); - } - } + PyObject *retobj = _wrap_WeightedDoubleListSwig___setitem____SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 3) { int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< double >,std::allocator< WeightedValue< double > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { + { { _v = PySlice_Check(argv[1]); } - if (_v) { - int res = swig::asptr(argv[2], (std::vector< WeightedValue< double >,std::allocator< WeightedValue< double > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_WeightedDoubleListSwig___setitem____SWIG_0(self, argc, argv); - } - } } + if (!_v) goto check_2; + { + int res = swig::asptr(argv[2], (std::vector< WeightedValue< double >,std::allocator< WeightedValue< double > > >**)(0)); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + return _wrap_WeightedDoubleListSwig___setitem____SWIG_0(self, argc, argv); } +check_2: + if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< double >,std::allocator< WeightedValue< double > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_WeightedValueT_double_t, SWIG_POINTER_NO_NULL | 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_WeightedDoubleListSwig___setitem____SWIG_2(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_WeightedDoubleListSwig___setitem____SWIG_2(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -39793,35 +38605,14 @@ SWIGINTERN PyObject *_wrap_WeightedDoubleListSwig_erase(PyObject *self, PyObject if (!(argc = SWIG_Python_UnpackTuple(args, "WeightedDoubleListSwig_erase", 0, 3, argv))) SWIG_fail; --argc; if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< double >,std::allocator< WeightedValue< double > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast >::iterator > *>(iter) != 0)); - if (_v) { - return _wrap_WeightedDoubleListSwig_erase__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_WeightedDoubleListSwig_erase__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< double >,std::allocator< WeightedValue< double > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast >::iterator > *>(iter) != 0)); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast >::iterator > *>(iter) != 0)); - if (_v) { - return _wrap_WeightedDoubleListSwig_erase__SWIG_1(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_WeightedDoubleListSwig_erase__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -39906,39 +38697,32 @@ SWIGINTERN PyObject *_wrap_new_WeightedDoubleListSwig(PyObject *self, PyObject * if (!(argc = SWIG_Python_UnpackTuple(args, "new_WeightedDoubleListSwig", 0, 2, argv))) SWIG_fail; --argc; if (argc == 0) { - return _wrap_new_WeightedDoubleListSwig__SWIG_0(self, argc, argv); + PyObject *retobj = _wrap_new_WeightedDoubleListSwig__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 1) { int _v = 0; { - int res = SWIG_AsVal_size_t(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_WeightedDoubleListSwig__SWIG_2(self, argc, argv); + { + int res = SWIG_AsVal_size_t(argv[0], NULL); + _v = SWIG_CheckState(res); + } } + if (!_v) goto check_2; + return _wrap_new_WeightedDoubleListSwig__SWIG_2(self, argc, argv); } +check_2: + if (argc == 1) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< double >,std::allocator< WeightedValue< double > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_WeightedDoubleListSwig__SWIG_1(self, argc, argv); - } + PyObject *retobj = _wrap_new_WeightedDoubleListSwig__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 2) { - int _v = 0; - { - int res = SWIG_AsVal_size_t(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_WeightedValueT_double_t, SWIG_POINTER_NO_NULL | 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_WeightedDoubleListSwig__SWIG_3(self, argc, argv); - } - } + PyObject *retobj = _wrap_new_WeightedDoubleListSwig__SWIG_3(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -40284,36 +39068,14 @@ SWIGINTERN PyObject *_wrap_WeightedDoubleListSwig_resize(PyObject *self, PyObjec if (!(argc = SWIG_Python_UnpackTuple(args, "WeightedDoubleListSwig_resize", 0, 3, argv))) SWIG_fail; --argc; if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< double >,std::allocator< WeightedValue< double > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_size_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_WeightedDoubleListSwig_resize__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_WeightedDoubleListSwig_resize__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< double >,std::allocator< WeightedValue< double > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_size_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_WeightedValueT_double_t, SWIG_POINTER_NO_NULL | 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_WeightedDoubleListSwig_resize__SWIG_1(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_WeightedDoubleListSwig_resize__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -40498,44 +39260,14 @@ SWIGINTERN PyObject *_wrap_WeightedDoubleListSwig_insert(PyObject *self, PyObjec if (!(argc = SWIG_Python_UnpackTuple(args, "WeightedDoubleListSwig_insert", 0, 4, argv))) SWIG_fail; --argc; if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< double >,std::allocator< WeightedValue< double > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast >::iterator > *>(iter) != 0)); - if (_v) { - int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_WeightedValueT_double_t, SWIG_POINTER_NO_NULL | 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_WeightedDoubleListSwig_insert__SWIG_0(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_WeightedDoubleListSwig_insert__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 4) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< double >,std::allocator< WeightedValue< double > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast >::iterator > *>(iter) != 0)); - if (_v) { - { - int res = SWIG_AsVal_size_t(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_WeightedValueT_double_t, SWIG_POINTER_NO_NULL | 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_WeightedDoubleListSwig_insert__SWIG_1(self, argc, argv); - } - } - } - } + PyObject *retobj = _wrap_WeightedDoubleListSwig_insert__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -42846,31 +41578,21 @@ SWIGINTERN PyObject *_wrap_ResultsIpiSwig_getValuesAsWeightedStringList(PyObject --argc; if (argc == 2) { int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsIpi, 0); - _v = SWIG_CheckState(res); - if (_v) { + { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } - if (_v) { - return _wrap_ResultsIpiSwig_getValuesAsWeightedStringList__SWIG_1(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_ResultsIpiSwig_getValuesAsWeightedStringList__SWIG_1(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsIpi, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_ResultsIpiSwig_getValuesAsWeightedStringList__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_ResultsIpiSwig_getValuesAsWeightedStringList__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -43021,31 +41743,21 @@ SWIGINTERN PyObject *_wrap_ResultsIpiSwig_getValuesAsWeightedUTF8StringList(PyOb --argc; if (argc == 2) { int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsIpi, 0); - _v = SWIG_CheckState(res); - if (_v) { + { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } - if (_v) { - return _wrap_ResultsIpiSwig_getValuesAsWeightedUTF8StringList__SWIG_1(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_ResultsIpiSwig_getValuesAsWeightedUTF8StringList__SWIG_1(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsIpi, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_ResultsIpiSwig_getValuesAsWeightedUTF8StringList__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_ResultsIpiSwig_getValuesAsWeightedUTF8StringList__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -43196,31 +41908,21 @@ SWIGINTERN PyObject *_wrap_ResultsIpiSwig_getValueAsUTF8String(PyObject *self, P --argc; if (argc == 2) { int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsIpi, 0); - _v = SWIG_CheckState(res); - if (_v) { + { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } - if (_v) { - return _wrap_ResultsIpiSwig_getValueAsUTF8String__SWIG_1(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_ResultsIpiSwig_getValueAsUTF8String__SWIG_1(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsIpi, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_ResultsIpiSwig_getValueAsUTF8String__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_ResultsIpiSwig_getValueAsUTF8String__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -43387,43 +42089,23 @@ SWIGINTERN PyObject *_wrap_ResultsIpiSwig_getValuesAsWeightedWKTStringList(PyObj --argc; if (argc == 3) { int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsIpi, 0); - _v = SWIG_CheckState(res); - if (_v) { + { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_char(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_ResultsIpiSwig_getValuesAsWeightedWKTStringList__SWIG_1(self, argc, argv); - } - } } + if (!_v) goto check_1; + PyObject *retobj = _wrap_ResultsIpiSwig_getValuesAsWeightedWKTStringList__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } +check_1: + if (argc == 3) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsIpi, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_char(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_ResultsIpiSwig_getValuesAsWeightedWKTStringList__SWIG_0(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_ResultsIpiSwig_getValuesAsWeightedWKTStringList__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -43574,31 +42256,21 @@ SWIGINTERN PyObject *_wrap_ResultsIpiSwig_getValuesAsWeightedBoolList(PyObject * --argc; if (argc == 2) { int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsIpi, 0); - _v = SWIG_CheckState(res); - if (_v) { + { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } - if (_v) { - return _wrap_ResultsIpiSwig_getValuesAsWeightedBoolList__SWIG_1(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_ResultsIpiSwig_getValuesAsWeightedBoolList__SWIG_1(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsIpi, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_ResultsIpiSwig_getValuesAsWeightedBoolList__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_ResultsIpiSwig_getValuesAsWeightedBoolList__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -43749,31 +42421,21 @@ SWIGINTERN PyObject *_wrap_ResultsIpiSwig_getValuesAsWeightedIntegerList(PyObjec --argc; if (argc == 2) { int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsIpi, 0); - _v = SWIG_CheckState(res); - if (_v) { + { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } - if (_v) { - return _wrap_ResultsIpiSwig_getValuesAsWeightedIntegerList__SWIG_1(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_ResultsIpiSwig_getValuesAsWeightedIntegerList__SWIG_1(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsIpi, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_ResultsIpiSwig_getValuesAsWeightedIntegerList__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_ResultsIpiSwig_getValuesAsWeightedIntegerList__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -43924,31 +42586,21 @@ SWIGINTERN PyObject *_wrap_ResultsIpiSwig_getValuesAsWeightedDoubleList(PyObject --argc; if (argc == 2) { int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsIpi, 0); - _v = SWIG_CheckState(res); - if (_v) { + { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } - if (_v) { - return _wrap_ResultsIpiSwig_getValuesAsWeightedDoubleList__SWIG_1(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_ResultsIpiSwig_getValuesAsWeightedDoubleList__SWIG_1(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsIpi, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_ResultsIpiSwig_getValuesAsWeightedDoubleList__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_ResultsIpiSwig_getValuesAsWeightedDoubleList__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -44099,31 +42751,21 @@ SWIGINTERN PyObject *_wrap_ResultsIpiSwig_getValueAsIpAddress(PyObject *self, Py --argc; if (argc == 2) { int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsIpi, 0); - _v = SWIG_CheckState(res); - if (_v) { + { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } - if (_v) { - return _wrap_ResultsIpiSwig_getValueAsIpAddress__SWIG_1(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_ResultsIpiSwig_getValueAsIpAddress__SWIG_1(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsIpi, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_ResultsIpiSwig_getValueAsIpAddress__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_ResultsIpiSwig_getValueAsIpAddress__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -46818,40 +45460,22 @@ SWIGINTERN PyObject *_wrap_new_EngineIpiSwig(PyObject *self, PyObject *args) { --argc; if (argc == 3) { int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_unsigned_char, 0); - _v = SWIG_CheckState(res); - if (_v) { + { void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ConfigIpi, 0); + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_unsigned_char, 0); _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_RequiredPropertiesConfig, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_EngineIpiSwig__SWIG_1(self, argc, argv); - } - } } + if (!_v) goto check_1; + PyObject *retobj = _wrap_new_EngineIpiSwig__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } +check_1: + if (argc == 3) { - int _v = 0; - int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ConfigIpi, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_RequiredPropertiesConfig, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_EngineIpiSwig__SWIG_0(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_new_EngineIpiSwig__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -47510,56 +46134,25 @@ SWIGINTERN PyObject *_wrap_EngineIpiSwig_process(PyObject *self, PyObject *args) --argc; if (argc == 2) { int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_EngineIpi, 0); - _v = SWIG_CheckState(res); - if (_v) { + { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_EvidenceIpi, 0); _v = SWIG_CheckState(res); - if (_v) { - return _wrap_EngineIpiSwig_process__SWIG_0(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_EngineIpiSwig_process__SWIG_0(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_EngineIpi, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_EngineIpiSwig_process__SWIG_1(self, argc, argv); - } - } + PyObject *retobj = _wrap_EngineIpiSwig_process__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 4) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_EngineIpi, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_char, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_long(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_EngineIpiSwig_process__SWIG_2(self, argc, argv); - } - } - } - } + PyObject *retobj = _wrap_EngineIpiSwig_process__SWIG_2(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: From 248f74631d559897c6b67dd01fd35f18b581debe Mon Sep 17 00:00:00 2001 From: James Rosewell Date: Tue, 24 Nov 2026 04:51:01 +0000 Subject: [PATCH 2/3] BUILD: Give the C runtime define to the cxx sources only, and test flags In each on-premise package, MSVC gets /D_CRT_SECURE_NO_WARNINGS for the cxx C and C++ sources only, which still call C runtime functions MSVC marks as deprecated, and no longer for the SWIG wrapper. setup.py says to remove it once those calls are gone, and names the warnings that are on, those of -Wall -Wextra and /W4. The comment in hash_python.i and ipi_python.i lists the pragmas SWIG still writes in the wrapper and why none changes this build. The wrappers are unchanged. ci/native-warnings.Tests.ps1 reads both setup.py files and both wrappers, and fails if a warning is turned off, the level is lowered, -Werror or /WX is commented out, the wrapper gets the C runtime define, or a wrapper has a pragma the interface file does not list. A new test_overload_type_error.py in each package checks that a constructor call matching no overload raises a TypeError that names it. --- ci/native-warnings.Tests.ps1 | 130 ++++++++++++++++++ .../setup.py | 19 ++- .../hash_python.i | 26 +++- .../tests/test_overload_type_error.py | 46 +++++++ .../setup.py | 19 ++- .../ipi_python.i | 26 +++- .../tests/test_overload_type_error.py | 46 +++++++ 7 files changed, 284 insertions(+), 28 deletions(-) create mode 100644 ci/native-warnings.Tests.ps1 create mode 100644 device-detection/fiftyone_devicedetection_onpremise/tests/test_overload_type_error.py create mode 100644 ip-intelligence/fiftyone_ipintelligence_onpremise/tests/test_overload_type_error.py diff --git a/ci/native-warnings.Tests.ps1 b/ci/native-warnings.Tests.ps1 new file mode 100644 index 00000000..03d1a91a --- /dev/null +++ b/ci/native-warnings.Tests.ps1 @@ -0,0 +1,130 @@ +# Tests that the two on-premise packages build their native code, the SWIG +# wrapper, the C++ and the C, with the warnings of -Wall -Wextra and /W4 on and +# treated as errors, and that nothing turns a warning off: no -Wno-* or /wd +# flag, no lower warning level, no commented out -Werror or /WX, and no pragma +# in a wrapper other than those SWIG writes and the interface file lists. +# setup.py, the interface files and the wrappers are read as text. + +BeforeDiscovery { + $script:Packages = @( + @{ + Name = 'fiftyone_devicedetection_onpremise' + Folder = 'device-detection/fiftyone_devicedetection_onpremise' + Interface = 'hash_python.i' + Wrapper = 'hash_python_wrap.cxx' + }, + @{ + Name = 'fiftyone_ipintelligence_onpremise' + Folder = 'ip-intelligence/fiftyone_ipintelligence_onpremise' + Interface = 'ipi_python.i' + Wrapper = 'ipi_python_wrap.cxx' + } + ) +} + +Describe ' native build flags' -ForEach $Packages { + BeforeAll { + $root = Join-Path $PSScriptRoot '..' $Folder + $script:Lines = @(Get-Content -LiteralPath (Join-Path $root 'setup.py')) + # The lines that are code, with any comment at the end taken off. + $script:Code = @($script:Lines | + Where-Object { $_ -notmatch '^\s*#' } | + ForEach-Object { $_ -replace '\s#.*$', '' }) + $script:Comments = @($script:Lines | Where-Object { $_ -match '^\s*#' }) + + function Get-Count([string]$Pattern) { + @($script:Code | Where-Object { $_ -match $Pattern }).Count + } + } + + It 'turns no warning off and lowers no warning level' { + $switches = @($script:Code | Where-Object { + $_ -match "-Wno-|/wd\d|'-w'|'/w'|'/W[0-3]'" + }) + $switches | Should -BeNullOrEmpty + } + + It 'has no -Werror or /WX commented out' { + $commented = @($script:Comments | Where-Object { + $_ -match "'(-Werror|/WX)'" + }) + $commented | Should -BeNullOrEmpty + } + + It 'asks for -Wall, -Wextra and -Werror for the C++ and the C' { + Get-Count "'-Wall'" | Should -BeGreaterOrEqual 2 + Get-Count "'-Wextra'" | Should -BeGreaterOrEqual 2 + Get-Count "'-Werror'" | Should -BeGreaterOrEqual 2 + } + + It 'asks for /W4 and /WX for the C++ and the C, and /WX for the link' { + Get-Count "'/W4'" | Should -BeGreaterOrEqual 2 + Get-Count "'/WX'" | Should -BeGreaterOrEqual 3 + } + + It 'gives the wrapper its own flags' { + Get-Count '^\s*extra_compile_args=extra_compile_args,' | + Should -Be 1 + } + + It 'gives the C runtime deprecation define to the cxx sources only' { + $define = @($script:Code | + Where-Object { $_ -match '_CRT_SECURE_NO_WARNINGS' }) + $define.Count | Should -Be 1 + $define[0] | Should -Match '^\s*cxx_source_args\s*=\s*\[' + Get-Count "'cflags':\s*extra_compile_args\s*\+\s*cxx_source_args" | + Should -Be 1 + Get-Count "'cflags':\s*cflags\s*\+\s*cxx_source_args" | + Should -Be 1 + } +} + +Describe ' SWIG wrapper' -ForEach $Packages { + BeforeAll { + $source = Join-Path $PSScriptRoot '..' $Folder 'src' $Name + $script:Interface = Get-Content -Raw ` + -LiteralPath (Join-Path $source $Interface) + $script:WrapperLines = @(Get-Content ` + -LiteralPath (Join-Path $source $Wrapper)) + } + + It 'asks SWIG to leave on the warnings it would turn off' { + foreach ($name in 'SWIG_MSC_UNSUPPRESS_4505', + 'SWIG_NO_CRT_SECURE_NO_DEPRECATE', + 'SWIG_NO_SCL_SECURE_NO_DEPRECATE') { + $script:Interface | Should -Match "(?m)^#define $name\s*$" + } + } + + It 'has no pragma other than those the interface file lists' { + # The pragmas SWIG writes that no SWIG setting removes, each listed in + # the interface file comment with the reason it changes nothing here, + # and the 4505 one, which SWIG_MSC_UNSUPPRESS_4505 leaves out. + $known = @( + '#pragma warning(disable : 4505)' + '#pragma warning disable 592' + '#pragma GCC diagnostic push' + '#pragma GCC diagnostic pop' + '#pragma GCC diagnostic ignored "-Wregister"' + '#pragma GCC diagnostic ignored "-Wdeprecated"' + '#pragma GCC diagnostic ignored "-Wdeprecated-declarations"' + '#pragma warning(push)' + '#pragma warning(pop)' + '#pragma warning(disable: 4996)' + ) + $other = @($script:WrapperLines | + Where-Object { $_ -match '^\s*#\s*pragma\b' } | + ForEach-Object { + ($_ -replace '/\*.*$', '' -replace '^\s*#\s*', '#').Trim() + } | + Where-Object { $_ -notin $known }) + $other | Should -BeNullOrEmpty + } + + It 'lists each SWIG pragma in the interface file comment' { + foreach ($text in '-Wregister', '4505', '592', '-Wdeprecated', + '4996') { + $script:Interface | Should -Match ([regex]::Escape($text)) + } + } +} diff --git a/device-detection/fiftyone_devicedetection_onpremise/setup.py b/device-detection/fiftyone_devicedetection_onpremise/setup.py index e7db308a..04ec9a59 100644 --- a/device-detection/fiftyone_devicedetection_onpremise/setup.py +++ b/device-detection/fiftyone_devicedetection_onpremise/setup.py @@ -129,9 +129,9 @@ def stage_native_source(): # Extra compilation flags for C library cflags = [] -# Every warning is on and is an error, for the wrapper, the C++ and the C -# alike. -Wunused-result comes after the flags Python was built with, which -# can turn it off. +# The warnings of -Wall -Wextra and /W4 are on and are errors, for the +# wrapper, the C++ and the C alike. -Wunused-result comes after the flags +# Python was built with, which can turn it off. if sys.platform != "win32": extra_compile_args.extend([ '-fPIC', @@ -153,14 +153,12 @@ def stage_native_source(): if sys.platform == "win32": extra_compile_args.extend([ '/std:c++17', - '/D_CRT_SECURE_NO_WARNINGS', '/D_UNICODE', '/DUNICODE', '/W4', '/WX' ]) cflags.extend([ - '/D_CRT_SECURE_NO_WARNINGS', '/D_UNICODE', '/DUNICODE', '/W4', @@ -170,6 +168,13 @@ def stage_native_source(): '/WX' ]) +# Given to the cxx C and C++ sources only, not to the wrapper. The cxx sources +# still call C runtime functions that MSVC deprecates (C4996). Remove this +# once they no longer do. +cxx_source_args = [] +if sys.platform == "win32": + cxx_source_args = ['/D_CRT_SECURE_NO_WARNINGS'] + if sys.platform == "linux": extra_link_args.extend([ '-latomic' @@ -202,7 +207,7 @@ def stage_native_source(): # Hash C++ *glob("src/fiftyone_devicedetection_onpremise/cxx/src/dd/hash/*.cpp"), ], - 'cflags': extra_compile_args + 'cflags': extra_compile_args + cxx_source_args }) clib = ('clib', { @@ -214,7 +219,7 @@ def stage_native_source(): # Hash C *glob("src/fiftyone_devicedetection_onpremise/cxx/src/dd/hash/*.c"), ], - 'cflags': cflags + 'cflags': cflags + cxx_source_args }) setup( diff --git a/device-detection/fiftyone_devicedetection_onpremise/src/fiftyone_devicedetection_onpremise/hash_python.i b/device-detection/fiftyone_devicedetection_onpremise/src/fiftyone_devicedetection_onpremise/hash_python.i index ddb7017e..cb2c0207 100644 --- a/device-detection/fiftyone_devicedetection_onpremise/src/fiftyone_devicedetection_onpremise/hash_python.i +++ b/device-detection/fiftyone_devicedetection_onpremise/src/fiftyone_devicedetection_onpremise/hash_python.i @@ -20,13 +20,25 @@ * such notice(s) shall fulfill the requirements of that article. * ********************************************************************* */ -/* Every compiler warning is on in the wrapper, so SWIG is asked not to turn - * off any of its own. SWIG's runtime defines helper functions that a module - * may not call. GCC and Clang are told so by SWIG's unused attribute, which - * MSVC has no equivalent for, so on MSVC they are inline, as unused inline - * functions are expected. The overloads are told apart by the arguments that - * differ only (fast dispatch), which also keeps each check in a scope of its - * own so no local hides another. */ +/* The wrapper is built with the warnings of -Wall -Wextra and /W4 as errors, + * so SWIG is asked to leave on the warnings it turns off for the whole wrapper + * (C4505 and the C runtime deprecation warnings). SWIG's runtime defines + * helper functions that a module may not call. GCC and Clang are told so by + * SWIG's unused attribute, which MSVC has no equivalent for, so on MSVC they + * are inline, as unused inline functions are expected. Only the arguments + * that differ are checked to tell the overloads apart (fast dispatch), which + * also keeps each check in a scope of its own so no local hides another. + * + * SWIG still writes these pragmas in the wrapper, and no SWIG setting + * removes them. None of them changes this build: + * - GCC "-Wregister", around Python.h only, for Python 2.7 headers. The + * Python headers this package builds with use register only for GNU + * explicit register variables, which -Wregister does not report. + * - Intel compiler warning 592, for the Intel compiler only. + * - GCC "-Wdeprecated" and "-Wdeprecated-declarations", and MSVC 4996, + * around PyObject_AsReadBuffer, only when SWIG_PYTHON_OLD_BUFFER_PROTOCOL + * is defined. This build does not define it. + * ci/native-warnings.Tests.ps1 fails on any other pragma in the wrapper. */ %begin %{ #define SWIG_MSC_UNSUPPRESS_4505 #define SWIG_NO_CRT_SECURE_NO_DEPRECATE diff --git a/device-detection/fiftyone_devicedetection_onpremise/tests/test_overload_type_error.py b/device-detection/fiftyone_devicedetection_onpremise/tests/test_overload_type_error.py new file mode 100644 index 00000000..19e16ac5 --- /dev/null +++ b/device-detection/fiftyone_devicedetection_onpremise/tests/test_overload_type_error.py @@ -0,0 +1,46 @@ +# ********************************************************************* +# This Original Work is copyright of 51 Degrees Mobile Experts Limited. +# Copyright 2026 51 Degrees Mobile Experts Limited, Davidson House, +# Forbury Square, Reading, Berkshire, United Kingdom RG1 3EU. +# +# This Original Work is licensed under the European Union Public Licence +# (EUPL) v.1.2 and is subject to its terms as set out below. +# +# If a copy of the EUPL was not distributed with this file, You can obtain +# one at https://opensource.org/licenses/EUPL-1.2. +# +# The 'Compatible Licences' set out in the Appendix to the EUPL (as may be +# amended by the European Commission) shall be deemed incompatible for +# the purposes of the Work and the provisions of the compatibility +# clause in Article 5 of the EUPL shall not apply. +# +# If using the Work as, or as part of, a network application, by +# including the attribution notice(s) required under Article 5 of the EUPL +# in the end user terms of the application under an appropriate heading, +# such notice(s) shall fulfill the requirements of that article. +# ********************************************************************* + +"""A call to the engine's overloaded constructor with arguments that match no +overload raises a TypeError that names the constructor, and does not crash +or build an engine. No data file is read.""" + +import unittest + +from fiftyone_devicedetection_onpremise.DeviceDetectionHashEngineModule import EngineHashSwig + + +class TestOverloadTypeError(unittest.TestCase): + + def test_wrong_argument_types_raise_type_error(self): + with self.assertRaises(TypeError) as raised: + EngineHashSwig(1, 2, 3) + self.assertIn("new_EngineHashSwig", str(raised.exception)) + + def test_wrong_number_of_arguments_raises_type_error(self): + with self.assertRaises(TypeError) as raised: + EngineHashSwig("file") + self.assertIn("new_EngineHashSwig", str(raised.exception)) + + +if __name__ == "__main__": + unittest.main() diff --git a/ip-intelligence/fiftyone_ipintelligence_onpremise/setup.py b/ip-intelligence/fiftyone_ipintelligence_onpremise/setup.py index 6bbaf80f..dc421099 100644 --- a/ip-intelligence/fiftyone_ipintelligence_onpremise/setup.py +++ b/ip-intelligence/fiftyone_ipintelligence_onpremise/setup.py @@ -147,9 +147,9 @@ def stage_native_source(): '-DFIFTYONE_DEGREES_LARGE_DATA_FILE_SUPPORT=1', '-DFIFTYONE_DEGREES_REDUCED_FILE=1'] -# Every warning is on and is an error, for the wrapper, the C++ and the C -# alike. -Wunused-result comes after the flags Python was built with, which -# can turn it off. +# The warnings of -Wall -Wextra and /W4 are on and are errors, for the +# wrapper, the C++ and the C alike. -Wunused-result comes after the flags +# Python was built with, which can turn it off. if sys.platform != "win32": extra_compile_args.extend([ '-fPIC', @@ -173,14 +173,12 @@ def stage_native_source(): if sys.platform == "win32": extra_compile_args.extend([ '/std:c++17', - '/D_CRT_SECURE_NO_WARNINGS', '/D_UNICODE', '/DUNICODE', '/W4', '/WX' ]) cflags.extend([ - '/D_CRT_SECURE_NO_WARNINGS', '/D_UNICODE', '/DUNICODE', '/W4', @@ -190,6 +188,13 @@ def stage_native_source(): '/WX' ]) +# Given to the cxx C and C++ sources only, not to the wrapper. The cxx sources +# still call C runtime functions that MSVC deprecates (C4996). Remove this +# once they no longer do. +cxx_source_args = [] +if sys.platform == "win32": + cxx_source_args = ['/D_CRT_SECURE_NO_WARNINGS'] + if sys.platform == "linux": extra_link_args.extend([ '-latomic' @@ -220,7 +225,7 @@ def stage_native_source(): # IP Intelligence C++ *glob("src/fiftyone_ipintelligence_onpremise/cxx/src/ipi/*.cpp"), ], - 'cflags': extra_compile_args + 'cflags': extra_compile_args + cxx_source_args }) clib = ('clib', { @@ -232,7 +237,7 @@ def stage_native_source(): # IP Graph C *glob("src/fiftyone_ipintelligence_onpremise/cxx/src/ipi/graph/*.c"), ], - 'cflags': cflags + 'cflags': cflags + cxx_source_args }) setup( diff --git a/ip-intelligence/fiftyone_ipintelligence_onpremise/src/fiftyone_ipintelligence_onpremise/ipi_python.i b/ip-intelligence/fiftyone_ipintelligence_onpremise/src/fiftyone_ipintelligence_onpremise/ipi_python.i index 18cf2260..2dc21e47 100644 --- a/ip-intelligence/fiftyone_ipintelligence_onpremise/src/fiftyone_ipintelligence_onpremise/ipi_python.i +++ b/ip-intelligence/fiftyone_ipintelligence_onpremise/src/fiftyone_ipintelligence_onpremise/ipi_python.i @@ -20,13 +20,25 @@ * such notice(s) shall fulfill the requirements of that article. * ********************************************************************* */ -/* Every compiler warning is on in the wrapper, so SWIG is asked not to turn - * off any of its own. SWIG's runtime defines helper functions that a module - * may not call. GCC and Clang are told so by SWIG's unused attribute, which - * MSVC has no equivalent for, so on MSVC they are inline, as unused inline - * functions are expected. The overloads are told apart by the arguments that - * differ only (fast dispatch), which also keeps each check in a scope of its - * own so no local hides another. */ +/* The wrapper is built with the warnings of -Wall -Wextra and /W4 as errors, + * so SWIG is asked to leave on the warnings it turns off for the whole wrapper + * (C4505 and the C runtime deprecation warnings). SWIG's runtime defines + * helper functions that a module may not call. GCC and Clang are told so by + * SWIG's unused attribute, which MSVC has no equivalent for, so on MSVC they + * are inline, as unused inline functions are expected. Only the arguments + * that differ are checked to tell the overloads apart (fast dispatch), which + * also keeps each check in a scope of its own so no local hides another. + * + * SWIG still writes these pragmas in the wrapper, and no SWIG setting + * removes them. None of them changes this build: + * - GCC "-Wregister", around Python.h only, for Python 2.7 headers. The + * Python headers this package builds with use register only for GNU + * explicit register variables, which -Wregister does not report. + * - Intel compiler warning 592, for the Intel compiler only. + * - GCC "-Wdeprecated" and "-Wdeprecated-declarations", and MSVC 4996, + * around PyObject_AsReadBuffer, only when SWIG_PYTHON_OLD_BUFFER_PROTOCOL + * is defined. This build does not define it. + * ci/native-warnings.Tests.ps1 fails on any other pragma in the wrapper. */ %begin %{ #define SWIG_MSC_UNSUPPRESS_4505 #define SWIG_NO_CRT_SECURE_NO_DEPRECATE diff --git a/ip-intelligence/fiftyone_ipintelligence_onpremise/tests/test_overload_type_error.py b/ip-intelligence/fiftyone_ipintelligence_onpremise/tests/test_overload_type_error.py new file mode 100644 index 00000000..aed5b0c3 --- /dev/null +++ b/ip-intelligence/fiftyone_ipintelligence_onpremise/tests/test_overload_type_error.py @@ -0,0 +1,46 @@ +# ********************************************************************* +# This Original Work is copyright of 51 Degrees Mobile Experts Limited. +# Copyright 2026 51 Degrees Mobile Experts Limited, Davidson House, +# Forbury Square, Reading, Berkshire, United Kingdom RG1 3EU. +# +# This Original Work is licensed under the European Union Public Licence +# (EUPL) v.1.2 and is subject to its terms as set out below. +# +# If a copy of the EUPL was not distributed with this file, You can obtain +# one at https://opensource.org/licenses/EUPL-1.2. +# +# The 'Compatible Licences' set out in the Appendix to the EUPL (as may be +# amended by the European Commission) shall be deemed incompatible for +# the purposes of the Work and the provisions of the compatibility +# clause in Article 5 of the EUPL shall not apply. +# +# If using the Work as, or as part of, a network application, by +# including the attribution notice(s) required under Article 5 of the EUPL +# in the end user terms of the application under an appropriate heading, +# such notice(s) shall fulfill the requirements of that article. +# ********************************************************************* + +"""A call to the engine's overloaded constructor with arguments that match no +overload raises a TypeError that names the constructor, and does not crash +or build an engine. No data file is read.""" + +import unittest + +from fiftyone_ipintelligence_onpremise.IpIntelligenceEngineModule import EngineIpiSwig + + +class TestOverloadTypeError(unittest.TestCase): + + def test_wrong_argument_types_raise_type_error(self): + with self.assertRaises(TypeError) as raised: + EngineIpiSwig(1, 2, 3) + self.assertIn("new_EngineIpiSwig", str(raised.exception)) + + def test_wrong_number_of_arguments_raises_type_error(self): + with self.assertRaises(TypeError) as raised: + EngineIpiSwig("file") + self.assertIn("new_EngineIpiSwig", str(raised.exception)) + + +if __name__ == "__main__": + unittest.main() From fa2f89d85116399452f16a25f542fbfe704120aa Mon Sep 17 00:00:00 2001 From: James Rosewell Date: Tue, 24 Nov 2026 19:30:24 +0000 Subject: [PATCH 3/3] BUILD: Build against cxx rc and give MSVC one warning level The cxx submodule moves from 699a9789 to 98701d9c, the head of the 51degrees-cxx rc branch. Its C and C++ sources build with -Wall -Wextra -Werror and /W4 /WX and turn no warning off, so neither setup.py gives /D_CRT_SECURE_NO_WARNINGS to the cxx sources any more. The wrapper, the C++ and the C now get the same warning options. setuptools gives cl /W3, and with /W4 after it cl printed D9025 on every compile, which /WX does not make an error. On MSVC each setup.py now takes the /W options setuptools gives out of the compiler's options before it builds the libraries and the extension, so /W4 is the only level. Other compilers are unchanged. ci/native-warnings.Tests.ps1 fails on a C runtime deprecation define in either setup.py, on /external:W0 and on a /w1 to /w4 option, and checks that both setup.py files remove the MSVC level for the libraries and the extension. --- ci/native-warnings.Tests.ps1 | 36 ++++++++++++------- cxx | 2 +- .../setup.py | 36 +++++++++++++------ .../setup.py | 36 +++++++++++++------ 4 files changed, 76 insertions(+), 34 deletions(-) diff --git a/ci/native-warnings.Tests.ps1 b/ci/native-warnings.Tests.ps1 index 03d1a91a..9b60f868 100644 --- a/ci/native-warnings.Tests.ps1 +++ b/ci/native-warnings.Tests.ps1 @@ -1,8 +1,9 @@ # Tests that the two on-premise packages build their native code, the SWIG # wrapper, the C++ and the C, with the warnings of -Wall -Wextra and /W4 on and # treated as errors, and that nothing turns a warning off: no -Wno-* or /wd -# flag, no lower warning level, no commented out -Werror or /WX, and no pragma -# in a wrapper other than those SWIG writes and the interface file lists. +# flag, no lower warning level, no C runtime define that turns deprecation +# warnings off, no commented out -Werror or /WX, and no pragma in a wrapper +# other than those SWIG writes and the interface file lists. # setup.py, the interface files and the wrappers are read as text. BeforeDiscovery { @@ -39,11 +40,18 @@ Describe ' native build flags' -ForEach $Packages { It 'turns no warning off and lowers no warning level' { $switches = @($script:Code | Where-Object { - $_ -match "-Wno-|/wd\d|'-w'|'/w'|'/W[0-3]'" + $_ -match "-Wno-|/wd\d|/w[1-4]\d|'-w'|'/w'|'/W[0-3]'|/external:W0" }) $switches | Should -BeNullOrEmpty } + It 'defines nothing that turns off the C runtime deprecation warnings' { + $defines = @($script:Code | Where-Object { + $_ -match '_CRT_SECURE_NO_WARNINGS|(? native build flags' -ForEach $Packages { Get-Count "'/WX'" | Should -BeGreaterOrEqual 3 } - It 'gives the wrapper its own flags' { - Get-Count '^\s*extra_compile_args=extra_compile_args,' | + It 'takes the warning level setuptools gives MSVC out, so /W4 is the only one' { + # cl warns (D9025) when /W4 overrides another level, and /WX does not + # make that an error. + Get-Count '^\s*def remove_msvc_warning_level\(compiler\):' | + Should -Be 1 + Get-Count 'compiler\.compile_options,\s*compiler\.compile_options_debug' | + Should -Be 1 + Get-Count '^\s*remove_msvc_warning_level\(self\.compiler\)' | + Should -Be 2 + Get-Count '^\s*cmdclass=\{"build_ext":\s*NoSuffixBuilder,\s*"build_clib":\s*LibraryBuilder\}' | Should -Be 1 } - It 'gives the C runtime deprecation define to the cxx sources only' { - $define = @($script:Code | - Where-Object { $_ -match '_CRT_SECURE_NO_WARNINGS' }) - $define.Count | Should -Be 1 - $define[0] | Should -Match '^\s*cxx_source_args\s*=\s*\[' - Get-Count "'cflags':\s*extra_compile_args\s*\+\s*cxx_source_args" | - Should -Be 1 - Get-Count "'cflags':\s*cflags\s*\+\s*cxx_source_args" | + It 'gives the wrapper its own flags' { + Get-Count '^\s*extra_compile_args=extra_compile_args,' | Should -Be 1 } } diff --git a/cxx b/cxx index 699a9789..98701d9c 160000 --- a/cxx +++ b/cxx @@ -1 +1 @@ -Subproject commit 699a9789a2b7d523f2bf64f6a46826717c23d34f +Subproject commit 98701d9ce93f9d376fa6e13df13f92f11939124a diff --git a/device-detection/fiftyone_devicedetection_onpremise/setup.py b/device-detection/fiftyone_devicedetection_onpremise/setup.py index 04ec9a59..e0acedbd 100644 --- a/device-detection/fiftyone_devicedetection_onpremise/setup.py +++ b/device-detection/fiftyone_devicedetection_onpremise/setup.py @@ -27,11 +27,13 @@ import platform from setuptools import setup, Extension from setuptools.command import develop +from setuptools.command.build_clib import build_clib from distutils import sysconfig from Cython.Distutils import build_ext from glob import glob import os import io +import re import shutil # Read a text file and return the content as a string. @@ -72,7 +74,28 @@ def get_version(): python_version = str(sys.version_info[0]) return version + python_version +def remove_msvc_warning_level(compiler): + + """Take the warning level that setuptools gives MSVC out of its options, + so /W4 below is the only level. cl warns (D9025) when one level overrides + another, and /WX does not make that warning an error.""" + if compiler.compiler_type != "msvc": + return + if not compiler.initialized: + compiler.initialize() + for options in (compiler.compile_options, compiler.compile_options_debug): + options[:] = [o for o in options if not re.fullmatch(r"/W\d", o)] + +class LibraryBuilder(build_clib): + def build_libraries(self, libraries): + remove_msvc_warning_level(self.compiler) + super().build_libraries(libraries) + class NoSuffixBuilder(build_ext): + def build_extensions(self): + remove_msvc_warning_level(self.compiler) + super().build_extensions() + def get_ext_filename(self, ext_name): filename = super().get_ext_filename(ext_name) suffix = sysconfig.get_config_var('EXT_SUFFIX') @@ -168,13 +191,6 @@ def stage_native_source(): '/WX' ]) -# Given to the cxx C and C++ sources only, not to the wrapper. The cxx sources -# still call C runtime functions that MSVC deprecates (C4996). Remove this -# once they no longer do. -cxx_source_args = [] -if sys.platform == "win32": - cxx_source_args = ['/D_CRT_SECURE_NO_WARNINGS'] - if sys.platform == "linux": extra_link_args.extend([ '-latomic' @@ -207,7 +223,7 @@ def stage_native_source(): # Hash C++ *glob("src/fiftyone_devicedetection_onpremise/cxx/src/dd/hash/*.cpp"), ], - 'cflags': extra_compile_args + cxx_source_args + 'cflags': extra_compile_args }) clib = ('clib', { @@ -219,11 +235,11 @@ def stage_native_source(): # Hash C *glob("src/fiftyone_devicedetection_onpremise/cxx/src/dd/hash/*.c"), ], - 'cflags': cflags + cxx_source_args + 'cflags': cflags }) setup( - cmdclass={"build_ext": NoSuffixBuilder}, + cmdclass={"build_ext": NoSuffixBuilder, "build_clib": LibraryBuilder}, name="fiftyone_devicedetection_onpremise", version=read("version.txt"), author="51Degrees Engineering", diff --git a/ip-intelligence/fiftyone_ipintelligence_onpremise/setup.py b/ip-intelligence/fiftyone_ipintelligence_onpremise/setup.py index dc421099..5770cb16 100644 --- a/ip-intelligence/fiftyone_ipintelligence_onpremise/setup.py +++ b/ip-intelligence/fiftyone_ipintelligence_onpremise/setup.py @@ -27,11 +27,13 @@ import platform from setuptools import setup, Extension from setuptools.command import develop +from setuptools.command.build_clib import build_clib from distutils import sysconfig from Cython.Distutils import build_ext from glob import glob import os import io +import re import shutil # Read a text file and return the content as a string. @@ -72,7 +74,28 @@ def get_version(): python_version = str(sys.version_info[0]) return version + python_version +def remove_msvc_warning_level(compiler): + + """Take the warning level that setuptools gives MSVC out of its options, + so /W4 below is the only level. cl warns (D9025) when one level overrides + another, and /WX does not make that warning an error.""" + if compiler.compiler_type != "msvc": + return + if not compiler.initialized: + compiler.initialize() + for options in (compiler.compile_options, compiler.compile_options_debug): + options[:] = [o for o in options if not re.fullmatch(r"/W\d", o)] + +class LibraryBuilder(build_clib): + def build_libraries(self, libraries): + remove_msvc_warning_level(self.compiler) + super().build_libraries(libraries) + class NoSuffixBuilder(build_ext): + def build_extensions(self): + remove_msvc_warning_level(self.compiler) + super().build_extensions() + def get_ext_filename(self, ext_name): filename = super().get_ext_filename(ext_name) suffix = sysconfig.get_config_var('EXT_SUFFIX') @@ -188,13 +211,6 @@ def stage_native_source(): '/WX' ]) -# Given to the cxx C and C++ sources only, not to the wrapper. The cxx sources -# still call C runtime functions that MSVC deprecates (C4996). Remove this -# once they no longer do. -cxx_source_args = [] -if sys.platform == "win32": - cxx_source_args = ['/D_CRT_SECURE_NO_WARNINGS'] - if sys.platform == "linux": extra_link_args.extend([ '-latomic' @@ -225,7 +241,7 @@ def stage_native_source(): # IP Intelligence C++ *glob("src/fiftyone_ipintelligence_onpremise/cxx/src/ipi/*.cpp"), ], - 'cflags': extra_compile_args + cxx_source_args + 'cflags': extra_compile_args }) clib = ('clib', { @@ -237,11 +253,11 @@ def stage_native_source(): # IP Graph C *glob("src/fiftyone_ipintelligence_onpremise/cxx/src/ipi/graph/*.c"), ], - 'cflags': cflags + cxx_source_args + 'cflags': cflags }) setup( - cmdclass={"build_ext": NoSuffixBuilder}, + cmdclass={"build_ext": NoSuffixBuilder, "build_clib": LibraryBuilder}, name="fiftyone_ipintelligence_onpremise", version=read("version.txt"), author="51Degrees Engineering",