Mercurial > hg > octave-kai > gnulib-hg
changeset 349:cac0f9ef1bf2
Change _P to __P.
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Fri, 04 Nov 1994 14:04:43 +0000 |
parents | fc3b2c3cecb7 |
children | b13c1f825b95 |
files | lib/linebuffer.h |
diffstat | 1 files changed, 9 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/linebuffer.h +++ b/lib/linebuffer.h @@ -24,19 +24,19 @@ 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 *));