1
0
mirror of https://git.savannah.gnu.org/git/gperf.git synced 2025-12-02 13:09:22 +00:00

Remove the global vectors. Move them to the class Search.

This commit is contained in:
Bruno Haible
2002-11-28 12:56:08 +00:00
parent aca3f4abae
commit c73312f0fd
10 changed files with 65 additions and 96 deletions

View File

@@ -51,7 +51,6 @@ main (int argc, char *argv[])
/* Initialize the key word list. */
KeywordExt_Factory factory;
Input inputter (&factory);
Vectors::ALPHA_SIZE = (option[SEVENBIT] ? 128 : 256);
inputter.read_keys ();
/* We can cast the keyword list to KeywordExt_List* because its list
elements were created by KeywordExt_Factory. */
@@ -72,7 +71,9 @@ main (int argc, char *argv[])
searcher._total_duplicates,
searcher._max_key_len,
searcher._min_key_len,
&searcher);
searcher._alpha_size,
searcher._occurrences,
searcher._asso_values);
outputter.output ();
/* Check for write error on stdout. */