summaryrefslogtreecommitdiffstats
path: root/Modules/_csv.c
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2007-11-28 10:05:53 (GMT)
committerChristian Heimes <christian@cheimes.de>2007-11-28 10:05:53 (GMT)
commit218a5ed7d032c3e03a3e99b31612a667388c2653 (patch)
tree45bea2686e4031dd64499917ef397484f4921e08 /Modules/_csv.c
parent69a79638adc180e9c29f2171448326262e249761 (diff)
downloadcpython-218a5ed7d032c3e03a3e99b31612a667388c2653.zip
cpython-218a5ed7d032c3e03a3e99b31612a667388c2653.tar.gz
cpython-218a5ed7d032c3e03a3e99b31612a667388c2653.tar.bz2
Fixed #1508 Removal of stale code in _csv.c / pyexpat.c
Credits belong to Joseph Armbruster
Diffstat (limited to 'Modules/_csv.c')
-rw-r--r--Modules/_csv.c44
1 files changed, 0 insertions, 44 deletions
diff --git a/Modules/_csv.c b/Modules/_csv.c
index 596d5c2..7936597 100644
--- a/Modules/_csv.c
+++ b/Modules/_csv.c
@@ -17,50 +17,6 @@ module instead.
#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)