@@ -65,30 +65,6 @@ typedef int (PyUFunc_TypeResolutionFunc)(
6565 PyObject * type_tup ,
6666 PyArray_Descr * * out_dtypes );
6767
68- /*
69- * Legacy loop selector. (This should NOT normally be used and we can expect
70- * that only the `PyUFunc_DefaultLegacyInnerLoopSelector` is ever set).
71- * However, unlike the masked version, it probably still works.
72- *
73- * ufunc: The ufunc object.
74- * dtypes: An array which has been populated with dtypes,
75- * in most cases by the type resolution function
76- * for the same ufunc.
77- * out_innerloop: Should be populated with the correct ufunc inner
78- * loop for the given type.
79- * out_innerloopdata: Should be populated with the void* data to
80- * be passed into the out_innerloop function.
81- * out_needs_api: If the inner loop needs to use the Python API,
82- * should set the to 1, otherwise should leave
83- * this untouched.
84- */
85- typedef int (PyUFunc_LegacyInnerLoopSelectionFunc )(
86- struct _tagPyUFuncObject * ufunc ,
87- PyArray_Descr * * dtypes ,
88- PyUFuncGenericFunction * out_innerloop ,
89- void * * out_innerloopdata ,
90- int * out_needs_api );
91-
9268
9369typedef struct _tagPyUFuncObject {
9470 PyObject_HEAD
@@ -161,13 +137,8 @@ typedef struct _tagPyUFuncObject {
161137 * with the dtypes for the inputs and outputs.
162138 */
163139 PyUFunc_TypeResolutionFunc * type_resolver ;
164- /*
165- * A function which returns an inner loop written for
166- * NumPy 1.6 and earlier ufuncs. This is for backwards
167- * compatibility, and may be NULL if inner_loop_selector
168- * is specified.
169- */
170- PyUFunc_LegacyInnerLoopSelectionFunc * legacy_inner_loop_selector ;
140+ /* Was the legacy loop resolver */
141+ void * reserved2 ;
171142 /*
172143 * This was blocked off to be the "new" inner loop selector in 1.7,
173144 * but this was never implemented. (This is also why the above
@@ -180,7 +151,7 @@ typedef struct _tagPyUFuncObject {
180151 #endif
181152
182153 /* Was previously the `PyUFunc_MaskedInnerLoopSelectionFunc` */
183- void * _always_null_previously_masked_innerloop_selector ;
154+ void * reserved3 ;
184155
185156 /*
186157 * List of flags for each operand when ufunc is called by nditer object.
0 commit comments