bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-gnulib] 03-getndelim2-c89.diff


From: Derek Robert Price
Subject: [Bug-gnulib] 03-getndelim2-c89.diff
Date: Mon, 21 Jul 2003 18:53:27 -0400
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 Netscape/7.1

Hey all!

Here's a quick patch to remove the K&R support from getndelim2 since GNULIB standardized on C89.

   * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
   * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Ditto.

Index: lib/getndelim2.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/getndelim2.c,v
retrieving revision 1.2
diff -u -r1.2 getndelim2.c
--- lib/getndelim2.c    18 Jul 2003 16:58:06 -0000      1.2
+++ lib/getndelim2.c    21 Jul 2003 22:49:07 -0000
@@ -27,11 +27,8 @@
/* Specification.  */
#include "getndelim2.h"

-#if STDC_HEADERS
-# include <stdlib.h>
-#else
-char *malloc (), *realloc ();
-#endif
+/* Get prototypes for malloc & realloc */
+#include <stdlib.h>

#include "unlocked-io.h"

Index: m4/getndelim2.m4
===================================================================
RCS file: /cvsroot/gnulib/gnulib/m4/getndelim2.m4,v
retrieving revision 1.1
diff -u -r1.1 getndelim2.m4
--- m4/getndelim2.m4    18 Jul 2003 16:58:06 -0000      1.1
+++ m4/getndelim2.m4    21 Jul 2003 22:49:07 -0000
@@ -17,5 +17,5 @@
  dnl Prerequisites of lib/getndelim2.h.
  AC_REQUIRE([gt_TYPE_SSIZE_T])
  dnl Prerequisites of lib/getndelim2.c.
-  AC_REQUIRE([AC_HEADER_STDC])
+  :
])


Derek

--
               *8^)

Email: address@hidden

Get CVS support at <http://ximbiot.com>!
--
"Thank GOD Microsoft doesn't build airplanes."






reply via email to

[Prev in Thread] Current Thread [Next in Thread]