@@ -57,7 +57,7 @@ multiply_resolve_descriptors(
5757 "Failed to deallocate string in multiply"); \
5858 return -1; \
5959 } \
60- int is_isnull = npy_load_string (idescr->allocator, ips, &is); \
60+ int is_isnull = npy_string_load (idescr->allocator, ips, &is); \
6161 if (is_isnull == -1) { \
6262 gil_error(PyExc_MemoryError, \
6363 "Failed to load string in multiply"); \
@@ -94,7 +94,7 @@ multiply_resolve_descriptors(
9494 } \
9595 \
9696 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 ); \
9898 if (is_null == -1 ) { \
9999 gil_error (PyExc_MemoryError , \
100100 "Failed to load string in string multiply" ); \
@@ -259,10 +259,10 @@ add_strided_loop(PyArrayMethod_Context *context, char *const data[],
259259 while (N -- ) {
260260 const npy_packed_static_string * ps1 = (npy_packed_static_string * )in1 ;
261261 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 );
263263 const npy_packed_static_string * ps2 = (npy_packed_static_string * )in2 ;
264264 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 );
266266 if (s1_isnull == -1 || s2_isnull == -1 ) {
267267 gil_error (PyExc_MemoryError , "Failed to load string in add" );
268268 return -1 ;
@@ -307,7 +307,7 @@ add_strided_loop(PyArrayMethod_Context *context, char *const data[],
307307
308308 npy_static_string os = {0 , NULL };
309309
310- if (npy_load_string (odescr -> allocator , ops , & os ) < 0 ) {
310+ if (npy_string_load (odescr -> allocator , ops , & os ) < 0 ) {
311311 gil_error (PyExc_MemoryError , "Failed to load string in add" );
312312 };
313313
@@ -442,10 +442,10 @@ string_equal_strided_loop(PyArrayMethod_Context *context, char *const data[],
442442 while (N -- ) {
443443 const npy_packed_static_string * ps1 = (npy_packed_static_string * )in1 ;
444444 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 );
446446 const npy_packed_static_string * ps2 = (npy_packed_static_string * )in2 ;
447447 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 );
449449 if (NPY_UNLIKELY (s1_isnull < 0 || s2_isnull < 0 )) {
450450 gil_error (PyExc_MemoryError , "Failed to load string in equal" );
451451 return -1 ;
@@ -513,10 +513,10 @@ string_not_equal_strided_loop(PyArrayMethod_Context *context,
513513 while (N -- ) {
514514 const npy_packed_static_string * ps1 = (npy_packed_static_string * )in1 ;
515515 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 );
517517 const npy_packed_static_string * ps2 = (npy_packed_static_string * )in2 ;
518518 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 );
520520 if (NPY_UNLIKELY (s1_isnull < 0 || s2_isnull < 0 )) {
521521 gil_error (PyExc_MemoryError , "Failed to load string in not equal" );
522522 return -1 ;
@@ -584,10 +584,10 @@ string_greater_strided_loop(PyArrayMethod_Context *context, char *const data[],
584584 while (N -- ) {
585585 const npy_packed_static_string * ps1 = (npy_packed_static_string * )in1 ;
586586 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 );
588588 const npy_packed_static_string * ps2 = (npy_packed_static_string * )in2 ;
589589 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 );
591591 if (NPY_UNLIKELY (s1_isnull < 0 || s2_isnull < 0 )) {
592592 gil_error (PyExc_MemoryError , "Failed to load string in greater" );
593593 return -1 ;
@@ -653,10 +653,10 @@ string_greater_equal_strided_loop(PyArrayMethod_Context *context,
653653 while (N -- ) {
654654 const npy_packed_static_string * ps1 = (npy_packed_static_string * )in1 ;
655655 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 );
657657 const npy_packed_static_string * ps2 = (npy_packed_static_string * )in2 ;
658658 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 );
660660 if (NPY_UNLIKELY (s1_isnull < 0 || s2_isnull < 0 )) {
661661 gil_error (PyExc_MemoryError ,
662662 "Failed to load string in greater equal" );
@@ -721,10 +721,10 @@ string_less_strided_loop(PyArrayMethod_Context *context, char *const data[],
721721 while (N -- ) {
722722 const npy_packed_static_string * ps1 = (npy_packed_static_string * )in1 ;
723723 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 );
725725 const npy_packed_static_string * ps2 = (npy_packed_static_string * )in2 ;
726726 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 );
728728 if (NPY_UNLIKELY (s1_isnull < 0 || s2_isnull < 0 )) {
729729 gil_error (PyExc_MemoryError , "Failed to load string in less" );
730730 return -1 ;
@@ -789,10 +789,10 @@ string_less_equal_strided_loop(PyArrayMethod_Context *context,
789789 while (N -- ) {
790790 const npy_packed_static_string * ps1 = (npy_packed_static_string * )in1 ;
791791 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 );
793793 const npy_packed_static_string * ps2 = (npy_packed_static_string * )in2 ;
794794 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 );
796796 if (NPY_UNLIKELY (s1_isnull < 0 || s2_isnull < 0 )) {
797797 gil_error (PyExc_MemoryError ,
798798 "Failed to load string in less equal" );
0 commit comments