From 836845324938621593a0096cad2aa1a29b72ed51 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Wed, 17 Mar 1999 18:44:39 +0000 Subject: Add DLL level b/w compat for PySequence_In and PyEval_CallObject --- Include/abstract.h | 6 ++++++ Include/ceval.h | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/Include/abstract.h b/Include/abstract.h index a4b1bc3..0d6744d 100644 --- a/Include/abstract.h +++ b/Include/abstract.h @@ -754,6 +754,12 @@ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/ */ DL_IMPORT(int) PySequence_Contains Py_PROTO((PyObject *o, PyObject *value)); + +/* For DLL-level backwards compatibility */ +#undef PySequence_In + DL_IMPORT(int) PySequence_In Py_PROTO((PyObject *o, PyObject *value)); + +/* For source-level backwards compatibility */ #define PySequence_In PySequence_Contains /* diff --git a/Include/ceval.h b/Include/ceval.h index 5b96d9e..8200e3c 100644 --- a/Include/ceval.h +++ b/Include/ceval.h @@ -40,6 +40,10 @@ PERFORMANCE OF THIS SOFTWARE. DL_IMPORT(PyObject *) PyEval_CallObjectWithKeywords Py_PROTO((PyObject *, PyObject *, PyObject *)); +/* DLL-level Backwards compatibility: */ +#undef PyEval_CallObject +DL_IMPORT(PyObject *) PyEval_CallObject Py_PROTO((PyObject *, PyObject *)); + /* Inline this */ #define PyEval_CallObject(func,arg) \ PyEval_CallObjectWithKeywords(func, arg, (PyObject *)NULL) -- cgit v0.12