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

An abstract mergesort function.

This commit is contained in:
Bruno Haible
2003-01-16 12:41:41 +00:00
parent c3467c5302
commit 826e4c8ba1
5 changed files with 123 additions and 95 deletions

View File

@@ -1,3 +1,14 @@
2002-11-05 Bruno Haible <bruno@clisp.org>
* src/keyword-list.h (mergesort_list): New declarations.
* src/keyword-list.cc (Keyword_Comparison): New type.
(merge, mergesort_list): New functions, moved here from search.cc.
* src/search.h (Search::merge, Search::merge_sort): Remove methods.
(Search::_occurrence_sort, Search::_hash_sort): Remove fields.
* src/search.cc (Search::merge, Search::merge_sort): Remove methods.
(greater_by_occurrence, less_by_hash_value): New functions.
(Search::reorder, Search::sort): Use mergesort_list.
2002-11-04 Bruno Haible <bruno@clisp.org>
* src/options.h (Options::_asso_iterations): New field.