[Python-checkins] python/dist/src/Include pyerrors.h,2.54,2.55
theller@users.sourceforge.net
theller@users.sourceforge.net
Mon, 29 Jul 2002 07:27:42 -0700
Update of /cvsroot/python/python/dist/src/Include
In directory usw-pr-cvs1:/tmp/cvs-serv15771/Include
Modified Files:
pyerrors.h
Log Message:
New functions for extension writers on Windows:
PyErr_SetExcFromWindowsErr(), PyErr_SetExcFromWindowsErrWithFilename().
Similar to PyErr_SetFromWindowsErrWithFilename() and
PyErr_SetFromWindowsErr(), but they allow to specify
the exception type to raise. Available on Windows.
See SF patch #576458.
Index: pyerrors.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/pyerrors.h,v
retrieving revision 2.54
retrieving revision 2.55
diff -C2 -d -r2.54 -r2.55
*** pyerrors.h 29 May 2002 15:54:54 -0000 2.54
--- pyerrors.h 29 Jul 2002 14:27:40 -0000 2.55
***************
*** 84,87 ****
--- 84,90 ----
extern DL_IMPORT(PyObject *) PyErr_SetFromWindowsErrWithFilename(int, const char *);
extern DL_IMPORT(PyObject *) PyErr_SetFromWindowsErr(int);
+ extern DL_IMPORT(PyObject *) PyErr_SetExcFromWindowsErrWithFilename(
+ PyObject *,int, const char *);
+ extern DL_IMPORT(PyObject *) PyErr_SetExcFromWindowsErr(PyObject *, int);
#endif