mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-04-18 09:46:33 +02:00
37 lines
746 B
C
37 lines
746 B
C
#ifndef H_READTOKENS_H
|
|
#define H_READTOKENS_H
|
|
|
|
#ifndef INITIAL_TOKEN_LENGTH
|
|
#define INITIAL_TOKEN_LENGTH 20
|
|
#endif
|
|
|
|
#ifndef TOKENBUFFER_DEFINED
|
|
#define TOKENBUFFER_DEFINED
|
|
struct tokenbuffer
|
|
{
|
|
long size;
|
|
char *buffer;
|
|
};
|
|
typedef struct tokenbuffer token_buffer;
|
|
|
|
#endif /* not TOKENBUFFER_DEFINED */
|
|
|
|
#undef __P
|
|
#if defined (__STDC__) && __STDC__
|
|
#define __P(x) x
|
|
#else
|
|
#define __P(x) ()
|
|
#endif
|
|
|
|
void init_tokenbuffer __P ((token_buffer *tokenbuffer));
|
|
|
|
long
|
|
readtoken __P ((FILE *stream, const char *delim, int n_delim,
|
|
token_buffer *tokenbuffer));
|
|
int
|
|
readtokens __P ((FILE *stream, int projected_n_tokens,
|
|
const char *delim, int n_delim,
|
|
char ***tokens_out, long **token_lengths));
|
|
|
|
#endif /* not H_READTOKENS_H */
|