diff options
author | Fred Drake <fdrake@acm.org> | 2000-09-23 03:24:27 +0000 |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2000-09-23 03:24:27 +0000 |
commit | 9e2851566c0dd1d27d29ead8988f4cc3ae295ca1 (patch) | |
tree | 0e35fe3b2d9b2ccbc82acdc1b41ea445580c3b66 /Include/modsupport.h | |
parent | f84fb660cbd7f66bacf2e58dbafd950f43f6e216 (diff) | |
download | cpython-git-9e2851566c0dd1d27d29ead8988f4cc3ae295ca1.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/modsupport.h')
-rw-r--r-- | Include/modsupport.h | 4 |
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) |