1
0
mirror of https://git.savannah.gnu.org/git/gperf.git synced 2025-12-02 21:19:24 +00:00
Commit Graph

31 Commits

Author SHA1 Message Date
Bruno Haible
6ca5ea1384 build: Use more gnulib modules.
* autogen.sh (GNULIB_MODULES): Add read-file.
Copy also config.guess and config.sub.
* lib/Makefile.am (BUILT_SOURCES, MOSTLYCLEANDIRS): New variables.
(libgp_a_SOURCES): Remove getline.h, getline.cc.
* lib/getline.h: Remove file.
* lib/getline.cc: Remove file.
* src/configure.ac: Change config.h to also include ../lib/config.h.
* src/output.cc: Include <config.h> first.
* src/search.cc: Likewise.
* src/bool-array.cc: Include <config.h>.
* src/keyword.cc: Likewise.
* src/keyword-list.cc: Likewise.
* src/hash-table.cc: Likewise.
* src/main.cc: Likewise.
* src/options.cc: Likewise.
* src/positions.cc: Likewise.
* src/version.cc: Likewise.
* src/input.cc: Likewise. Include read-file.h instead of getline.h.
(Input<KT>::read_input): Use fread_file instead of get_delim.
2025-04-16 22:28:11 +02:00
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
13c9383b10 Support input files with CR/LF line terminators. 2018-04-24 09:25:10 +02:00
Bruno Haible
a459641a53 Initialize the Keyword::_lineno field through the constructor. 2017-04-16 17:39:15 +02:00
Bruno Haible
5ac5f15a74 New option --constants-prefix. 2011-01-16 16:45:09 +01:00
Bruno Haible
f6c3e9a753 Change source code license to GPLv3+. 2008-08-23 18:52:48 +00:00
Bruno Haible
61ba5cd46a Update FSF postal address. 2005-05-14 14:22:35 +00:00
Bruno Haible
e5f2f1dc44 Add a length-table-name option and declaration. 2004-08-22 15:52:15 +00:00
Bruno Haible
fcd638a42f Support for abbreviated struct declarations. 2003-06-02 11:43:01 +00:00
Bruno Haible
31f7c8a49e Ignore comments at the beginning of the declarations section. 2003-05-02 03:59:36 +00:00
Bruno Haible
ff0be60810 New declaration "%define initializer-suffix". 2003-04-30 10:36:10 +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
b49d12d984 Improve option --pic. New options --string-pool-name, --null-strings. 2003-04-16 10:07:23 +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
6202aaadb1 Implement % declarations. 2003-02-10 14:21:58 +00:00
Bruno Haible
281d151d8e Use a standard format for error messages about the input file. 2003-01-27 12:36:29 +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
ebc7fe6188 Rework the Read_Line class. 2002-12-11 18:50:41 +00:00
Bruno Haible
d776b8df65 delimiter -> delimiters. 2002-12-06 16:46:14 +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
9fa6cbdde5 Let the input module see only Keyword, not KeywordExt. 2002-11-22 14:19:08 +00:00
Bruno Haible
32f5ea88cf Avoid g++ -Wold-style-cast warnings. 2002-11-21 13:04:08 +00:00
Bruno Haible
befb3d467e Separate the KeywordExt from the list node that points to it. 2002-11-20 12:58:14 +00:00
Bruno Haible
2cd11405ed Start using bool. 2002-11-19 12:55:48 +00:00
Bruno Haible
ef7645289d Move the input routines to class Input. 2002-11-15 13:01:01 +00:00