summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1994-11-04 14:04:43 +0000
committerJim Meyering <jim@meyering.net>1994-11-04 14:04:43 +0000
commit8de255ea619e46b2bd25ac227d6837145b1f5366 (patch)
tree7ad51171d9e19b9fa65e2e13ed28382c2e15f88e /lib
parent4b579f1836a50287c8e64c34a31e076d8f72dc49 (diff)
downloadcoreutils-8de255ea619e46b2bd25ac227d6837145b1f5366.tar.xz
Change _P to __P.
Diffstat (limited to 'lib')
-rw-r--r--lib/linebuffer.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/linebuffer.h b/lib/linebuffer.h
index 13abe18c7..265431ad7 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 *));