Skip to content

Commit 66e6ea7

Browse files
author
fengluo
committed
revert the name changing
1 parent e23b495 commit 66e6ea7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

numpy/_core/src/umath/string_fastsearch.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,7 @@ factorize(CheckedIndexer<char_type> needle,
630630
* @tparam char_type Type of the characters in the string.
631631
*/
632632
template <typename char_type>
633-
struct search_prep_data {
633+
struct prework {
634634
CheckedIndexer<char_type> needle; ///< Indexer for the needle (substring).
635635
Py_ssize_t len_needle; ///< Length of the needle.
636636
Py_ssize_t cut; ///< Critical factorization cut point.
@@ -660,7 +660,7 @@ struct search_prep_data {
660660
template <typename char_type>
661661
static void
662662
preprocess(CheckedIndexer<char_type> needle, Py_ssize_t len_needle,
663-
search_prep_data<char_type> *p)
663+
prework<char_type> *p)
664664
{
665665
// Store the needle and its length, find the cut point and period.
666666
p->needle = needle;
@@ -743,7 +743,7 @@ preprocess(CheckedIndexer<char_type> needle, Py_ssize_t len_needle,
743743
template <typename char_type>
744744
static Py_ssize_t
745745
two_way(CheckedIndexer<char_type> haystack, Py_ssize_t len_haystack,
746-
search_prep_data<char_type> *p)
746+
prework<char_type> *p)
747747
{
748748
// Initialize key variables for search.
749749
const Py_ssize_t len_needle = p->len_needle;
@@ -901,7 +901,7 @@ two_way_find(CheckedIndexer<char_type> haystack, Py_ssize_t len_haystack,
901901
CheckedIndexer<char_type> needle, Py_ssize_t len_needle)
902902
{
903903
LOG("###### Finding \"%s\" in \"%s\".\n", needle, haystack);
904-
search_prep_data<char_type> p;
904+
prework<char_type> p;
905905
preprocess(needle, len_needle, &p);
906906
return two_way(haystack, len_haystack, &p);
907907
}
@@ -931,7 +931,7 @@ two_way_count(CheckedIndexer<char_type> haystack, Py_ssize_t len_haystack,
931931
Py_ssize_t max_count)
932932
{
933933
LOG("###### Counting \"%s\" in \"%s\".\n", needle, haystack);
934-
search_prep_data<char_type> p;
934+
prework<char_type> p;
935935
preprocess(needle, len_needle, &p);
936936
Py_ssize_t index = 0, count = 0;
937937
while (1) {

0 commit comments

Comments
 (0)