1
0
mirror of https://git.savannah.gnu.org/git/gperf.git synced 2025-12-02 21:19:24 +00:00
Commit Graph

122 Commits

Author SHA1 Message Date
Bruno Haible
d2aeec9b9c Release gperf-3.3.
* src/version.cc (version_string): Bump.
* tests/*.exp: Update.
* NEWS: Mention the changes.
2025-04-20 14:07:11 +02:00
Bruno Haible
b52ad8ef32 tests: Add unit test with many keywords.
* tests/generate-5000.sh: New file.
* tests/5000.gperf: New generated file.
* tests/5000.exp: New generated file.
* tests/Makefile.in (SOURCE_FILES): Add them.
(check-large): New rule.
2025-04-19 14:59:15 +02:00
Bruno Haible
1a67526a17 Release gperf-3.2.1.
* src/version.cc (version_string): Bump.
* tests/*.exp: Update.
* NEWS: Mention the changes.
2025-04-13 18:12:04 +02:00
Bruno Haible
1a8e476f99 Fix "make check" failure with an ISO C 23 conforming C compiler.
Prompted by
<https://lists.gnu.org/archive/html/bug-gperf/2025-04/msg00002.html>.

* tests/smtp.gperf (my_case_strcmp, main): Convert from K&R C syntax
to ISO C 90 syntax.
2025-04-09 13:10:17 +02:00
Bruno Haible
3bab6ab7bf Avoid "-Wundef" warnings in C++ mode on the generated code.
Reported by Heiko Becker <mail@heiko-becker.de> in
<https://lists.gnu.org/archive/html/bug-gperf/2025-04/msg00001.html>
and by Thomas Klausner <wiz@netbsd.org>.

* src/output.cc (Output::output_hash_function): Emit a
'defined __STDC_VERSION__' before the test of __STDC_VERSION__.
* tests/c-parse.exp, tests/charsets.exp, tests/chill.exp,
tests/cplusplus.exp, tests/java.exp, tests/languages.exp,
tests/modula2.exp, tests/objc.exp: Update.
2025-04-09 12:29:19 +02:00
Bruno Haible
2dd5061f4d Avoid "-Wzero-as-null-pointer-constant" warnings on the generated code.
Reported in
<https://lists.gnu.org/archive/html/bug-gnulib/2024-11/msg00123.html>.

* src/output.cc (Output::output_lookup_function_body): To denote a null
pointer, emit a cast expression instead of plain "0".
* tests/c-parse.exp, tests/charsets.exp, tests/chill.exp,
tests/cplusplus.exp, tests/gpc.exp, tests/incomplete.exp,
tests/java.exp, tests/languages.exp, tests/modula2.exp, tests/objc.exp,
tests/permut2.exp, tests/permut3.exp, tests/permutc2.exp,
tests/test-4.exp: Update.
2024-11-16 08:23:49 +01:00
Bruno Haible
97c1fbcc8c Replace FSF snail-mail addresses with URLs.
* tests/java.gperf: Update GPL license notice.
* tests/java.exp: Likewise.
2024-09-01 15:28:44 +02:00
Bruno Haible
0246553284 Fix build (regression 2024-04-04).
Reported by Pádraig Brady <P@draigBrady.com> in
<https://lists.gnu.org/archive/html/bug-gperf/2024-06/msg00000.html>.

* doc/configure.ac: Invoke AC_CONFIG_AUX_DIR, needed for locating
install-sh.
* lib/configure.ac: Likewise.
* src/configure.ac: Likewise.
* tests/configure.ac: Likewise.
2024-06-05 11:31:18 +02:00
Bruno Haible
a02b4653ee Fix "make extracheck" failure (regression 2016-11-27).
* tests/validate (KR-C): Remove the test against ' const ', since the
input files jstest*.gperf now contain 'const' keywords.
2023-09-07 13:20:52 +02:00
Bruno Haible
ce5106eb19 Avoid "clang -Wimplicit-fallthrough" warnings also in C mode.
* src/output.cc (Output::output_hash_function): Enhance the fallthrough
marker, to include clang >= 10 in C mode.
* tests/*.exp: Update.
2023-09-07 12:55:29 +02:00
Bruno Haible
8d68fff1c7 Avoid "gcc -Wmissing-field-initializers" warnings on the generated code.
* src/options.h (Options::has_initializer_suffix): New declaration.
* src/options.cc (Options::has_initializer_suffix): New function.
* src/output.cc (Output::output_keyword_table): If option -t is
specified and option -F is not specified, emit '#pragma GCC diagnostic'
lines, to silence -Wmissing-field-initializers warnings from gcc or
clang.
* tests/charsets.exp: Update.
* tests/gpc.exp: Likewise.
* tests/incomplete.exp: Likewise.
* tests/languages.exp: Likewise.
* tests/objc.exp: Likewise.
* tests/test-4.exp: Likewise.
2023-09-05 21:20:51 +02:00
Bruno Haible
91ed1621cc Avoid "gcc -Wunused-parameter" warnings on the generated hash function.
Reported by Vinícius dos Santos Oliveira <vini.ipsmaker@gmail.com> in
<https://savannah.gnu.org/bugs/index.php?64393>.

* src/output.cc (Output::output_hash_function): If str is not used, emit
a cast from str to void. If len is not used, emit a cast from len to
void.
* tests/permut2.exp: Update.
* tests/permut3.exp: Likewise.
* tests/permutc2.exp: Likewise.
2023-07-08 12:30:47 +02:00
Bruno Haible
1862c6e57a Add support for reproducible builds.
Suggested by Richard Purdie <richard.purdie@linuxfoundation.org> in
<https://lists.gnu.org/archive/html/bug-gperf/2022-07/msg00000.html>.

* autogen.sh: Import also lib/filename.h.
* Makefile.in (IMPORTED_FILES): Add lib/filename.h.
* src/options.cc: Include filename.h.
(Options::print_options): Print only the base name of the program name.
* tests/*.exp: Update.
2022-07-05 07:51:46 +02:00
Bruno Haible
d89cab8712 tests: Fix undefined behaviour.
* tests/test2.c (main): Cast bytes to unsigned before shifting left.
2022-02-08 01:16:48 +01:00
Bruno Haible
6d53a2dbe0 Release gperf-3.2.
* src/version.cc (version_string): Bump to 3.2.
* src/options.cc (Options::parse_options): Bump copyright year.
* tests/*.exp: Update.
* doc/gperf.texi: Bump date.
2022-01-05 12:59:54 +01:00
Bruno Haible
8cb07d4235 Fix warnings from Autoconf 2.69c.
* configure.ac: Invoke AC_INIT, AC_OUTPUT without arguments.
* doc/configure.ac: Likewise.
* lib/configure.ac: Likewise.
* src/configure.ac: Invoke AC_INIT, AC_OUTPUT without arguments. Use
AC_CACHE_CHECK, AC_LANG_PUSH/AC_LANG_POP, AC_COMPILE_IFELSE
* tests/configure.ac: Invoke AC_INIT, AC_OUTPUT without arguments. Use
ac_cv_c_compiler_gnu instead of ac_cv_prog_gcc, and
ac_cv_cxx_compiler_gnu instead of ac_cv_prog_gxx. Don't use 'test' with
option '-a'.
2020-10-05 00:45:25 +02:00
Bruno Haible
313d1a6770 Fix link error on native Windows with MSVC/clang.
* tests/test2.c (SET_BINARY): On native Windows, use _setmode, not
setmode.
2020-08-30 02:31:27 +02:00
Bruno Haible
4706572628 Update after gnulib changed.
* configure.ac (AC_PREREQ): Require Autoconf >= 2.64.
* doc/configure.ac (AC_PREREQ): Likewise.
* lib/configure.ac (AC_PREREQ): Likewise.
* src/configure.ac (AC_PREREQ): Likewise.
* tests/configure.ac (AC_PREREQ): Likewise.
* autogen.sh: Update comment.
2020-08-30 02:06:20 +02:00
Bruno Haible
9f4f11ab13 Update after gnulib changed. 2018-10-24 11:59:45 +02:00
Bruno Haible
b3c3566855 Prefer https URLs where possible. 2018-09-17 16:53:00 +02:00
Bruno Haible
50840436d5 Avoid "implicit fallthrough" warnings also from clang. 2018-09-09 01:14:20 +02:00
Bruno Haible
11487a61ce Fix failure of "make check -j2". 2018-09-08 17:12:15 +02:00
Bruno Haible
0d37a8763d Avoid "implicit fallthrough" warnings in the generated code. 2018-07-26 02:00:39 +02:00
Bruno Haible
cabd2af10e Assume the available C compiler supports ANSI C. Remove K&R C cruft. 2016-11-27 18:18:00 +01:00
Bruno Haible
a705809f3d Drop the inline specifiers from the generated lookup function. 2016-11-26 18:42:05 +01:00
Bruno Haible
0414be8fff Change mailing list address to <bug-gperf@gnu.org>. 2016-11-26 18:08:57 +01:00
Bruno Haible
d519d1a821 Change the 'len' parameter type to 'size_t'. 2016-11-26 17:54:33 +01:00
Bruno Haible
bbe4d732f3 Avoid 'warning: implicit conversion changes signedness' in output code. 2016-11-26 02:25:44 +01:00
Bruno Haible
b3356507ce Avoid 'warning: implicit conversion changes signedness' in output code. 2016-11-26 01:05:14 +01:00
Bruno Haible
9c36a76c66 Fix "make check" error on Mac OS X. 2016-11-25 19:36:11 +01:00
Bruno Haible
0003342367 Fix "make clean" with MSVC. 2012-07-01 19:02:44 +02:00
Bruno Haible
04c7392e59 Update expected test results. 2012-07-01 18:09:19 +02:00
Bruno Haible
008922a2e9 Remove autotools generated files from version control. 2012-07-01 16:04:36 +02:00
Bruno Haible
9386cd6fc4 Create tarballs through an Automake-like "make dist" command. 2012-07-01 15:40:25 +02:00
Bruno Haible
b392998058 Regenerated with autoconf-2.69. 2012-04-28 20:58:26 +02:00
Bruno Haible
61edba6dde Regenerated with autoconf-2.68. 2011-01-16 11:06:15 +01:00
Bruno Haible
181d4eaa29 Regenerated with autoconf-2.67. 2010-07-31 19:05:15 +02:00
Bruno Haible
22f5f3d712 Regenerated with autoconf 2.66. 2010-07-03 13:01:28 +02:00
Eric Blake
5860266d3b Avoid gcc warnings on Cygwin. 2009-12-22 12:26:30 +01:00
Bruno Haible
ce9b2f4eb4 Support CPPFLAGS as mandated by GNU standards. 2009-12-22 11:41:37 +01:00
Bruno Haible
6eda9843bc Regenerated and updated. 2009-12-20 11:18:22 +01:00
Bruno Haible
995bb8d56e Allow processing the tests with parallel make. 2009-12-20 10:44:14 +01:00
Bruno Haible
67ec8b01f2 Use LDFLAGS, OBJEXT, EXEEXT. 2009-02-01 19:25:51 +00:00
Bruno Haible
934efd0953 Remove leftover from gcc on MacOS X 10.5. 2009-02-01 14:03:52 +00:00
Brendan Kehoe
fb59b79a62 * gperf-3.0.4 released.
* src/version.cc: Bump to 3.0.4.
	* tests/*.exp: Bump to 3.0.4 in header.
	* doc/gperf.1: Regenerate with gperf 3.0.4.
2009-02-01 12:08:19 +00:00
Bruno Haible
57745086ac Don't include the length in the hash function if all keywords have the same
length.
2009-01-19 09:50:07 +00:00
Bruno Haible
7fac4aa2b6 More consistent m4 quoting. 2009-01-15 00:24:30 +00:00
Bruno Haible
f6c3e9a753 Change source code license to GPLv3+. 2008-08-23 18:52:48 +00:00
Bruno Haible
2d4d4f9a58 Avoid possible error when 'tr' gets fed random bytes in an UTF-8 locale. 2008-04-06 09:20:36 +00:00
Bruno Haible
fc599936bd Change generated code to avoid a warning by GCC 4.2. 2007-09-09 02:05:32 +00:00