Commit cebb58ce authored by Stefan Behnel's avatar Stefan Behnel

minor utility code cleanup to avoid duplication

parent 9817e3ca
...@@ -480,12 +480,11 @@ static CYTHON_INLINE int __Pyx_PyObject_SetSlice( ...@@ -480,12 +480,11 @@ static CYTHON_INLINE int __Pyx_PyObject_SetSlice(
/////////////// SliceObject /////////////// /////////////// SliceObject ///////////////
{{if access == 'Get'}} {{if access == 'Get'}}
static CYTHON_INLINE PyObject* __Pyx_PyObject_GetSlice( static CYTHON_INLINE PyObject* __Pyx_PyObject_GetSlice(PyObject* obj,
PyObject* obj, Py_ssize_t cstart, Py_ssize_t cstop,
{{else}} {{else}}
static CYTHON_INLINE int __Pyx_PyObject_SetSlice( static CYTHON_INLINE int __Pyx_PyObject_SetSlice(PyObject* obj, PyObject* value,
PyObject* obj, PyObject* value, Py_ssize_t cstart, Py_ssize_t cstop,
{{endif}} {{endif}}
Py_ssize_t cstart, Py_ssize_t cstop,
PyObject** _py_start, PyObject** _py_stop, PyObject** _py_slice, PyObject** _py_start, PyObject** _py_stop, PyObject** _py_slice,
int has_cstart, int has_cstop, CYTHON_NCP_UNUSED int wraparound) { int has_cstart, int has_cstop, CYTHON_NCP_UNUSED int wraparound) {
#if CYTHON_COMPILING_IN_CPYTHON #if CYTHON_COMPILING_IN_CPYTHON
......
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