mirror of
https://git.savannah.gnu.org/git/gperf.git
synced 2025-12-02 13:09:22 +00:00
Portability: Use stack-allocated arrays only if the compiler supports them.
This commit is contained in:
@@ -1,5 +1,13 @@
|
||||
2002-12-12 Bruno Haible <bruno@clisp.org>
|
||||
|
||||
* src/configure.in: Add test for stack-allocated variable-size arrays.
|
||||
* src/config.h.in: Regenerated.
|
||||
* src/search.cc: Include config.h.
|
||||
(DYNAMIC_ARRAY, FREE_DYNAMIC_ARRAY): New macros.
|
||||
(Search::find_alpha_inc, Search::count_possible_collisions,
|
||||
Search::find_asso_values): Use them.
|
||||
* src/Makefile.in (search.o): Depend on config.h.
|
||||
|
||||
* src/search.h (Search::keyword_list_length, Search::max_key_length,
|
||||
Search::get_max_keysig_size, Search::prepare): Remove declarations.
|
||||
(Search::prepare): Renamed from Search::preprepare.
|
||||
|
||||
Reference in New Issue
Block a user