From 17019d2056791c09f17f003ed34f025584e1d94c Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Wed, 10 Sep 2003 09:08:01 +0000 Subject: Include readtokens.h first, to test interface. Include , unconditionally. (init_tokenbuffer): Define with a prototype. --- lib/readtokens.c | 23 +++++------------------ 1 file changed, 5 insertions(+), 18 deletions(-) (limited to 'lib/readtokens.c') diff --git a/lib/readtokens.c b/lib/readtokens.c index bb427729c..e826c8daa 100644 --- a/lib/readtokens.c +++ b/lib/readtokens.c @@ -31,24 +31,12 @@ # include #endif -#include - -#ifdef STDC_HEADERS -# include -#endif +#include "readtokens.h" -#if defined (STDC_HEADERS) || defined(HAVE_STRING_H) -# include -/* An ANSI string.h and pre-ANSI memory.h might conflict. */ -# if !defined (STDC_HEADERS) && defined (HAVE_MEMORY_H) -# include -# endif /* not STDC_HEADERS and HAVE_MEMORY_H */ -#else /* not STDC_HEADERS and not HAVE_STRING_H */ -# include -/* memory.h and strings.h conflict on some systems. */ -#endif /* not STDC_HEADERS and not HAVE_STRING_H */ +#include +#include +#include -#include "readtokens.h" #include "unlocked-io.h" #include "xalloc.h" @@ -58,8 +46,7 @@ /* Initialize a tokenbuffer. */ void -init_tokenbuffer (tokenbuffer) - token_buffer *tokenbuffer; +init_tokenbuffer (token_buffer *tokenbuffer) { tokenbuffer->size = INITIAL_TOKEN_LENGTH; tokenbuffer->buffer = xmalloc (INITIAL_TOKEN_LENGTH); -- cgit v1.2.3-54-g00ecf