Debian Codegraph @

subprojects/gperf/NEWS

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