mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
gh-127787: Move _PyUnicodeError_GetParams() to the internal C API (#128803)
This commit is contained in:
parent
eefd4a0bc7
commit
24a8d920c1
2 changed files with 9 additions and 6 deletions
|
@ -94,12 +94,6 @@ PyAPI_FUNC(void) _PyErr_ChainExceptions1(PyObject *);
|
||||||
|
|
||||||
/* In exceptions.c */
|
/* In exceptions.c */
|
||||||
|
|
||||||
PyAPI_FUNC(int) _PyUnicodeError_GetParams(
|
|
||||||
PyObject *self,
|
|
||||||
PyObject **obj, Py_ssize_t *objlen,
|
|
||||||
Py_ssize_t *start, Py_ssize_t *end,
|
|
||||||
int as_bytes);
|
|
||||||
|
|
||||||
PyAPI_FUNC(PyObject*) PyUnstable_Exc_PrepReraiseStar(
|
PyAPI_FUNC(PyObject*) PyUnstable_Exc_PrepReraiseStar(
|
||||||
PyObject *orig,
|
PyObject *orig,
|
||||||
PyObject *excs);
|
PyObject *excs);
|
||||||
|
|
|
@ -190,6 +190,15 @@ Py_DEPRECATED(3.12) extern void _PyErr_ChainExceptions(PyObject *, PyObject *, P
|
||||||
PyAPI_DATA(PyTypeObject) _PyExc_IncompleteInputError;
|
PyAPI_DATA(PyTypeObject) _PyExc_IncompleteInputError;
|
||||||
#define PyExc_IncompleteInputError ((PyObject *)(&_PyExc_IncompleteInputError))
|
#define PyExc_IncompleteInputError ((PyObject *)(&_PyExc_IncompleteInputError))
|
||||||
|
|
||||||
|
extern int _PyUnicodeError_GetParams(
|
||||||
|
PyObject *self,
|
||||||
|
PyObject **obj,
|
||||||
|
Py_ssize_t *objlen,
|
||||||
|
Py_ssize_t *start,
|
||||||
|
Py_ssize_t *end,
|
||||||
|
int as_bytes);
|
||||||
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue