From: Serhiy Storchaka Date: Sun, 16 Apr 2017 07:08:47 +0000 (+0300) Subject: bpo-29943: Remove the PySlice_GetIndicesEx() macro. (#1050) X-Git-Tag: v2.7.14rc1~208 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=89f9eb5b192b875c017d37cac16bd514aad9a801;p=thirdparty%2FPython%2Fcpython.git bpo-29943: Remove the PySlice_GetIndicesEx() macro. (#1050) --- diff --git a/Include/sliceobject.h b/Include/sliceobject.h index 71e281852d28..a10cc05f090e 100644 --- a/Include/sliceobject.h +++ b/Include/sliceobject.h @@ -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 *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, Py_ssize_t *start, Py_ssize_t *stop, Py_ssize_t *step); PyAPI_FUNC(Py_ssize_t) _PySlice_AdjustIndices(Py_ssize_t length, diff --git a/Misc/NEWS b/Misc/NEWS index a0908204ee32..f2bd997e5dd5 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -111,11 +111,6 @@ Library - Issue #28925: cPickle now correctly propagates errors when unpickle instances of old-style classes. -C API ------ - -- Issue #27867: Function PySlice_GetIndicesEx() is replaced with a macro. - Documentation -------------