[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-gnulib] getndelim2 patch to assume C89 or better
From: |
Paul Eggert |
Subject: |
[Bug-gnulib] getndelim2 patch to assume C89 or better |
Date: |
09 Sep 2003 00:37:35 -0700 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 |
I installed this patch, taken from
<http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00078.html>:
2003-09-09 Derek Robert Price <address@hidden>
* lib/getndelim2.c: Assume stdlib.h per the C89 spec.
* getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
C89 spec.
Index: lib/getndelim2.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/getndelim2.c,v
retrieving revision 1.2
diff -p -u -r1.2 getndelim2.c
--- lib/getndelim2.c 18 Jul 2003 16:58:06 -0000 1.2
+++ lib/getndelim2.c 9 Sep 2003 07:30:40 -0000
@@ -27,11 +27,7 @@
/* Specification. */
#include "getndelim2.h"
-#if STDC_HEADERS
-# include <stdlib.h>
-#else
-char *malloc (), *realloc ();
-#endif
+#include <stdlib.h>
#include "unlocked-io.h"
Index: m4/getndelim2.m4
===================================================================
RCS file: /cvsroot/gnulib/gnulib/m4/getndelim2.m4,v
retrieving revision 1.2
diff -p -u -r1.2 getndelim2.m4
--- m4/getndelim2.m4 7 Aug 2003 10:49:28 -0000 1.2
+++ m4/getndelim2.m4 9 Sep 2003 07:30:40 -0000
@@ -1,4 +1,4 @@
-# getndelim2.m4 serial 1
+# getndelim2.m4 serial 2
dnl Copyright (C) 2003 Free Software Foundation, Inc.
dnl This file is free software, distributed under the terms of the GNU
dnl General Public License. As a special exception to the GNU General
@@ -17,6 +17,5 @@ AC_DEFUN([gl_PREREQ_GETNDELIM2],
[
dnl Prerequisites of lib/getndelim2.h.
AC_REQUIRE([gt_TYPE_SSIZE_T])
- dnl Prerequisites of lib/getndelim2.c.
- AC_REQUIRE([AC_HEADER_STDC])
+ dnl No prerequisites of lib/getndelim2.c.
])
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug-gnulib] getndelim2 patch to assume C89 or better,
Paul Eggert <=