@@ -57,7 +57,7 @@ multiply_resolve_descriptors(
57
57
"Failed to deallocate string in multiply"); \
58
58
return -1; \
59
59
} \
60
- int is_isnull = npy_load_string (idescr->allocator, ips, &is); \
60
+ int is_isnull = npy_string_load (idescr->allocator, ips, &is); \
61
61
if (is_isnull == -1) { \
62
62
gil_error(PyExc_MemoryError, \
63
63
"Failed to load string in multiply"); \
@@ -94,7 +94,7 @@ multiply_resolve_descriptors(
94
94
} \
95
95
\
96
96
npy_static_string os = {0 , NULL }; \
97
- int is_null = npy_load_string (odescr -> allocator , ops , & os ); \
97
+ int is_null = npy_string_load (odescr -> allocator , ops , & os ); \
98
98
if (is_null == -1 ) { \
99
99
gil_error (PyExc_MemoryError , \
100
100
"Failed to load string in string multiply" ); \
@@ -259,10 +259,10 @@ add_strided_loop(PyArrayMethod_Context *context, char *const data[],
259
259
while (N -- ) {
260
260
const npy_packed_static_string * ps1 = (npy_packed_static_string * )in1 ;
261
261
npy_static_string s1 = {0 , NULL };
262
- int s1_isnull = npy_load_string (s1descr -> allocator , ps1 , & s1 );
262
+ int s1_isnull = npy_string_load (s1descr -> allocator , ps1 , & s1 );
263
263
const npy_packed_static_string * ps2 = (npy_packed_static_string * )in2 ;
264
264
npy_static_string s2 = {0 , NULL };
265
- int s2_isnull = npy_load_string (s2descr -> allocator , ps2 , & s2 );
265
+ int s2_isnull = npy_string_load (s2descr -> allocator , ps2 , & s2 );
266
266
if (s1_isnull == -1 || s2_isnull == -1 ) {
267
267
gil_error (PyExc_MemoryError , "Failed to load string in add" );
268
268
return -1 ;
@@ -307,7 +307,7 @@ add_strided_loop(PyArrayMethod_Context *context, char *const data[],
307
307
308
308
npy_static_string os = {0 , NULL };
309
309
310
- if (npy_load_string (odescr -> allocator , ops , & os ) < 0 ) {
310
+ if (npy_string_load (odescr -> allocator , ops , & os ) < 0 ) {
311
311
gil_error (PyExc_MemoryError , "Failed to load string in add" );
312
312
};
313
313
@@ -442,10 +442,10 @@ string_equal_strided_loop(PyArrayMethod_Context *context, char *const data[],
442
442
while (N -- ) {
443
443
const npy_packed_static_string * ps1 = (npy_packed_static_string * )in1 ;
444
444
npy_static_string s1 = {0 , NULL };
445
- int s1_isnull = npy_load_string (descr1 -> allocator , ps1 , & s1 );
445
+ int s1_isnull = npy_string_load (descr1 -> allocator , ps1 , & s1 );
446
446
const npy_packed_static_string * ps2 = (npy_packed_static_string * )in2 ;
447
447
npy_static_string s2 = {0 , NULL };
448
- int s2_isnull = npy_load_string (descr2 -> allocator , ps2 , & s2 );
448
+ int s2_isnull = npy_string_load (descr2 -> allocator , ps2 , & s2 );
449
449
if (NPY_UNLIKELY (s1_isnull < 0 || s2_isnull < 0 )) {
450
450
gil_error (PyExc_MemoryError , "Failed to load string in equal" );
451
451
return -1 ;
@@ -513,10 +513,10 @@ string_not_equal_strided_loop(PyArrayMethod_Context *context,
513
513
while (N -- ) {
514
514
const npy_packed_static_string * ps1 = (npy_packed_static_string * )in1 ;
515
515
npy_static_string s1 = {0 , NULL };
516
- int s1_isnull = npy_load_string (descr1 -> allocator , ps1 , & s1 );
516
+ int s1_isnull = npy_string_load (descr1 -> allocator , ps1 , & s1 );
517
517
const npy_packed_static_string * ps2 = (npy_packed_static_string * )in2 ;
518
518
npy_static_string s2 = {0 , NULL };
519
- int s2_isnull = npy_load_string (descr2 -> allocator , ps2 , & s2 );
519
+ int s2_isnull = npy_string_load (descr2 -> allocator , ps2 , & s2 );
520
520
if (NPY_UNLIKELY (s1_isnull < 0 || s2_isnull < 0 )) {
521
521
gil_error (PyExc_MemoryError , "Failed to load string in not equal" );
522
522
return -1 ;
@@ -584,10 +584,10 @@ string_greater_strided_loop(PyArrayMethod_Context *context, char *const data[],
584
584
while (N -- ) {
585
585
const npy_packed_static_string * ps1 = (npy_packed_static_string * )in1 ;
586
586
npy_static_string s1 = {0 , NULL };
587
- int s1_isnull = npy_load_string (descr1 -> allocator , ps1 , & s1 );
587
+ int s1_isnull = npy_string_load (descr1 -> allocator , ps1 , & s1 );
588
588
const npy_packed_static_string * ps2 = (npy_packed_static_string * )in2 ;
589
589
npy_static_string s2 = {0 , NULL };
590
- int s2_isnull = npy_load_string (descr2 -> allocator , ps2 , & s2 );
590
+ int s2_isnull = npy_string_load (descr2 -> allocator , ps2 , & s2 );
591
591
if (NPY_UNLIKELY (s1_isnull < 0 || s2_isnull < 0 )) {
592
592
gil_error (PyExc_MemoryError , "Failed to load string in greater" );
593
593
return -1 ;
@@ -653,10 +653,10 @@ string_greater_equal_strided_loop(PyArrayMethod_Context *context,
653
653
while (N -- ) {
654
654
const npy_packed_static_string * ps1 = (npy_packed_static_string * )in1 ;
655
655
npy_static_string s1 = {0 , NULL };
656
- int s1_isnull = npy_load_string (descr1 -> allocator , ps1 , & s1 );
656
+ int s1_isnull = npy_string_load (descr1 -> allocator , ps1 , & s1 );
657
657
const npy_packed_static_string * ps2 = (npy_packed_static_string * )in2 ;
658
658
npy_static_string s2 = {0 , NULL };
659
- int s2_isnull = npy_load_string (descr2 -> allocator , ps2 , & s2 );
659
+ int s2_isnull = npy_string_load (descr2 -> allocator , ps2 , & s2 );
660
660
if (NPY_UNLIKELY (s1_isnull < 0 || s2_isnull < 0 )) {
661
661
gil_error (PyExc_MemoryError ,
662
662
"Failed to load string in greater equal" );
@@ -721,10 +721,10 @@ string_less_strided_loop(PyArrayMethod_Context *context, char *const data[],
721
721
while (N -- ) {
722
722
const npy_packed_static_string * ps1 = (npy_packed_static_string * )in1 ;
723
723
npy_static_string s1 = {0 , NULL };
724
- int s1_isnull = npy_load_string (descr1 -> allocator , ps1 , & s1 );
724
+ int s1_isnull = npy_string_load (descr1 -> allocator , ps1 , & s1 );
725
725
const npy_packed_static_string * ps2 = (npy_packed_static_string * )in2 ;
726
726
npy_static_string s2 = {0 , NULL };
727
- int s2_isnull = npy_load_string (descr2 -> allocator , ps2 , & s2 );
727
+ int s2_isnull = npy_string_load (descr2 -> allocator , ps2 , & s2 );
728
728
if (NPY_UNLIKELY (s1_isnull < 0 || s2_isnull < 0 )) {
729
729
gil_error (PyExc_MemoryError , "Failed to load string in less" );
730
730
return -1 ;
@@ -789,10 +789,10 @@ string_less_equal_strided_loop(PyArrayMethod_Context *context,
789
789
while (N -- ) {
790
790
const npy_packed_static_string * ps1 = (npy_packed_static_string * )in1 ;
791
791
npy_static_string s1 = {0 , NULL };
792
- int s1_isnull = npy_load_string (descr1 -> allocator , ps1 , & s1 );
792
+ int s1_isnull = npy_string_load (descr1 -> allocator , ps1 , & s1 );
793
793
const npy_packed_static_string * ps2 = (npy_packed_static_string * )in2 ;
794
794
npy_static_string s2 = {0 , NULL };
795
- int s2_isnull = npy_load_string (descr2 -> allocator , ps2 , & s2 );
795
+ int s2_isnull = npy_string_load (descr2 -> allocator , ps2 , & s2 );
796
796
if (NPY_UNLIKELY (s1_isnull < 0 || s2_isnull < 0 )) {
797
797
gil_error (PyExc_MemoryError ,
798
798
"Failed to load string in less equal" );
0 commit comments