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

25 Commits

Author SHA1 Message Date
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
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
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
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
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
0d37a8763d Avoid "implicit fallthrough" warnings in the generated code. 2018-07-26 02:00:39 +02: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
6eda9843bc Regenerated and updated. 2009-12-20 11:18:22 +01: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
fc599936bd Change generated code to avoid a warning by GCC 4.2. 2007-09-09 02:05:32 +00:00
Brendan Kehoe
d53f43ea7d * tests/*.exp: Bump to 3.0.3 in header. 2007-04-19 11:13:42 +00:00
Bruno Haible
0e4abdfd81 Change generated code after the meaning of __inline is changed in GCC 4.3. 2007-03-31 15:16:05 +00:00
Bruno Haible
c46ce464cb Bump version number to 3.0.2. 2005-07-30 16:42:13 +00:00
Bruno Haible
7f0e124409 Version 3.0.1. 2003-06-12 16:59:53 +00:00
Bruno Haible
fd6df8913a Bump version number to 3.0. 2003-05-07 11:17:14 +00:00
Bruno Haible
c170151d67 Add /*FALLTHROUGH*/ comments to output. 2003-05-01 10:10:08 +00:00
Bruno Haible
16e10a330c Provoke a compilation error if the execution character set doesn't match the
expectations.
2003-04-28 10:08:35 +00:00
Bruno Haible
ec3d1127fa Change the positions to be 0-based, instead of 1-based. 2003-04-04 10:04:24 +00:00
Bruno Haible
85ac0f155c New tests. 2003-03-28 09:22:06 +00:00