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

New option --constants-prefix.

This commit is contained in:
Bruno Haible
2011-01-16 16:43:45 +01:00
parent 61edba6dde
commit 5ac5f15a74
8 changed files with 189 additions and 26 deletions

View File

@@ -1,3 +1,28 @@
2011-01-11 Bruno Haible <bruno@clisp.org>
New option --constants-prefix.
* src/options.h (Options): Add member functions get_constants_prefix,
set_constants_prefix. Add member _constants_prefix.
* src/options.icc (Options::get_constants_prefix): New functions.
* src/options.cc (DEFAULT_CONSTANTS_PREFIX): New constant.
(Options::long_usage): Document --constants-prefix option.
(Options::Options): Initialize _constants_prefix member.
(Options::set_constants_prefix): New function.
(long_options): Add --constants-prefix option.
(Options::parse_options): Handle --constants-prefix option.
* src/input.cc (Input::read_input): Handle %define constants-prefix
declaration.
* src/output.cc (output_constant): New function.
(Output::output_constants): Invoke it.
(Output::output_lookup_function_body): Prefix each reference to a
constant with the constants prefix.
* doc/gperf.texi: Bump copyright year.
(Gperf Declarations): Document %define constants-prefix.
(Controlling Identifiers): New section.
(Output Details): Document --constants-prefix option.
* NEWS: Mention the changes.
Reported by Julian Zubek <zubekj@gmail.com>.
2011-01-11 Bruno Haible <bruno@clisp.org>
* configure: Regenerated with autoconf-2.68.