diff options
author | Bruno Haible <bruno@clisp.org> | 2002-11-28 12:56:08 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2002-11-28 12:56:08 +0000 |
commit | c73312f0fd69fe47b957af8e91d45738f4a6c371 (patch) | |
tree | da95b17a86f64b0c1f2769e9af9cda04b3f8da28 /src/output.h | |
parent | aca3f4abae4013e48b2f407d92cdb17f54ffbf06 (diff) | |
download | gperf-c73312f0fd69fe47b957af8e91d45738f4a6c371.tar.gz |
Remove the global vectors. Move them to the class Search.
Diffstat (limited to 'src/output.h')
-rw-r--r-- | src/output.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/output.h b/src/output.h index 4dd5ee4..b705cb4 100644 --- a/src/output.h +++ b/src/output.h @@ -27,7 +27,6 @@ #define output_h 1 #include "keyword-list.h" -#include "vectors.h" /* OSF/1 cxx needs these forward declarations. */ struct Output_Constants; @@ -36,7 +35,7 @@ struct Output_Compare; class Output { public: - Output (KeywordExt_List *head, const char *array_type, const char *return_type, const char *struct_tag, bool additional_code, const char *include_src, int total_keys, int total_duplicates, int max_key_len, int min_key_len, Vectors *v); + Output (KeywordExt_List *head, const char *array_type, const char *return_type, const char *struct_tag, bool additional_code, const char *include_src, int total_keys, int total_duplicates, int max_key_len, int min_key_len, int alpha_size, const int *occurrences, const int *asso_values); void output (); private: void compute_min_max (); @@ -75,7 +74,12 @@ private: int _min_hash_value; /* Maximum hash value for all keywords. */ int _max_hash_value; - Vectors * _v; + /* Size of alphabet. */ + int const _alpha_size; + /* Counts occurrences of each key set character. */ + const int * const _occurrences; + /* Value associated with each character. */ + const int * const _asso_values; }; #endif |