diff options
author | Bruno Haible <bruno@clisp.org> | 2003-02-11 11:09:27 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2003-02-11 11:09:27 +0000 |
commit | 810fef43aebd9cd1d58d9a6a412c49835d3e8471 (patch) | |
tree | e00cbf3d2754cfbdfa69af299f91b21fe7e8e326 /src/hash-table.cc | |
parent | 6202aaadb1a2904f456c2ee55623bf4a1a951ad7 (diff) | |
download | gperf-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/hash-table.cc')
-rw-r--r-- | src/hash-table.cc | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/src/hash-table.cc b/src/hash-table.cc index a4d2a1b..6928eb6 100644 --- a/src/hash-table.cc +++ b/src/hash-table.cc @@ -89,16 +89,11 @@ Hash_Table::~Hash_Table () { int field_width; - if (option[ALLCHARS]) - { - field_width = 0; - for (int i = _size - 1; i >= 0; i--) - if (_table[i]) - if (field_width < _table[i]->_selchars_length) - field_width = _table[i]->_selchars_length; - } - else - field_width = option.get_max_keysig_size (); + field_width = 0; + for (int i = _size - 1; i >= 0; i--) + if (_table[i]) + if (field_width < _table[i]->_selchars_length) + field_width = _table[i]->_selchars_length; fprintf (stderr, "\ndumping the hash table\n" |