[Python-checkins] CVS: python/dist/src/Include modsupport.h,2.34,2.35

Fred L. Drake python-dev@python.org
Fri, 22 Sep 2000 20:24:30 -0700


Update of /cvsroot/python/python/dist/src/Include
In directory slayer.i.sourceforge.net:/tmp/cvs-serv1907/Include

Modified Files:
	modsupport.h 
Log Message:

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.


Index: modsupport.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/modsupport.h,v
retrieving revision 2.34
retrieving revision 2.35
diff -C2 -r2.34 -r2.35
*** modsupport.h	2000/09/01 23:29:26	2.34
--- modsupport.h	2000/09/23 03:24:27	2.35
***************
*** 19,22 ****
--- 19,26 ----
  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"