summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 *));