Klaus Demo bjoern / 30acea4
Provide PyFile_{Inc,Dec}UseCount and PyVarObject_HEAD_INIT that are missing from Python 2.5 (#34) Jonas Haag 9 years ago
2 changed file(s) with 7 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
0 #define Py_TYPE(ob) (((PyObject*)(ob))->ob_type)
1 #define NOP do{}while(0)
2 #define PyFile_IncUseCount(file) NOP
3 #define PyFile_DecUseCount(file) NOP
4 #define PyVarObject_HEAD_INIT(type, size) PyObject_HEAD_INIT(type) size,
66 #include <stdbool.h>
77 #include <string.h>
88
9 #ifndef Py_TYPE
10 /* Python 2.5 compatibility */
11 # define Py_TYPE(ob) (((PyObject*)(ob))->ob_type)
9 #if PY_MINOR_VERSION < 6
10 # include "25compat.h"
1211 #endif
1312
1413 #define TYPE_ERROR_INNER(what, expected, ...) \