Commit e0947cfe authored by Barry Warsaw's avatar Barry Warsaw

New global variables: PyExc_EnvironmentError and PyExc_OSError

New function: PyErr_SetFromErrnoWithFilename(PyObject* char*)
parent b09d7dd1
...@@ -62,7 +62,9 @@ extern DL_IMPORT(PyObject *) PyExc_AssertionError; ...@@ -62,7 +62,9 @@ extern DL_IMPORT(PyObject *) PyExc_AssertionError;
extern DL_IMPORT(PyObject *) PyExc_AttributeError; extern DL_IMPORT(PyObject *) PyExc_AttributeError;
extern DL_IMPORT(PyObject *) PyExc_EOFError; extern DL_IMPORT(PyObject *) PyExc_EOFError;
extern DL_IMPORT(PyObject *) PyExc_FloatingPointError; extern DL_IMPORT(PyObject *) PyExc_FloatingPointError;
extern DL_IMPORT(PyObject *) PyExc_EnvironmentError;
extern DL_IMPORT(PyObject *) PyExc_IOError; extern DL_IMPORT(PyObject *) PyExc_IOError;
extern DL_IMPORT(PyObject *) PyExc_OSError;
extern DL_IMPORT(PyObject *) PyExc_ImportError; extern DL_IMPORT(PyObject *) PyExc_ImportError;
extern DL_IMPORT(PyObject *) PyExc_IndexError; extern DL_IMPORT(PyObject *) PyExc_IndexError;
extern DL_IMPORT(PyObject *) PyExc_KeyError; extern DL_IMPORT(PyObject *) PyExc_KeyError;
...@@ -86,6 +88,7 @@ extern DL_IMPORT(PyObject *) PyExc_MemoryErrorInst; ...@@ -86,6 +88,7 @@ extern DL_IMPORT(PyObject *) PyExc_MemoryErrorInst;
extern int PyErr_BadArgument Py_PROTO((void)); extern int PyErr_BadArgument Py_PROTO((void));
extern PyObject *PyErr_NoMemory Py_PROTO((void)); extern PyObject *PyErr_NoMemory Py_PROTO((void));
extern PyObject *PyErr_SetFromErrno Py_PROTO((PyObject *)); extern PyObject *PyErr_SetFromErrno Py_PROTO((PyObject *));
extern PyObject *PyErr_SetFromErrnoWithFilename Py_PROTO((PyObject *, char *));
extern PyObject *PyErr_Format Py_PROTO((PyObject *, const char *, ...)); extern PyObject *PyErr_Format Py_PROTO((PyObject *, const char *, ...));
extern void PyErr_BadInternalCall Py_PROTO((void)); extern void PyErr_BadInternalCall Py_PROTO((void));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment