summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
Diffstat (limited to 'Include')
-rw-r--r--Include/modsupport.h3
-rw-r--r--Include/pyport.h2
-rw-r--r--Include/structmember.h3
3 files changed, 6 insertions, 2 deletions
diff --git a/Include/modsupport.h b/Include/modsupport.h
index 761d960..d4dddef 100644
--- a/Include/modsupport.h
+++ b/Include/modsupport.h
@@ -40,7 +40,8 @@ PyAPI_FUNC(PyObject *) Py_VaBuildValue(const char *, va_list);
PyAPI_FUNC(int) PyModule_AddObject(PyObject *, const char *, PyObject *);
PyAPI_FUNC(int) PyModule_AddIntConstant(PyObject *, const char *, long);
PyAPI_FUNC(int) PyModule_AddStringConstant(PyObject *, const char *, const char *);
-
+#define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
+#define PyModule_AddStringMacro(m, c) PyModule_AddStringConstant(m, #c, c)
#define PYTHON_API_VERSION 1013
#define PYTHON_API_STRING "1013"
diff --git a/Include/pyport.h b/Include/pyport.h
index cfc2961..8a92b0e 100644
--- a/Include/pyport.h
+++ b/Include/pyport.h
@@ -389,7 +389,7 @@ extern "C" {
*/
#ifndef Py_IS_FINITE
#ifdef HAVE_FINITE
-#define Py_IS_FINITE(X) finite
+#define Py_IS_FINITE(X) finite(X)
#else
#define Py_IS_FINITE(X) (!Py_IS_INFINITY(X) && !Py_IS_NAN(X))
#endif
diff --git a/Include/structmember.h b/Include/structmember.h
index acdb84e..0b85b2a 100644
--- a/Include/structmember.h
+++ b/Include/structmember.h
@@ -54,6 +54,9 @@ typedef struct PyMemberDef {
/* Added by Jack: strings contained in the structure */
#define T_STRING_INPLACE 13
+/* Added by Lillo: bools contained in the structure (assumed char) */
+#define T_BOOL 14
+
#define T_OBJECT_EX 16 /* Like T_OBJECT, but raises AttributeError
when the value is NULL, instead of
converting to None. */