bug-gnulib
[Top][All Lists]
Advanced

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

[Bug-gnulib] getdate patch to assume C89 or better


From: Paul Eggert
Subject: [Bug-gnulib] getdate patch to assume C89 or better
Date: 08 Sep 2003 23:57:18 -0700
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

I installed this:

2003-09-08  Paul Eggert  <address@hidden>

        * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
        * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.

Index: lib/getdate.y
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/getdate.y,v
retrieving revision 1.79
diff -p -u -r1.79 getdate.y
--- lib/getdate.y       3 Sep 2003 07:11:45 -0000       1.79
+++ lib/getdate.y       9 Sep 2003 06:51:16 -0000
@@ -43,9 +43,7 @@
 
 #include <ctype.h>
 
-#if HAVE_STDLIB_H
-# include <stdlib.h> /* for `free'; used by Bison 1.27 */
-#endif
+#include <stdlib.h> /* for `free'; used by Bison 1.27 */
 
 #if STDC_HEADERS || (! defined isascii && ! HAVE_ISASCII)
 # define IN_CTYPE_DOMAIN(c) 1
@@ -67,9 +65,7 @@
    of `digit' even when the host does not conform to POSIX.  */
 #define ISDIGIT(c) ((unsigned) (c) - '0' <= 9)
 
-#if STDC_HEADERS || HAVE_STRING_H
-# include <string.h>
-#endif
+#include <string.h>
 
 #if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8) || __STRICT_ANSI__
 # define __attribute__(x)
Index: m4/getdate.m4
===================================================================
RCS file: /cvsroot/gnulib/gnulib/m4/getdate.m4,v
retrieving revision 1.1
diff -p -u -r1.1 getdate.m4
--- m4/getdate.m4       31 Dec 2002 13:42:06 -0000      1.1
+++ m4/getdate.m4       9 Sep 2003 06:51:16 -0000
@@ -1,5 +1,5 @@
-# getdate.m4 serial 1
-dnl Copyright (C) 2002 Free Software Foundation, Inc.
+# getdate.m4 serial 2
+dnl Copyright (C) 2002, 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
 dnl Public License, this file may be distributed as part of a program
@@ -16,7 +16,6 @@ AC_DEFUN([gl_GETDATE],
   AC_REQUIRE([jm_BISON])
   AC_REQUIRE([AC_FUNC_ALLOCA])
   AC_REQUIRE([AC_HEADER_STDC])
-  AC_CHECK_HEADERS_ONCE(stdlib.h string.h)
   AC_CHECK_FUNCS_ONCE(isascii)
   AC_STRUCT_TIMEZONE
   AC_REQUIRE([gl_TM_GMTOFF])




reply via email to

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