mirror of
https://git.savannah.gnu.org/git/gperf.git
synced 2025-12-02 13:09:22 +00:00
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.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/* Search algorithm.
|
||||
Copyright (C) 1989-1998, 2000, 2002-2003, 2009, 2016 Free Software Foundation, Inc.
|
||||
Copyright (C) 1989-1998, 2000, 2002-2003, 2009, 2016, 2025 Free Software Foundation, Inc.
|
||||
Written by Douglas C. Schmidt <schmidt@ics.uci.edu>
|
||||
and Bruno Haible <bruno@clisp.org>.
|
||||
|
||||
@@ -18,6 +18,8 @@
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>. */
|
||||
|
||||
#include <config.h>
|
||||
|
||||
/* Specification. */
|
||||
#include "search.h"
|
||||
|
||||
@@ -29,7 +31,6 @@
|
||||
#include <limits.h> /* defines INT_MIN, INT_MAX, UINT_MAX */
|
||||
#include "options.h"
|
||||
#include "hash-table.h"
|
||||
#include "config.h"
|
||||
|
||||
/* ============================== Portability ============================== */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user