Debian Codegraph @

NEWS

raw
1 New in 3.3:
2
3 * Speedup: gperf is now between 2x and 2.5x faster.
4
5 New in 3.2.1:
6
7 * The generated code avoids -Wundef warnings in C++ mode.
8
9 New in 3.2:
10
11 * The input file may now use Windows line terminators (CR/LF) instead of
12 Unix line terminators (LF).
13 Note: This is an incompatible change. If you want to use a keyword that
14 ends in a CR byte, such as xyz<CR>, write it as "xyz\r".
15 * The generated code avoids several types of warnings:
16 - "implicit fallthrough" warnings in 'switch' statements.
17 - "unused parameter" warnings regarding 'str' or 'len'.
18 - "missing initializer for field ..." warnings.
19 - "zero as null pointer constant" warnings.
20
21 New in 3.1:
22
23 * The generated C code is now in ANSI-C by default. If you want to support
24 pre-ANSI-C compilers, you need to provide the option --language=C on the
25 command line or %language=C in the source file.
26 * The 'len' parameter of the hash function and of the lookup function is now
27 of type 'size_t' instead of 'unsigned int'. This makes it safe to call these
28 functions with strings of length > 4 GB, on 64-bit machines.
29 * Added option --constants-prefix.
30 * Added declaration %define constants-prefix.
31
32 New in 3.0.4:
33
34 * gperf is now licensed under the GPL version 3 or newer.
35 * The generated C code gives less warnings with gcc-4.2.x in c99 or gnu99 mode.
36
37 New in 3.0.3:
38
39 * The generated C code is compatible with gcc-4.3.x in c99 or gnu99 mode.
40
41 New in 3.0.2:
42
43 * Compiles with g++-4.0.x.
44 * Added option --length-table-name.
45 * Added declaration %define length-table-name.
46 * Fixed #line directives for filenames containing backslashes.
47
48 New in 3.0.1:
49
50 * Bug fix.
51
52 New in 3.0:
53
54 * Added option --output that allows to specify the output file name.
55 * Some options have been renamed:
56 --hash-fn-name=NAME --> --hash-function-name=NAME
57 --lookup-fn-name=NAME --> --lookup-function-name=NAME
58 --compare-strlen --> --compare-lengths
59 --global --> --global-table
60 The older variants are still supported for backward compatibility.
61 * The following options can now be specified inside the input file:
62 %delimiters=DELIMITER-LIST
63 %struct-type
64 %ignore-case
65 %language=LANGUAGE-NAME
66 %define slot-name NAME
67 %define initializer-suffix INITIALIZERS
68 %define hash-function-name NAME
69 %define lookup-function-name NAME
70 %define class-name NAME
71 %7bit
72 %compare-lengths
73 %compare-strncmp
74 %readonly-tables
75 %enum
76 %includes
77 %global-table
78 %pic
79 %define string-pool-name NAME
80 %null-strings
81 %define word-array-name NAME
82 %switch=COUNT
83 %omit-struct-type
84 * When the option -k is not given, the default key positions are now
85 computed depending on the set of keywords.
86 * If the input file is given by name, the output file will now contain
87 #line directives referring to the input file.
88 * Some keyword sets containing permutations, like { "xy", "yx", "xz", "zx" }
89 or { "abc", "acb", "bca", "cab" }, are now handled by gperf without
90 requiring the option -D.
91 * The generated table is usually much smaller than it was with earlier
92 versions of gperf.
93 * Added option -m/--multiple-iterations that allows to further reduce the
94 size of the generated table.
95 * When the search for a good hash function is not immediately successful,
96 the table's size will grow as needed. Earlier versions of gperf bailed
97 out with an "Internal error, duplicate hash code value".
98 * The options -f/--fast and -o/--occurrence-sort have no effect any more.
99 * Added options -P/--pic and --null-strings that optimize the generated code
100 for use in shared libraries. -P/--pic does a perfect optimization but may
101 require some small code changes (see the documentation for details), whereas
102 --null-strings does only a half-hearted optimization but works without
103 needing any change to surrounding code.
104 * Added option --ignore-case that produces a case independent lookup function.
105 * Bug fixes.
106
107 New in 2.7.2:
108
109 * Keywords may now be enclosed in double quotes; this permits the use of
110 '#', ',', space or NUL inside keywords.
111 * Bug fixes.
112
113 New in 2.7.1:
114
115 * Added option "-F" for gcc.
116
117 New in 2.7:
118
119 * gperf is now a stand-alone package, untied from libg++.
120 * Autoconfiguring.
121 * Removed the "-a" and "-g" options, extended the "-L" option instead.
122 * Removed the "-p" option, it is the default.
123 * Added long options ("--help", "--version" etc.).
124 * 8-bit cleanliness is now the default; use "-7" to get the old behaviour.
125 * Compiles with any C++ compiler.
126 * Numerous small improvements.
127