summaryrefslogtreecommitdiff
path: root/src/output.h
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2003-02-11 11:09:27 +0000
committerBruno Haible <bruno@clisp.org>2003-02-11 11:09:27 +0000
commit810fef43aebd9cd1d58d9a6a412c49835d3e8471 (patch)
treee00cbf3d2754cfbdfa69af299f91b21fe7e8e326 /src/output.h
parent6202aaadb1a2904f456c2ee55623bf4a1a951ad7 (diff)
downloadgperf-810fef43aebd9cd1d58d9a6a412c49835d3e8471.tar.gz
When the option -k is not given, the default key positions are now computed
depending on the set of keywords.
Diffstat (limited to 'src/output.h')
-rw-r--r--src/output.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/output.h b/src/output.h
index d9756ab..e141645 100644
--- a/src/output.h
+++ b/src/output.h
@@ -27,6 +27,7 @@
#define output_h 1
#include "keyword-list.h"
+#include "options.h"
/* OSF/1 cxx needs these forward declarations. */
struct Output_Constants;
@@ -48,8 +49,9 @@ public:
const char *verbatim_code_end,
unsigned int verbatim_code_lineno,
int total_keys,
- int total_duplicates,
int max_key_len, int min_key_len,
+ const Positions& positions,
+ int total_duplicates,
int alpha_size,
const int *occurrences,
const int *asso_values);
@@ -113,12 +115,14 @@ private:
unsigned int const _verbatim_code_lineno;
/* Total number of keys, counting duplicates. */
int const _total_keys;
- /* Total number of duplicate hash values. */
- int const _total_duplicates;
/* Maximum length of the longest keyword. */
int const _max_key_len;
/* Minimum length of the shortest keyword. */
int const _min_key_len;
+ /* Key positions. Only to be used if !options[ALLCHARS]. */
+ Positions const _key_positions;
+ /* Total number of duplicate hash values. */
+ int const _total_duplicates;
/* Minimum hash value for all keywords. */
int _min_hash_value;
/* Maximum hash value for all keywords. */