summaryrefslogtreecommitdiff
path: root/src/zope/i18nmessageid/_zope_i18nmessageid_message.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/zope/i18nmessageid/_zope_i18nmessageid_message.c')
-rw-r--r--src/zope/i18nmessageid/_zope_i18nmessageid_message.c37
1 files changed, 0 insertions, 37 deletions
diff --git a/src/zope/i18nmessageid/_zope_i18nmessageid_message.c b/src/zope/i18nmessageid/_zope_i18nmessageid_message.c
index c0107e1..66cd93d 100644
--- a/src/zope/i18nmessageid/_zope_i18nmessageid_message.c
+++ b/src/zope/i18nmessageid/_zope_i18nmessageid_message.c
@@ -14,16 +14,6 @@
#include "Python.h"
-/* Support for Python < 2.6: */
-
-#ifndef Py_TYPE
- #define Py_TYPE(ob) (((PyObject*)(ob))->ob_type)
-#endif
-
-#ifndef PyVarObject_HEAD_INIT
- #define PyVarObject_HEAD_INIT(type, size) \
- PyObject_HEAD_INIT(type) size,
-#endif
#if PY_MAJOR_VERSION >= 3
#define MOD_ERROR_VAL NULL
@@ -31,33 +21,6 @@
#define MOD_ERROR_VAL
#endif
-/* these macros make gc support easier; they are only available in
- Python 2.4 and borrowed from there */
-
-#ifndef Py_CLEAR
-#define Py_CLEAR(op) \
- do { \
- if (op) { \
- PyObject *tmp = (op); \
- (op) = NULL; \
- Py_DECREF(tmp); \
- } \
- } while (0)
-#endif
-
-#ifndef Py_VISIT
-#define Py_VISIT(op) \
- do { \
- if (op) { \
- int vret = visit((op), arg); \
- if (vret) \
- return vret; \
- } \
- } while (0)
-#endif
-
-/* ----------------------------------------------------- */
-
typedef struct {
PyUnicodeObject base;
PyObject *domain;