diff options
author | Jim Meyering <jim@meyering.net> | 1994-11-03 00:51:52 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1994-11-03 00:51:52 +0000 |
commit | f303c03fdc429720be80defffe6b70c0bae07653 (patch) | |
tree | 084d037308875276aff2a6f91737252431bdabb1 | |
parent | cf2d9f220585b83d37d083a6ef64ab61649815e8 (diff) | |
download | gnulib-f303c03fdc429720be80defffe6b70c0bae07653.tar.gz |
GNU text utilitiesTEXTUTILS-1_9_1k
-rw-r--r-- | lib/linebuffer.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/linebuffer.h b/lib/linebuffer.h index 13abe18c72..bb64c271c8 100644 --- a/lib/linebuffer.h +++ b/lib/linebuffer.h @@ -24,19 +24,19 @@ struct linebuffer char *buffer; }; -#ifdef __STDC__ +#if defined (__STDC__) && __STDC__ +#define _P(x) x +#else +#define _P(x) () +#endif + /* Initialize linebuffer LINEBUFFER for use. */ -void initbuffer (struct linebuffer *linebuffer); +void initbuffer _P ((struct linebuffer *linebuffer)); /* Read an arbitrarily long line of text from STREAM into LINEBUFFER. Remove any newline. Does not null terminate. Return LINEBUFFER, except at end of file return 0. */ -struct linebuffer *readline (struct linebuffer *linebuffer, FILE *stream); +struct linebuffer *readline _P ((struct linebuffer *linebuffer, FILE *stream)); /* Free linebuffer LINEBUFFER and its data, all allocated with malloc. */ -void freebuffer (struct linebuffer *); -#else -void initbuffer (); -struct linebuffer *readline (); -void freebuffer (); -#endif +void freebuffer _P ((struct linebuffer *)); |