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

Fix the reorder logic.

This commit is contained in:
Bruno Haible
2002-12-31 12:53:17 +00:00
parent 1f70ea5dfd
commit 72a3884ff9
3 changed files with 94 additions and 43 deletions

View File

@@ -1,5 +1,12 @@
2002-11-03 Bruno Haible <bruno@clisp.org>
* src/search.h (Search::clear_determined): New declaration.
* src/search.cc (Search::clear_determined): New method.
(Search::already_determined): Optimize.
(Search::reorder): Even when the next keyword after the current one
is completely determined, move all determined keywords after the
current one.
Compute the occurrences after removal of duplicates, not before.
* src/keyword.h (KeywordExt::init_selchars): Remove occurrences
argument.