Author: christian.heimes
Date: Wed Nov 28 11:05:53 2007
New Revision: 59214

Modified:
   python/branches/py3k/Modules/_csv.c
   python/branches/py3k/Modules/pyexpat.c
Log:
Fixed #1508 Removal of stale code in _csv.c / pyexpat.c
Credits belong to Joseph Armbruster

Modified: python/branches/py3k/Modules/_csv.c
==============================================================================
--- python/branches/py3k/Modules/_csv.c (original)
+++ python/branches/py3k/Modules/_csv.c Wed Nov 28 11:05:53 2007
@@ -17,50 +17,6 @@
 #include "Python.h"
 #include "structmember.h"
 
-
-/* begin 2.2 compatibility macros */
-#ifndef PyDoc_STRVAR
-/* Define macros for inline documentation. */
-#define PyDoc_VAR(name) static char name[]
-#define PyDoc_STRVAR(name,str) PyDoc_VAR(name) = PyDoc_STR(str)
-#ifdef WITH_DOC_STRINGS
-#define PyDoc_STR(str) str
-#else
-#define PyDoc_STR(str) ""
-#endif
-#endif /* ifndef PyDoc_STRVAR */
-
-#ifndef PyMODINIT_FUNC
-#      if defined(__cplusplus)
-#              define PyMODINIT_FUNC extern "C" void
-#      else /* __cplusplus */
-#              define PyMODINIT_FUNC void
-#      endif /* __cplusplus */
-#endif
-
-#ifndef Py_CLEAR
-#define Py_CLEAR(op)                                           \
-       do {                                                    \
-               if (op) {                                       \
-                       PyObject *tmp = (PyObject *)(op);       \
-                       (op) = NULL;                            \
-                       Py_DECREF(tmp);                         \
-               }                                               \
-       } while (0)
-#endif
-#ifndef Py_VISIT
-#define Py_VISIT(op)                                                   \
-        do {                                                           \
-                if (op) {                                              \
-                        int vret = visit((PyObject *)(op), arg);       \
-                        if (vret)                                      \
-                                return vret;                           \
-                }                                                      \
-        } while (0)
-#endif
-
-/* end 2.2 compatibility macros */
-
 #define IS_BASESTRING(o) \
        PyUnicode_Check(o)
 

Modified: python/branches/py3k/Modules/pyexpat.c
==============================================================================
--- python/branches/py3k/Modules/pyexpat.c      (original)
+++ python/branches/py3k/Modules/pyexpat.c      Wed Nov 28 11:05:53 2007
@@ -8,20 +8,6 @@
 
 #define XML_COMBINED_VERSION 
(10000*XML_MAJOR_VERSION+100*XML_MINOR_VERSION+XML_MICRO_VERSION)
 
-#ifndef PyDoc_STRVAR
-
-/*
- * fdrake says:
- * Don't change the PyDoc_STR macro definition to (str), because
- * '''the parentheses cause compile failures
- * ("non-constant static initializer" or something like that)
- * on some platforms (Irix?)'''
- */
-#define PyDoc_STR(str)         str
-#define PyDoc_VAR(name)        static char name[]
-#define PyDoc_STRVAR(name,str) PyDoc_VAR(name) = PyDoc_STR(str)
-#endif
-
 #define FIX_TRACE
 
 enum HandlerTypes {
_______________________________________________
Python-3000-checkins mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000-checkins

Reply via email to