Commit 89f9eb5b authored by Serhiy Storchaka's avatar Serhiy Storchaka Committed by GitHub

bpo-29943: Remove the PySlice_GetIndicesEx() macro. (#1050)

parent 5e793217
...@@ -38,11 +38,6 @@ PyAPI_FUNC(int) PySlice_GetIndicesEx(PySliceObject *r, Py_ssize_t length, ...@@ -38,11 +38,6 @@ PyAPI_FUNC(int) PySlice_GetIndicesEx(PySliceObject *r, Py_ssize_t length,
Py_ssize_t *start, Py_ssize_t *stop, Py_ssize_t *start, Py_ssize_t *stop,
Py_ssize_t *step, Py_ssize_t *slicelength); Py_ssize_t *step, Py_ssize_t *slicelength);
#define PySlice_GetIndicesEx(slice, length, start, stop, step, slicelen) ( \
_PySlice_Unpack((PyObject *)(slice), (start), (stop), (step)) < 0 ? \
((*(slicelen) = 0), -1) : \
((*(slicelen) = _PySlice_AdjustIndices((length), (start), (stop), *(step))), \
0))
PyAPI_FUNC(int) _PySlice_Unpack(PyObject *slice, PyAPI_FUNC(int) _PySlice_Unpack(PyObject *slice,
Py_ssize_t *start, Py_ssize_t *stop, Py_ssize_t *step); Py_ssize_t *start, Py_ssize_t *stop, Py_ssize_t *step);
PyAPI_FUNC(Py_ssize_t) _PySlice_AdjustIndices(Py_ssize_t length, PyAPI_FUNC(Py_ssize_t) _PySlice_AdjustIndices(Py_ssize_t length,
......
...@@ -111,11 +111,6 @@ Library ...@@ -111,11 +111,6 @@ Library
- Issue #28925: cPickle now correctly propagates errors when unpickle instances - Issue #28925: cPickle now correctly propagates errors when unpickle instances
of old-style classes. of old-style classes.
C API
-----
- Issue #27867: Function PySlice_GetIndicesEx() is replaced with a macro.
Documentation Documentation
------------- -------------
......
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