Add DLL level b/w compat for PySequence_In and PyEval_CallObject

This commit is contained in:
Guido van Rossum 1999-03-17 18:44:39 +00:00
parent 90fc0a71a5
commit 8368453249
2 changed files with 10 additions and 0 deletions

View File

@ -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
/*

View File

@ -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)