1
0
mirror of https://git.savannah.gnu.org/git/gperf.git synced 2025-12-02 21:19:24 +00:00

Continuing rework.

This commit is contained in:
Bruno Haible
2003-01-06 11:43:41 +00:00
parent 72a3884ff9
commit b91e4511c0
3 changed files with 59 additions and 37 deletions

View File

@@ -53,12 +53,22 @@ private:
/* Reorders the keyword list so as to minimize search times. */
void reorder ();
/* Returns the length of keyword list. */
int keyword_list_length ();
/* Returns the maximum length of keywords. */
int max_key_length ();
/* Returns the number of key positions. */
int get_max_keysig_size ();
int hash (KeywordExt *key_node);
static int compute_disjoint_union (const unsigned char *set_1, int size_1, const unsigned char *set_2, int size_2, unsigned char *set_3);
void sort_set (unsigned char *union_set, int len);
/* Computes a keyword's hash value, relative to the current _asso_values[],
and stores it in keyword->_hash_value. */
int compute_hash (KeywordExt *key_node);
/* Sorts the given set in increasing frequency of _occurrences[]. */
void sort_by_occurrence (unsigned char *set, int len);
bool affects_prev (unsigned char c, KeywordExt *curr);
void change (KeywordExt *prior, KeywordExt *curr);
void sort ();