]> granicus.if.org Git - python/commitdiff
Add DLL level b/w compat for PySequence_In and PyEval_CallObject
authorGuido van Rossum <guido@python.org>
Wed, 17 Mar 1999 18:44:39 +0000 (18:44 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 17 Mar 1999 18:44:39 +0000 (18:44 +0000)
Include/abstract.h
Include/ceval.h

index a4b1bc3d656b4fe2f664fc21fe425657d2fdb7c2..0d6744db7c3e2edc1b9a1ac973263bbecc5b3609 100644 (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
 
        /*
index 5b96d9e21eadc57861a8a7ba0cc85c54bce6129e..8200e3cd1b88fbff185daf6af08ce5c15caa189b 100644 (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)