diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2014-01-03 20:36:49 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2014-01-03 20:36:49 (GMT) |
commit | 1c0689c613b61c8944456e78c5b592e3aaa40aba (patch) | |
tree | 7f8bb895da42b257af0ca9cbc2dd13e60abf2186 /Include/pyerrors.h | |
parent | a2924cabaf115169b1629424dbe71ba5a18670da (diff) | |
download | cpython-1c0689c613b61c8944456e78c5b592e3aaa40aba.zip cpython-1c0689c613b61c8944456e78c5b592e3aaa40aba.tar.gz cpython-1c0689c613b61c8944456e78c5b592e3aaa40aba.tar.bz2 |
Issue #19526: Exclude all new API from the stable ABI.
Diffstat (limited to 'Include/pyerrors.h')
-rw-r--r-- | Include/pyerrors.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Include/pyerrors.h b/Include/pyerrors.h index ebc027f..3e92bb6 100644 --- a/Include/pyerrors.h +++ b/Include/pyerrors.h @@ -75,7 +75,9 @@ typedef PyOSErrorObject PyWindowsErrorObject; PyAPI_FUNC(void) PyErr_SetNone(PyObject *); PyAPI_FUNC(void) PyErr_SetObject(PyObject *, PyObject *); +#ifndef Py_LIMITED_API PyAPI_FUNC(void) _PyErr_SetKeyError(PyObject *); +#endif PyAPI_FUNC(void) PyErr_SetString( PyObject *exception, const char *string /* decoded from utf-8 */ @@ -321,16 +323,20 @@ PyAPI_FUNC(void) PyErr_SyntaxLocationEx( const char *filename, /* decoded from the filesystem encoding */ int lineno, int col_offset); +#ifndef Py_LIMITED_API PyAPI_FUNC(void) PyErr_SyntaxLocationObject( PyObject *filename, int lineno, int col_offset); +#endif PyAPI_FUNC(PyObject *) PyErr_ProgramText( const char *filename, /* decoded from the filesystem encoding */ int lineno); +#ifndef Py_LIMITED_API PyAPI_FUNC(PyObject *) PyErr_ProgramTextObject( PyObject *filename, int lineno); +#endif /* The following functions are used to create and modify unicode exceptions from C */ |