summaryrefslogtreecommitdiff
path: root/src/search.h
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2003-04-11 09:10:58 +0000
committerBruno Haible <bruno@clisp.org>2003-04-11 09:10:58 +0000
commitab6f0966b7a74d90cfe036e6b1c2a633e46668f3 (patch)
tree45e00a76b68a20e135c5be054fe54f4ac9740618 /src/search.h
parentf619dea2f545f3e3a0265912249c09f58671cb5e (diff)
downloadgperf-ab6f0966b7a74d90cfe036e6b1c2a633e46668f3.tar.gz
Cleanup the alpha_unify handling code.
Diffstat (limited to 'src/search.h')
-rw-r--r--src/search.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/search.h b/src/search.h
index 17c874c..c098f50 100644
--- a/src/search.h
+++ b/src/search.h
@@ -50,16 +50,19 @@ private:
unsigned int * compute_alpha_unify () const;
/* Initializes each keyword's _selchars array. */
- void init_selchars_tuple (const Positions& positions) const;
+ void init_selchars_tuple (const Positions& positions, const unsigned int *alpha_unify) const;
/* Deletes each keyword's _selchars array. */
void delete_selchars () const;
/* Count the duplicate keywords that occur with a given set of positions. */
- unsigned int count_duplicates_tuple (const Positions& positions) const;
+ unsigned int count_duplicates_tuple (const Positions& positions, const unsigned int *alpha_unify) const;
/* Find good key positions. */
void find_positions ();
+ /* Count the duplicate keywords that occur with the found set of positions. */
+ unsigned int count_duplicates_tuple () const;
+
/* Computes the upper bound on the indices passed to asso_values[]. */
unsigned int compute_alpha_size (const unsigned int *alpha_inc) const;