summaryrefslogtreecommitdiff
path: root/src/options.h
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2003-04-07 09:50:11 +0000
committerBruno Haible <bruno@clisp.org>2003-04-07 09:50:11 +0000
commit2535f34494011d57d9603d6e44604d357f83a4b0 (patch)
treeb64db3a05de58cdd2af82157b5218a13fd318b83 /src/options.h
parentec3d1127fa7742bd291bfe039fd76b4d2381da6f (diff)
downloadgperf-2535f34494011d57d9603d6e44604d357f83a4b0.tar.gz
Move the handling of ALLCHARS (-k'*') into the Positions class.
Diffstat (limited to 'src/options.h')
-rw-r--r--src/options.h14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/options.h b/src/options.h
index 7eb7fe1..0bde55c 100644
--- a/src/options.h
+++ b/src/options.h
@@ -96,22 +96,19 @@ enum Option_Type
/* Use the given key positions. */
POSITIONS = 1 << 16,
- /* Use all characters in hash function. */
- ALLCHARS = 1 << 17,
-
/* Handle duplicate hash values for keywords. */
- DUP = 1 << 18,
+ DUP = 1 << 17,
/* Don't include keyword length in hash computations. */
- NOLENGTH = 1 << 19,
+ NOLENGTH = 1 << 18,
/* Randomly initialize the associated values table. */
- RANDOM = 1 << 20,
+ RANDOM = 1 << 19,
/* --- Informative output --- */
/* Enable debugging (prints diagnostics to stderr). */
- DEBUG = 1 << 21
+ DEBUG = 1 << 20
};
/* Class manager for gperf program Options. */
@@ -197,8 +194,7 @@ public:
/* Sets the delimiters string, if not already set. */
void set_delimiters (const char *delimiters);
- /* Returns key positions.
- Only to be used if !options[ALLCHARS]. */
+ /* Returns key positions. */
const Positions& get_key_positions () const;
private: