summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1994-11-03 00:51:52 +0000
committerJim Meyering <jim@meyering.net>1994-11-03 00:51:52 +0000
commitf303c03fdc429720be80defffe6b70c0bae07653 (patch)
tree084d037308875276aff2a6f91737252431bdabb1
parentcf2d9f220585b83d37d083a6ef64ab61649815e8 (diff)
downloadgnulib-f303c03fdc429720be80defffe6b70c0bae07653.tar.gz
GNU text utilitiesTEXTUTILS-1_9_1k
-rw-r--r--lib/linebuffer.h18
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 *));