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

28 Commits

Author SHA1 Message Date
Bruno Haible
a041291c80 Remove all occurrences of reinterpret_cast<>.
* src/keyword-list.h (Keyword_List): Add template parameter list <KT>.
(KeywordExt_List): Define as a typedef, not as a subclass.
(copy_list, delete_list, mergesort_list): Templatize accordingly.
* src/keyword-list.icc (Keyword_List): Add template parameter list <KT>.
(KeywordExt_List): Remove method definitions.
* src/keyword-list.cc (Keyword_List): Add template parameter list <KT>.
(copy_list, mergesort_list): Remove definitions on subclass.
Add explicit template instantiation.
* src/keyword.h (Keyword_Factory): Add template parameter list <KT>.
* src/keyword.cc (Keyword_Factory): Likewise.
Add explicit template instantiation.
* src/input.h (Input): Add template parameter list <KT>.
* src/input.cc (Input): Likewise. Add explicit template instantiation.
* src/main.cc (KeywordExt_Factory): Define as a typedef, not as a
subclass.
(main): Update.
2025-04-05 14:18:27 +02:00
Bruno Haible
b3c3566855 Prefer https URLs where possible. 2018-09-17 16:53:00 +02:00
Bruno Haible
a459641a53 Initialize the Keyword::_lineno field through the constructor. 2017-04-16 17:39:15 +02:00
Bruno Haible
57745086ac Don't include the length in the hash function if all keywords have the same
length.
2009-01-19 09:50:07 +00:00
Bruno Haible
f6c3e9a753 Change source code license to GPLv3+. 2008-08-23 18:52:48 +00:00
Bruno Haible
dbe7691075 Oops, fix blunder in last comment commit. 2005-07-30 16:36:30 +00:00
Bruno Haible
61ba5cd46a Update FSF postal address. 2005-05-14 14:22:35 +00:00
Bruno Haible
16e10a330c Provoke a compilation error if the execution character set doesn't match the
expectations.
2003-04-28 10:08:35 +00:00
Bruno Haible
0093e33163 Fill unused asso_values[] entries in search.cc, not in output.cc. 2003-04-01 08:13:30 +00:00
Bruno Haible
9fa3ac42b3 Portability fixes. 2003-03-03 14:28:09 +00:00
Bruno Haible
ec800f65ec Introduce new alpha_inc pass, to avoid artificial duplicates. 2003-02-17 10:36:47 +00:00
Bruno Haible
810fef43ae When the option -k is not given, the default key positions are now computed
depending on the set of keywords.
2003-02-11 11:09:27 +00:00
Bruno Haible
f54d310530 New option --output-file. 2003-01-28 12:18:10 +00:00
Bruno Haible
2059095a04 Emit #line directives. 2003-01-24 12:37:00 +00:00
Bruno Haible
a9916548fa Fix memory leaks. 2003-01-23 12:03:33 +00:00
Bruno Haible
83440a2aed Rewrite the input routines. 2003-01-22 12:03:19 +00:00
Bruno Haible
d3a9c2f7ad Open the input file in main.cc, not in class Options. 2003-01-21 12:00:44 +00:00
Bruno Haible
f60e559cfa Comments. 2003-01-14 12:44:42 +00:00
Bruno Haible
ebc7fe6188 Rework the Read_Line class. 2002-12-11 18:50:41 +00:00
Bruno Haible
c73312f0fd Remove the global vectors. Move them to the class Search. 2002-11-28 12:56:08 +00:00
Bruno Haible
aca3f4abae Move the search algorithm to search.h, search.cc. 2002-11-26 12:48:39 +00:00
Bruno Haible
122b13cc95 Update copyright notice to GPL v2. 2002-11-25 13:05:18 +00:00
Bruno Haible
c8f007fe8b Rework the options handling. 2002-11-13 18:18:48 +00:00
Bruno Haible
00c5953c20 Use the standard 'new' operator. 2002-10-31 12:30:27 +00:00
Bruno Haible
c7f32d582f Don't use operator (), it's so hard to grep for. 2002-10-29 13:34:53 +00:00
Bruno Haible
94f436fe9d Remove trace facility. Use a debugger instead. 2002-10-15 14:25:50 +00:00
Bruno Haible
bebc542b9e Check for write error on stdout. 2000-08-19 09:16:11 +00:00
Bruno Haible
501ee3e640 Initial revision 2000-08-19 06:20:11 +00:00