summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 135dc82)
raw | patch | inline | side by side (parent: 135dc82)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sun, 7 Aug 2016 16:03:21 +0000 (18:03 +0200) | ||
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sun, 7 Aug 2016 16:04:55 +0000 (18:04 +0200) |
src/cpython.h | patch | blob | history |
diff --git a/src/cpython.h b/src/cpython.h
index 4f2e83260d0a5b2185e31f89be36e6c2ea52c8cf..070d33af9e61df3a6abe968a223bc5533985f227 100644 (file)
--- a/src/cpython.h
+++ b/src/cpython.h
PyGILState_Release(gil_state);\
}
-/* Python 2.4 has this macro, older versions do not. */
-#ifndef Py_VISIT
-#define Py_VISIT(o) do {\
- int _vret;\
- if ((o) != NULL) {\
- _vret = visit((o), arg);\
- if (_vret != 0)\
- return _vret;\
- }\
-} while (0)
-#endif
-
-/* Python 2.4 has this macro, older versions do not. */
-#ifndef Py_CLEAR
-#define Py_CLEAR(o) do {\
- PyObject *tmp = o;\
- (o) = NULL;\
- Py_XDECREF(tmp);\
-} while (0)
-#endif
-
-/* Python 2.4 has this macro, older versions do not. */
-#ifndef Py_RETURN_NONE
-# define Py_RETURN_NONE return Py_INCREF(Py_None), Py_None
-#endif
-
/* This macro is a shortcut for calls like
* x = PyObject_Repr(x);
* This can't be done like this example because this would leak