summaryrefslogtreecommitdiff
path: root/Include
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2000-09-23 03:24:27 +0000
committerFred Drake <fdrake@acm.org>2000-09-23 03:24:27 +0000
commit097aff056be61dc07f1ef1f9e955d2d7f2a18f09 (patch)
treee29675697a013661ab13ec701dc4afc0cc62f728 /Include
parent4d5313c40eb5bc6c647495d1e78ba2252abb2717 (diff)
downloadcpython-097aff056be61dc07f1ef1f9e955d2d7f2a18f09.tar.gz
Andrew Kuchling <akuchlin@mems-exchange.org>:
Add three new convenience functions to the PyModule_*() family: PyModule_AddObject(), PyModule_AddIntConstant(), PyModule_AddStringConstant(). This closes SourceForge patch #101233.
Diffstat (limited to 'Include')
-rw-r--r--Include/modsupport.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Include/modsupport.h b/Include/modsupport.h
index a678257aac..54c7addf41 100644
--- a/Include/modsupport.h
+++ b/Include/modsupport.h
@@ -18,6 +18,10 @@ extern DL_IMPORT(PyObject *) Py_BuildValue(char *, ...);
extern DL_IMPORT(int) PyArg_VaParse(PyObject *, char *, va_list);
extern DL_IMPORT(PyObject *) Py_VaBuildValue(char *, va_list);
+extern DL_IMPORT(int) PyModule_AddObject(PyObject *, char *, PyObject *);
+extern DL_IMPORT(int) PyModule_AddIntConstant(PyObject *, char *, long);
+extern DL_IMPORT(int) PyModule_AddStringConstant(PyObject *, char *, char *);
+
#define PYTHON_API_VERSION 1009
#define PYTHON_API_STRING "1009"
/* The API version is maintained (independently from the Python version)