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

Let the input module see only Keyword, not KeywordExt.

This commit is contained in:
Bruno Haible
2002-11-22 14:19:08 +00:00
parent 32f5ea88cf
commit 9fa6cbdde5
6 changed files with 74 additions and 17 deletions

View File

@@ -1,5 +1,20 @@
2002-11-02 Bruno Haible <bruno@clisp.org>
* src/keyword-list.h (Keyword_List): New class.
(KeywordExt_List): Inherit from it.
* src/keyword-list.cc (Keyword_List::Keyword_List): New constructor.
(KeywordExt_List::KeywordExt_List): Update.
* src/input.h (Input::Input): Add Keyword_Factory argument.
(Input::_factory): New field.
(Input::_head): Change type to Keyword_List*.
(Input::parse_line): New declaration.
* src/input.cc (Input::Input): New constructor.
(Input::parse_line): Renamed from parse_line. Use the _factory.
(Input::read_keys): Update.
* src/key-list.cc (KeywordExt_Factory): New class.
(Key_List::read_keys): Pass a KeywordExt_Factory as Input constructor
argument.
Avoid g++ -Wold-style-cast warnings.
* src/bool-array.icc: Use new-style casts.
* src/gen-perf.cc: Likewise.