summaryrefslogtreecommitdiffstats
path: root/Include/pyerrors.h
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2000-02-17 15:17:18 (GMT)
committerGuido van Rossum <guido@python.org>2000-02-17 15:17:18 (GMT)
commitdb0c9f7f5b3b9a9ef25a2000ce35d7f13b7f848a (patch)
tree76020ea2d32c4c914a75950195411a27200df37b /Include/pyerrors.h
parent1efac337556555399fbffffde4dc04709bc63aac (diff)
downloadcpython-db0c9f7f5b3b9a9ef25a2000ce35d7f13b7f848a.zip
cpython-db0c9f7f5b3b9a9ef25a2000ce35d7f13b7f848a.tar.gz
cpython-db0c9f7f5b3b9a9ef25a2000ce35d7f13b7f848a.tar.bz2
Declarations related to new WindowsError exception.
Diffstat (limited to 'Include/pyerrors.h')
-rw-r--r--Include/pyerrors.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/Include/pyerrors.h b/Include/pyerrors.h
index becaabd..34ac78c 100644
--- a/Include/pyerrors.h
+++ b/Include/pyerrors.h
@@ -81,6 +81,9 @@ extern DL_IMPORT(PyObject *) PyExc_TypeError;
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_NoMemory Py_PROTO((void));
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));