Mercurial > cpython-lru_cache-weakref
diff Include/pyerrors.h @ 11799:3678dd685867 legacy-trunk
Declarations related to new WindowsError exception.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Thu, 17 Feb 2000 15:17:18 +0000 |
| parents | 3be935be3781 |
| children | 24199c1b9182 |
line wrap: on
line diff
--- a/Include/pyerrors.h Thu Feb 17 15:12:01 2000 +0000 +++ b/Include/pyerrors.h Thu Feb 17 15:17:18 2000 +0000 @@ -81,6 +81,9 @@ extern DL_IMPORT(PyObject *) PyExc_UnboundLocalError; extern DL_IMPORT(PyObject *) PyExc_ValueError; extern DL_IMPORT(PyObject *) PyExc_ZeroDivisionError; +#ifdef MS_WINDOWS +extern DL_IMPORT(PyObject *) PyExc_WindowsError; +#endif extern DL_IMPORT(PyObject *) PyExc_MemoryErrorInst; @@ -92,6 +95,10 @@ extern DL_IMPORT(PyObject *) PyErr_SetFromErrno Py_PROTO((PyObject *)); extern DL_IMPORT(PyObject *) PyErr_SetFromErrnoWithFilename Py_PROTO((PyObject *, char *)); extern DL_IMPORT(PyObject *) PyErr_Format Py_PROTO((PyObject *, const char *, ...)); +#ifdef MS_WINDOWS +extern DL_IMPORT(PyObject *) PyErr_SetFromWindowsErrWithFilename(int, const char *); +extern DL_IMPORT(PyObject *) PyErr_SetFromWindowsErr(int); +#endif extern DL_IMPORT(void) PyErr_BadInternalCall Py_PROTO((void));
