1
0
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:
Bruno Haible
2003-04-10 10:26:05 +00:00
parent bfefa088aa
commit f619dea2f5
5 changed files with 61 additions and 6 deletions

View File

@@ -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.