mirror of
https://git.savannah.gnu.org/git/gperf.git
synced 2025-12-02 21:19:24 +00:00
Added --length-table-name option.
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
2004-08-22 Bruno Haible <bruno@clisp.org>
|
||||||
|
|
||||||
|
* tests/Makefile.in (check-lang-syntax): Add test for the
|
||||||
|
--length-table-name option.
|
||||||
|
* tests/test-6.exp: Update.
|
||||||
|
|
||||||
2004-08-21 Bruce Lilly <blilly@erols.com>
|
2004-08-21 Bruce Lilly <blilly@erols.com>
|
||||||
|
|
||||||
* src/input.cc (Input::read_input): Accept length-table-name
|
* src/input.cc (Input::read_input): Accept length-table-name
|
||||||
|
|||||||
@@ -230,6 +230,7 @@ check-lang-syntax : force
|
|||||||
$(VALIDATE) KR-C,C,ANSI-C,C++ -k1,2 $(srcdir)/jstest1.gperf -K key_name
|
$(VALIDATE) KR-C,C,ANSI-C,C++ -k1,2 $(srcdir)/jstest1.gperf -K key_name
|
||||||
$(VALIDATE) KR-C,C,ANSI-C,C++ -k1,2 $(srcdir)/jstest1.gperf -H hash_function_name
|
$(VALIDATE) KR-C,C,ANSI-C,C++ -k1,2 $(srcdir)/jstest1.gperf -H hash_function_name
|
||||||
$(VALIDATE) KR-C,C,ANSI-C,C++ -k1,2 $(srcdir)/jstest1.gperf -W word_list_name
|
$(VALIDATE) KR-C,C,ANSI-C,C++ -k1,2 $(srcdir)/jstest1.gperf -W word_list_name
|
||||||
|
$(VALIDATE) KR-C,C,ANSI-C,C++ -k1,2 $(srcdir)/jstest1.gperf -l --length-table-name=length_table_name
|
||||||
sed -e 's,in_word_set,lookup_function_name,g' < $(srcdir)/jstest1.gperf > tmp-jstest1.gperf && \
|
sed -e 's,in_word_set,lookup_function_name,g' < $(srcdir)/jstest1.gperf > tmp-jstest1.gperf && \
|
||||||
$(VALIDATE) KR-C,C,ANSI-C,C++ -k1,2 tmp-jstest1.gperf -N lookup_function_name
|
$(VALIDATE) KR-C,C,ANSI-C,C++ -k1,2 tmp-jstest1.gperf -N lookup_function_name
|
||||||
sed -e 's,Perfect_Hash,class_name,g' < $(srcdir)/jstest1.gperf > tmp-jstest1.gperf && \
|
sed -e 's,Perfect_Hash,class_name,g' < $(srcdir)/jstest1.gperf > tmp-jstest1.gperf && \
|
||||||
|
|||||||
@@ -71,6 +71,9 @@ Details in the output code:
|
|||||||
-W, --word-array-name=NAME
|
-W, --word-array-name=NAME
|
||||||
Specify name of word list array. Default name is
|
Specify name of word list array. Default name is
|
||||||
'wordlist'.
|
'wordlist'.
|
||||||
|
--length-table-name=NAME
|
||||||
|
Specify name of length table array. Default name is
|
||||||
|
'lengthtable'.
|
||||||
-S, --switch=COUNT Causes the generated C code to use a switch
|
-S, --switch=COUNT Causes the generated C code to use a switch
|
||||||
statement scheme, rather than an array lookup table.
|
statement scheme, rather than an array lookup table.
|
||||||
This can lead to a reduction in both time and space
|
This can lead to a reduction in both time and space
|
||||||
|
|||||||
Reference in New Issue
Block a user