rs274: decrease BOOST_PYTHON_MAX_ARITY everywhere

This commit is contained in:
Jeff Epler 2017-12-15 07:14:16 -06:00
parent 6f0f2cafb8
commit 5ad444c642
16 changed files with 24 additions and 0 deletions

View file

@ -6,6 +6,9 @@
#ifndef __array_1_pyplusplus_hpp__ #ifndef __array_1_pyplusplus_hpp__
#define __array_1_pyplusplus_hpp__ #define __array_1_pyplusplus_hpp__
#ifndef BOOST_PYTHON_MAX_ARITY
#define BOOST_PYTHON_MAX_ARITY 4
#endif
#include <boost/python/iterator.hpp> #include <boost/python/iterator.hpp>
#include <boost/python/enum.hpp> #include <boost/python/enum.hpp>
#include <boost/python/object.hpp> #include <boost/python/object.hpp>

View file

@ -16,6 +16,7 @@
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/ */
#define BOOST_PYTHON_MAX_ARITY 13
#include <boost/python/def.hpp> #include <boost/python/def.hpp>
#include <boost/python/module.hpp> #include <boost/python/module.hpp>
#include <boost/python/scope.hpp> #include <boost/python/scope.hpp>

View file

@ -16,6 +16,7 @@
#define _GNU_SOURCE #define _GNU_SOURCE
#endif #endif
#define BOOST_PYTHON_MAX_ARITY 4
#include "python_plugin.hh" #include "python_plugin.hh"
#include <boost/python/dict.hpp> #include <boost/python/dict.hpp>
#include <boost/python/extract.hpp> #include <boost/python/extract.hpp>

View file

@ -12,6 +12,7 @@
* *
********************************************************************/ ********************************************************************/
#define BOOST_PYTHON_MAX_ARITY 4
#include <boost/python/list.hpp> #include <boost/python/list.hpp>
#include <boost/python/tuple.hpp> #include <boost/python/tuple.hpp>
#include <boost/python/dict.hpp> #include <boost/python/dict.hpp>

View file

@ -33,6 +33,7 @@
// this is actually a bug in libgl1-mesa-dri and it looks // this is actually a bug in libgl1-mesa-dri and it looks
// it has been fixed in mesa - 7.10.1-0ubuntu2 // it has been fixed in mesa - 7.10.1-0ubuntu2
#define BOOST_PYTHON_MAX_ARITY 4
#include "python_plugin.hh" #include "python_plugin.hh"
#include "interp_python.hh" #include "interp_python.hh"
#include <boost/python/extract.hpp> #include <boost/python/extract.hpp>

View file

@ -1,5 +1,8 @@
#ifndef RS274NGC_INTERP_PYTHON #ifndef RS274NGC_INTERP_PYTHON
#define RS274NGC_INTERP_PYTHON #define RS274NGC_INTERP_PYTHON
#ifndef BOOST_PYTHON_NAX_ARITY
#define BOOST_PYTHON_MAX_ARITY 4
#endif
#include <boost/python/object.hpp> #include <boost/python/object.hpp>
struct pycontext_impl { struct pycontext_impl {
boost::python::object tupleargs; // the args tuple for Py functions boost::python::object tupleargs; // the args tuple for Py functions

View file

@ -13,6 +13,7 @@
#ifndef _GNU_SOURCE #ifndef _GNU_SOURCE
#define _GNU_SOURCE #define _GNU_SOURCE
#endif #endif
#define BOOST_PYTHON_MAX_ARITY 4
#include "python_plugin.hh" #include "python_plugin.hh"
#include "interp_python.hh" #include "interp_python.hh"
#include <boost/python/list.hpp> #include <boost/python/list.hpp>

View file

@ -17,6 +17,9 @@
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/ */
#ifndef BOOST_PYTHON_NAX_ARITY
#define BOOST_PYTHON_MAX_ARITY 4
#endif
#include <string.h> #include <string.h>
#include "rs274ngc_interp.hh" #include "rs274ngc_interp.hh"
#include <boost/python/object.hpp> #include <boost/python/object.hpp>

View file

@ -20,6 +20,7 @@
// Michael Haberler 7/2011 // Michael Haberler 7/2011
// //
#define BOOST_PYTHON_MAX_ARITY 4
#include <boost/python/class.hpp> #include <boost/python/class.hpp>
#include <boost/python/def.hpp> #include <boost/python/def.hpp>
#include <boost/python/exception_translator.hpp> #include <boost/python/exception_translator.hpp>

View file

@ -15,6 +15,9 @@
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/ */
#ifndef BOOST_PYTHON_NAX_ARITY
#define BOOST_PYTHON_MAX_ARITY 4
#endif
#include <boost/python/list.hpp> #include <boost/python/list.hpp>
struct ParamClass { struct ParamClass {

View file

@ -21,6 +21,7 @@
// (at least in boost 1.55, return_internal_reference needs a definition // (at least in boost 1.55, return_internal_reference needs a definition
// of boost::python::detail::get which comes from detail/caller.hpp. // of boost::python::detail::get which comes from detail/caller.hpp.
// At first sniff it's a boost bug but what can you do...) // At first sniff it's a boost bug but what can you do...)
#define BOOST_PYTHON_MAX_ARITY 4
#include <boost/python/detail/caller.hpp> #include <boost/python/detail/caller.hpp>
#include <boost/python/return_internal_reference.hpp> #include <boost/python/return_internal_reference.hpp>
namespace bp = boost::python; namespace bp = boost::python;

View file

@ -19,6 +19,7 @@
// Michael Haberler 7/2011 // Michael Haberler 7/2011
// //
#define BOOST_PYTHON_MAX_ARITY 4
#include <boost/python/class.hpp> #include <boost/python/class.hpp>
#include <boost/python/suite/indexing/map_indexing_suite.hpp> #include <boost/python/suite/indexing/map_indexing_suite.hpp>
#include <map> #include <map>

View file

@ -19,6 +19,7 @@
// Michael Haberler 7/2011 // Michael Haberler 7/2011
// //
#define BOOST_PYTHON_MAX_ARITY 9
#include <boost/python/class.hpp> #include <boost/python/class.hpp>
#include <boost/python/tuple.hpp> #include <boost/python/tuple.hpp>
namespace bp = boost::python; namespace bp = boost::python;

View file

@ -19,6 +19,7 @@
// Michael Haberler 7/2011 // Michael Haberler 7/2011
// //
#define BOOST_PYTHON_MAX_ARITY 7
#include <boost/python/object.hpp> #include <boost/python/object.hpp>
#include <boost/python/suite/indexing/map_indexing_suite.hpp> #include <boost/python/suite/indexing/map_indexing_suite.hpp>
#include <map> #include <map>

View file

@ -19,6 +19,7 @@
// Michael Haberler 7/2011 // Michael Haberler 7/2011
// //
#define BOOST_PYTHON_MAX_ARITY 4
#include <boost/python/extract.hpp> #include <boost/python/extract.hpp>
#include <boost/python/suite/indexing/map_indexing_suite.hpp> #include <boost/python/suite/indexing/map_indexing_suite.hpp>
#include <map> #include <map>

View file

@ -65,6 +65,7 @@ suppression can produce more concise output. Future versions might
include an option for suppressing superfluous commands. include an option for suppressing superfluous commands.
****************************************************************************/ ****************************************************************************/
#define BOOST_PYTHON_MAX_ARITY 4
#include "python_plugin.hh" #include "python_plugin.hh"
#include <boost/python/dict.hpp> #include <boost/python/dict.hpp>
#include <boost/python/extract.hpp> #include <boost/python/extract.hpp>