diff --git a/ChangeLog b/ChangeLog index 4ebebc3..7966fcd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2025-04-20 Bruno Haible + + Release gperf-3.3. + * src/version.cc (version_string): Bump. + * tests/*.exp: Update. + * NEWS: Mention the changes. + 2025-04-20 Bruno Haible Add two more assertions. diff --git a/NEWS b/NEWS index 256acfb..bdea5c8 100644 --- a/NEWS +++ b/NEWS @@ -1,8 +1,13 @@ +New in 3.3: + +* Speedup: gperf is now between 2x and 2.5x faster. + New in 3.2.1: * The generated code avoids -Wundef warnings in C++ mode. New in 3.2: + * The input file may now use Windows line terminators (CR/LF) instead of Unix line terminators (LF). Note: This is an incompatible change. If you want to use a keyword that @@ -14,6 +19,7 @@ New in 3.2: - "zero as null pointer constant" warnings. New in 3.1: + * The generated C code is now in ANSI-C by default. If you want to support pre-ANSI-C compilers, you need to provide the option --language=C on the command line or %language=C in the source file. diff --git a/src/version.cc b/src/version.cc index 507e13d..bbf6f46 100644 --- a/src/version.cc +++ b/src/version.cc @@ -25,4 +25,4 @@ #include "version.h" /* Current release version. */ -const char *version_string = "3.2.1"; +const char *version_string = "3.3"; diff --git a/tests/5000.exp b/tests/5000.exp index 84ecc4c..51fbe65 100644 --- a/tests/5000.exp +++ b/tests/5000.exp @@ -1,4 +1,4 @@ -/* ANSI-C code produced by gperf version 3.2.1 */ +/* ANSI-C code produced by gperf version 3.3 */ /* Command-line: gperf -m 10 */ /* Computed positions: -k'2-3,6,9-10' */ diff --git a/tests/c-parse.exp b/tests/c-parse.exp index f73c6f1..6d6f594 100644 --- a/tests/c-parse.exp +++ b/tests/c-parse.exp @@ -1,4 +1,4 @@ -/* C code produced by gperf version 3.2.1 */ +/* C code produced by gperf version 3.3 */ /* Command-line: gperf -L C -F ', 0, 0' -j1 -i 1 -g -o -t -G -N is_reserved_word -k'1,3,$' */ #if !((' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \ diff --git a/tests/charsets.exp b/tests/charsets.exp index 6dce2f1..17de2d5 100644 --- a/tests/charsets.exp +++ b/tests/charsets.exp @@ -1,4 +1,4 @@ -/* ANSI-C code produced by gperf version 3.2.1 */ +/* ANSI-C code produced by gperf version 3.3 */ /* Command-line: gperf -C -E -G -I -t */ /* Computed positions: -k'1-11,22,$' */ diff --git a/tests/chill.exp b/tests/chill.exp index 4382fe4..c9df27e 100644 --- a/tests/chill.exp +++ b/tests/chill.exp @@ -1,4 +1,4 @@ -/* C code produced by gperf version 3.2.1 */ +/* C code produced by gperf version 3.3 */ /* Command-line: gperf -L C -F ', 0, 0, 0' -D -E -S1 -j1 -i 1 -g -o -t -k'*' */ #if !((' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \ diff --git a/tests/cplusplus.exp b/tests/cplusplus.exp index caa1d0e..c9dc3a5 100644 --- a/tests/cplusplus.exp +++ b/tests/cplusplus.exp @@ -1,4 +1,4 @@ -/* C code produced by gperf version 3.2.1 */ +/* C code produced by gperf version 3.3 */ /* Command-line: gperf -L C -F ', 0, 0' -j1 -g -o -t -N is_reserved_word -k'1,4,7,$' */ #if !((' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \ diff --git a/tests/gpc.exp b/tests/gpc.exp index 50ff303..48ca6be 100644 --- a/tests/gpc.exp +++ b/tests/gpc.exp @@ -1,4 +1,4 @@ -/* ANSI-C code produced by gperf version 3.2.1 */ +/* ANSI-C code produced by gperf version 3.3 */ /* Command-line: gperf -g -o -j1 -t -N is_reserved_word */ /* Computed positions: -k'1,$' */ diff --git a/tests/incomplete.exp b/tests/incomplete.exp index 465136c..e29773a 100644 --- a/tests/incomplete.exp +++ b/tests/incomplete.exp @@ -1,4 +1,4 @@ -/* ANSI-C code produced by gperf version 3.2.1 */ +/* ANSI-C code produced by gperf version 3.3 */ /* Command-line: gperf -t */ /* Computed positions: -k'1,3' */ diff --git a/tests/java.exp b/tests/java.exp index a4f2571..fa37ea6 100644 --- a/tests/java.exp +++ b/tests/java.exp @@ -1,4 +1,4 @@ -/* C code produced by gperf version 3.2.1 */ +/* C code produced by gperf version 3.3 */ /* Command-line: gperf -L C -F ', 0' -t -j1 -i 1 -g -o -N java_keyword -k'1,3,$' */ #if !((' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \ diff --git a/tests/languages.exp b/tests/languages.exp index ddc6c81..faf43c7 100644 --- a/tests/languages.exp +++ b/tests/languages.exp @@ -1,4 +1,4 @@ -/* ANSI-C code produced by gperf version 3.2.1 */ +/* ANSI-C code produced by gperf version 3.3 */ /* Command-line: gperf -C -E -G -I -t */ /* Computed positions: -k'1-3,5,$' */ diff --git a/tests/modula2.exp b/tests/modula2.exp index 34397dd..9e05146 100644 --- a/tests/modula2.exp +++ b/tests/modula2.exp @@ -1,4 +1,4 @@ -/* ANSI-C code produced by gperf version 3.2.1 */ +/* ANSI-C code produced by gperf version 3.3 */ /* Command-line: gperf -n -k1-8 -l */ #if !((' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \ diff --git a/tests/objc.exp b/tests/objc.exp index 5e87acd..c81a133 100644 --- a/tests/objc.exp +++ b/tests/objc.exp @@ -1,4 +1,4 @@ -/* ANSI-C code produced by gperf version 3.2.1 */ +/* ANSI-C code produced by gperf version 3.3 */ /* Command-line: gperf -j1 -i 1 -g -o -t -N is_reserved_word -k'1,3,$' */ #if !((' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \ diff --git a/tests/permut2.exp b/tests/permut2.exp index 65131f5..8c69aee 100644 --- a/tests/permut2.exp +++ b/tests/permut2.exp @@ -1,4 +1,4 @@ -/* ANSI-C code produced by gperf version 3.2.1 */ +/* ANSI-C code produced by gperf version 3.3 */ /* Command-line: gperf -m5 */ /* Computed positions: -k'1-2' */ diff --git a/tests/permut3.exp b/tests/permut3.exp index cb75b29..69daa2c 100644 --- a/tests/permut3.exp +++ b/tests/permut3.exp @@ -1,4 +1,4 @@ -/* ANSI-C code produced by gperf version 3.2.1 */ +/* ANSI-C code produced by gperf version 3.3 */ /* Command-line: gperf -m5 */ /* Computed positions: -k'1-2' */ diff --git a/tests/permutc2.exp b/tests/permutc2.exp index d6bdc47..12f87fa 100644 --- a/tests/permutc2.exp +++ b/tests/permutc2.exp @@ -1,4 +1,4 @@ -/* ANSI-C code produced by gperf version 3.2.1 */ +/* ANSI-C code produced by gperf version 3.3 */ /* Command-line: gperf -m5 --ignore-case */ /* Computed positions: -k'1-2' */ diff --git a/tests/test-4.exp b/tests/test-4.exp index fb3f52d..b77ec80 100644 --- a/tests/test-4.exp +++ b/tests/test-4.exp @@ -1,4 +1,4 @@ -/* ANSI-C code produced by gperf version 3.2.1 */ +/* ANSI-C code produced by gperf version 3.3 */ /* Command-line: gperf -D -t -k'1,$' */ #if !((' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \