Bruno Haible
634824575d
build: Fix "make maintainer-clean".
...
* doc/Makefile.in (maintainer-clean): Remove also gperf.1.
2024-07-22 02:32:03 +02:00
Collin Funk
fcb7fc41c4
doc: Make the detailed menu title appear as intended.
...
* doc/gperf.texi (Top): Add a line break after @detailmenu.
Copyright-paperwork-exempt: Yes
2024-06-13 00:33:43 +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
84183912e0
Remove outdated Autoconf macro.
...
* aclocal.m4 (CL_PROG_INSTALL): Remove macro.
* doc/configure.ac: Invoke AC_PROG_INSTALL instead of CL_PROG_INSTALL.
* lib/configure.ac: Likewise.
* src/configure.ac: Likewise.
2024-04-04 15:10:51 +02:00
Bruno Haible
ca5217fc79
Mark autoconf 2.72 as supported.
...
* autogen.sh: Update comment.
2023-12-30 10:08:54 +01: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
2173338a30
doc: Tweaks.
...
Reported by Laurent Lyaudet <laurent.lyaudet@gmail.com > in
<https://lists.gnu.org/archive/html/bug-gperf/2023-06/msg00000.html >.
* doc/gperf.texi: Update copyright year. Fix some typos.
(Bugs): Don't use the term "recent enhancements", since that's over
20 years ago. Don't mention RAM requirements, since the execution time
is the bigger inconvenience nowadays.
2023-07-01 13:05:26 +02:00
Bruno Haible
3b38ffa21e
Update the installation instructions for Windows.
...
* INSTALL.windows: Add a note about MSYS2.
2023-06-29 15:12:05 +02:00
Bruno Haible
6d7720610a
Assume UTF-8 for plain text.
...
* INSTALL: Use Unicode quote characters.
2023-06-23 11:42:17 +02:00
Bruno Haible
8f9d2b67b7
Ensure that makeinfo ≥ 6.8 checks the @menu structure.
...
See <https://lists.gnu.org/archive/html/bug-texinfo/2023-06/msg00015.html >.
* doc/Makefile.in (MAKEINFO): Add option
"-c CHECK_NORMAL_MENU_STRUCTURE=1".
2023-06-22 23:04:24 +02:00
Bruno Haible
09844ce4ca
Fix a warning regarding strncmp.
...
Reported by Sam James in <https://savannah.gnu.org/bugs/?63031 >.
* lib/getopt.c (strncmp): Declare with a prototype.
2022-09-08 04:45:03 +02:00
Bruno Haible
64940479e3
Split autogen.sh into autopull.sh and autogen.sh.
...
* autopull.sh: New file, based on autogen.sh.
* autogen.sh: Remove code that was moved to autopull.sh.
* Makefile.in (SOURCE_FILES): Add autogen.sh.
2022-07-17 16:15:08 +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
4a6274f6ca
Add GNU Project notice.
...
* JOIN-GNU: New file. Inspired by a suggestion from José E. Marchesi
on the gnu-prog-discuss mailing list.
* README: Refer to it.
* Makefile.in (SOURCE_FILES): Add it.
2022-05-23 00:56:50 +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
Michael Drake
96ebd0b95d
Honor --readonly-tables when outputting table for --ignore-case.
...
* src/output.cc (output_upperlower_table): Add 'const' when suitable.
2021-06-06 11:23:17 +02:00
Bruno Haible
b0f961a9b3
Mark Autoconf 2.71 as supported.
...
* autogen.sh: Update comment.
2021-01-30 14:46:54 +01:00
Bruno Haible
556e87b5c5
Mark Autoconf 2.70 as supported.
...
* autogen.sh: Update comment.
2020-12-09 01:18:42 +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
a63b830554
Make the code C++17 compliant.
...
* lib/getline.cc (getstr): Don't use the 'register' keyword.
2020-08-30 12:36:15 +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
0a2ed64ff7
Rely entirely on the GNU Build System.
...
* Makefile.vms: Remove file.
* INSTALL.vms: Remove file.
* Makefile.in (SOURCE_FILES): Remove them.
* Makefile.devel (src/config.h_vms): Remove target.
(totally-clean): Update.
* src/Makefile.in (GENERATED_FILES): Remove config.h_vms.
2020-02-11 03:14:38 +01:00
Bruno Haible
e35c4c2cc4
Rely entirely on the GNU Build System.
...
* Makefile.vms: Remove file.
* INSTALL.vms: Remove file.
* Makefile.in (SOURCE_FILES): Remove them.
2020-02-11 03:09:11 +01: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
e828167f62
Fix "Unescaped left brace in regex" warnings from Perl 5.26.
...
Reported and patch by Jehan <jehan@girinstud.io > <jehan@zemarmot.net > at
<https://savannah.gnu.org/bugs/?54088 >.
* doc/texi2html: Escape braces in regular expressions.
2018-09-17 01:31:31 +02:00
Bruno Haible
37045633d3
doc: Assume texinfo 4.0 or newer.
2018-09-15 20:53:12 +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
5f4cf73df2
Don't print uninitialized hash values in debug mode.
2018-09-08 16:37:56 +02:00
Bruno Haible
24f492fd8d
Improve the speed of the positions search.
2018-09-08 16:08:09 +02:00
Bruno Haible
947854520b
Really prefer more efficient hash functions over less efficient ones.
2018-09-08 15:56:21 +02:00
Bruno Haible
a720310c28
Correct width of columns when outputting the asso_values array.
...
Patch by Frank Wojcik <frankw@touristinresidence.com >.
* src/output.cc (Output::output_hash_function): Increase the
field_width by 1 if _max_hash_value+1 is a power of 10.
2018-09-08 15:36:36 +02:00
Bruno Haible
0d37a8763d
Avoid "implicit fallthrough" warnings in the generated code.
2018-07-26 02:00:39 +02:00
Bruno Haible
13c9383b10
Support input files with CR/LF line terminators.
2018-04-24 09:25:10 +02:00
Bruno Haible
1edd38e96d
Rename some files.
2018-01-27 13:12:38 +01:00
Bruno Haible
283b51086a
Don't use an undocumented Autoconf macro.
2018-01-23 08:59:13 +01:00
Bruno Haible
793a229bb5
Get rid of autom4te.cache directories (left over from autoconf).
2017-07-15 21:01:00 +02:00
Bruno Haible
a459641a53
Initialize the Keyword::_lineno field through the constructor.
2017-04-16 17:39:15 +02:00
Bruno Haible
09cfae667e
Fix doc build error with perl 5.22.
...
* doc/texi2html (update_sec_num): Omit defined(...) for array.
2017-04-01 00:18:30 +02:00
Bruno Haible
825b077bf4
Fix copyright years.
2017-02-22 15:32:38 +01:00
Bruno Haible
338ee6e3d4
Update some URL.
2017-01-10 20:54:25 +01:00
Marcel Schaible
165bba235b
Updated Changelog
v3.1
2017-01-02 19:12:45 +01:00
Marcel Schaible
d551865672
Adjusted the version information for the release
2017-01-02 19:00:16 +01:00
Bruno Haible
f4ad699ac5
Make autogen.sh more user-friendly.
2016-12-30 00:56:10 +01:00