@@ -1682,8 +1682,8 @@ the functions that must be implemented for each slot.
1682
1682
1683
1683
.. c :type :: NPY_CASTING (PyArrayMethod_ResolveDescriptors)( \
1684
1684
struct PyArrayMethodObject_tag *method, \
1685
- PyArray_DTypeMeta **dtypes, \
1686
- PyArray_Descr **given_descrs, \
1685
+ PyArray_DTypeMeta *const *dtypes, \
1686
+ PyArray_Descr *const *given_descrs, \
1687
1687
PyArray_Descr **loop_descrs, \
1688
1688
npy_intp *view_offset)
1689
1689
@@ -1857,7 +1857,7 @@ Typedefs for functions that users of the ArrayMethod API can implement are
1857
1857
described below.
1858
1858
1859
1859
.. c:type:: int (PyArrayMethod_TraverseLoop)( \
1860
- void *traverse_context, PyArray_Descr *descr, char *data, \
1860
+ void *traverse_context, const PyArray_Descr *descr, char *data, \
1861
1861
npy_intp size, npy_intp stride, NpyAuxData *auxdata)
1862
1862
1863
1863
A traverse loop working on a single array. This is similar to the general
@@ -1880,7 +1880,7 @@ described below.
1880
1880
passed through in the future (for structured dtypes).
1881
1881
1882
1882
.. c:type:: int (PyArrayMethod_GetTraverseLoop)( \
1883
- void *traverse_context, PyArray_Descr *descr, \
1883
+ void *traverse_context, const PyArray_Descr *descr, \
1884
1884
int aligned, npy_intp fixed_stride, \
1885
1885
PyArrayMethod_TraverseLoop **out_loop, NpyAuxData **out_auxdata, \
1886
1886
NPY_ARRAYMETHOD_FLAGS *flags)
@@ -1920,7 +1920,8 @@ with the rest of the ArrayMethod API.
1920
1920
attempt a new search for a matching loop/promoter.
1921
1921
1922
1922
.. c :type :: int (PyArrayMethod_PromoterFunction)(PyObject *ufunc, \
1923
- PyArray_DTypeMeta *op_dtypes[], PyArray_DTypeMeta *signature[], \
1923
+ PyArray_DTypeMeta *const op_dtypes[], \
1924
+ PyArray_DTypeMeta *const signature[], \
1924
1925
PyArray_DTypeMeta *new_op_dtypes[])
1925
1926
1926
1927
Type of the promoter function, which must be wrapped into a
0 commit comments