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

27 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
825b077bf4 Fix copyright years. 2017-02-22 15:32:38 +01:00
Bruno Haible
f6c3e9a753 Change source code license to GPLv3+. 2008-08-23 18:52:48 +00:00
Brendan Kehoe
a8510b1e1c * src/keyword.cc: Tweak comment to avoid nesting. 2005-08-29 11:40:29 +00:00
Bruno Haible
61ba5cd46a Update FSF postal address. 2005-05-14 14:22:35 +00:00
Bruno Haible
2535f34494 Move the handling of ALLCHARS (-k'*') into the Positions class. 2003-04-07 09:50:11 +00:00
Bruno Haible
ec3d1127fa Change the positions to be 0-based, instead of 1-based. 2003-04-04 10:04:24 +00:00
Bruno Haible
7dfd32b736 New option --ignore-case. 2003-04-02 09:26:05 +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
799d1c7534 Change element type of _selchars from 'unsigned char' to 'unsigned int'. 2003-02-14 12:52:29 +00:00
Bruno Haible
ee135115f5 Move positions handling to its own file. 2003-02-13 12:11:01 +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
a9916548fa Fix memory leaks. 2003-01-23 12:03:33 +00:00
Bruno Haible
1f70ea5dfd Compute the occurrences after removal of duplicates, not before. 2002-12-20 12:22:27 +00:00
Bruno Haible
21cd7bfd24 Use 'unsigned char' instead of 'char' in many places, to reduce casts. 2002-12-16 14:40:19 +00:00
Bruno Haible
e7c9757f68 Fix uninitialized variable bug. 2002-12-02 12:58:51 +00:00
Bruno Haible
bd03d0bce8 First include is the specification's .h file. 2002-11-29 12:52:54 +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
32f5ea88cf Avoid g++ -Wold-style-cast warnings. 2002-11-21 13:04:08 +00:00
Bruno Haible
c8f007fe8b Rework the options handling. 2002-11-13 18:18:48 +00:00
Bruno Haible
34da28c8ab Prefix all field names with _. 2002-11-09 01:12:49 +00:00
Bruno Haible
5de859e402 Replace class List_Node with class KeywordExt. 2002-11-05 12:28:40 +00:00
Bruno Haible
8797dd362b Introduce class KeywordExt. 2002-11-04 12:09:45 +00:00
Bruno Haible
5db232cb09 New class Keyword. 2002-11-01 11:03:15 +00:00