@@ -5276,13 +5276,10 @@ SWIGINTERN PyObject *_wrap_BasicIo_read__SWIG_1(PyObject *self, PyObject *args)
52765276 void *argp1 = 0 ;
52775277 int res1 = 0 ;
52785278 Py_buffer _global_buff ;
5279- long val3 ;
5280- int ecode3 = 0 ;
52815279 PyObject * obj1 = 0 ;
5282- PyObject * obj2 = 0 ;
52835280 long result;
52845281
5285- if (!PyArg_UnpackTuple (args, " BasicIo_read" , 2 , 2 , &obj1, &obj2 )) SWIG_fail;
5282+ if (!PyArg_UnpackTuple (args, " BasicIo_read" , 1 , 1 , &obj1)) SWIG_fail;
52865283 res1 = SWIG_ConvertPtr (self, &argp1,SWIGTYPE_p_Exiv2__BasicIo, 0 | 0 );
52875284 if (!SWIG_IsOK (res1)) {
52885285 SWIG_exception_fail (SWIG_ArgError (res1), " in method '" " BasicIo_read" " ', argument " " 1" " of type '" " Exiv2::BasicIo *" " '" );
@@ -5297,23 +5294,13 @@ SWIGINTERN PyObject *_wrap_BasicIo_read__SWIG_1(PyObject *self, PyObject *args)
52975294 ;
52985295 }
52995296 arg2 = (Exiv2::byte *) _global_buff.buf ;
5297+ arg3 = (long ) _global_buff.len ;
53005298 }
5301- ecode3 = SWIG_AsVal_long (obj2, &val3);
5302- if (!SWIG_IsOK (ecode3)) {
5303- SWIG_exception_fail (SWIG_ArgError (ecode3), " in method '" " BasicIo_read" " ', argument " " 3" " of type '" " long" " '" );
5304- }
5305- arg3 = static_cast < long >(val3);
53065299 {
53075300#ifndef NO_RELEASE_BasicIo_read
53085301 release_views (self);
53095302#endif
53105303 }
5311- {
5312- if (arg3 > (long ) _global_buff.len ) {
5313- SWIG_exception_fail (SWIG_ArgError (SWIG_ValueError), " in method '" " BasicIo_read" " ', argument " " 2" " of type '" " buffer too small" " '" )
5314- ;
5315- }
5316- }
53175304 {
53185305 PyErr_WarnEx (PyExc_DeprecationWarning,
53195306 " Python scripts should not need to call " " Exiv2::BasicIo::read" , 1 );
@@ -5349,7 +5336,7 @@ SWIGINTERN PyObject *_wrap_BasicIo_read__SWIG_1(PyObject *self, PyObject *args)
53495336
53505337SWIGINTERN PyObject *_wrap_BasicIo_read (PyObject *self, PyObject *args) {
53515338 Py_ssize_t argc;
5352- PyObject *argv[4 ] = {
5339+ PyObject *argv[3 ] = {
53535340 0
53545341 };
53555342 Py_ssize_t ii;
@@ -5358,16 +5345,24 @@ SWIGINTERN PyObject *_wrap_BasicIo_read(PyObject *self, PyObject *args) {
53585345 if (!PyTuple_Check (args)) SWIG_fail;
53595346 argc = PyObject_Length (args);
53605347 argv[0 ] = self;
5361- for (ii = 0 ; (ii < 2 ) && (ii < argc); ii++) {
5348+ for (ii = 0 ; (ii < 1 ) && (ii < argc); ii++) {
53625349 argv[ii + 1 ] = PyTuple_GET_ITEM (args,ii);
53635350 }
53645351 argc++;
53655352 if (argc == 2 ) {
5366- PyObject *retobj = _wrap_BasicIo_read__SWIG_0 (self, args);
5367- if (!SWIG_Python_TypeErrorOccurred (retobj)) return retobj;
5368- SWIG_fail;
5353+ int _v = 0 ;
5354+ {
5355+ {
5356+ int res = SWIG_AsVal_long (argv[1 ], NULL );
5357+ _v = SWIG_CheckState (res);
5358+ }
5359+ }
5360+ if (!_v) goto check_1;
5361+ return _wrap_BasicIo_read__SWIG_0 (self, args);
53695362 }
5370- if (argc == 3 ) {
5363+ check_1:
5364+
5365+ if (argc == 2 ) {
53715366 PyObject *retobj = _wrap_BasicIo_read__SWIG_1 (self, args);
53725367 if (!SWIG_Python_TypeErrorOccurred (retobj)) return retobj;
53735368 SWIG_fail;
0 commit comments