diff options
Diffstat (limited to 'Lib/python')
-rw-r--r-- | Lib/python/director.swg | 1 | ||||
-rw-r--r-- | Lib/python/pycontainer.swg | 4 | ||||
-rw-r--r-- | Lib/python/pyrun.swg | 6 |
3 files changed, 4 insertions, 7 deletions
diff --git a/Lib/python/director.swg b/Lib/python/director.swg index 50f735a89..90c58c107 100644 --- a/Lib/python/director.swg +++ b/Lib/python/director.swg @@ -62,7 +62,6 @@ */ # ifndef SWIG_DIRECTOR_RTDIR # define SWIG_DIRECTOR_RTDIR -#include <map> namespace Swig { class Director; diff --git a/Lib/python/pycontainer.swg b/Lib/python/pycontainer.swg index d4386622e..dcada87c7 100644 --- a/Lib/python/pycontainer.swg +++ b/Lib/python/pycontainer.swg @@ -32,9 +32,7 @@ /**** The PySequence C++ Wrap ***/ -%insert(header) %{ -#include <stdexcept> -%} +%fragment("<stdexcept>"); %include <std_except.i> diff --git a/Lib/python/pyrun.swg b/Lib/python/pyrun.swg index 53fc3a75b..a713486d1 100644 --- a/Lib/python/pyrun.swg +++ b/Lib/python/pyrun.swg @@ -175,7 +175,7 @@ SWIG_Python_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssi } if (!PyTuple_Check(args)) { if (min <= 1 && max >= 1) { - register int i; + int i; objs[0] = args; for (i = 1; i < max; ++i) { objs[i] = 0; @@ -185,7 +185,7 @@ SWIG_Python_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssi PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple"); return 0; } else { - register Py_ssize_t l = PyTuple_GET_SIZE(args); + Py_ssize_t l = PyTuple_GET_SIZE(args); if (l < min) { PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", name, (min == max ? "" : "at least "), (int)min, (int)l); @@ -195,7 +195,7 @@ SWIG_Python_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssi name, (min == max ? "" : "at most "), (int)max, (int)l); return 0; } else { - register int i; + int i; for (i = 0; i < l; ++i) { objs[i] = PyTuple_GET_ITEM(args, i); } |