[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-gnulib] 'hash' module patches to assume C89 or better
From: |
Paul Eggert |
Subject: |
[Bug-gnulib] 'hash' module patches to assume C89 or better |
Date: |
09 Sep 2003 12:42:08 -0700 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 |
I installed this:
2003-09-09 Paul Eggert <address@hidden>
* lib/hash.c (free, malloc): Remove decls.
Include <stdlib.h> unconditionally.
* m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
Index: lib/hash.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/hash.c,v
retrieving revision 1.32
diff -p -u -r1.32 hash.c
--- lib/hash.c 29 May 2003 07:21:59 -0000 1.32
+++ lib/hash.c 9 Sep 2003 19:38:06 -0000
@@ -27,27 +27,11 @@
#if HAVE_CONFIG_H
# include <config.h>
#endif
-#if HAVE_STDLIB_H
-# include <stdlib.h>
-#endif
#include <limits.h>
#include <stdbool.h>
#include <stdio.h>
-
-#ifndef HAVE_DECL_FREE
-"this configure-time declaration test was not run"
-#endif
-#if !HAVE_DECL_FREE
-void free ();
-#endif
-
-#ifndef HAVE_DECL_MALLOC
-"this configure-time declaration test was not run"
-#endif
-#if !HAVE_DECL_MALLOC
-char *malloc ();
-#endif
+#include <stdlib.h>
#if USE_OBSTACK
# include "obstack.h"
Index: m4/hash.m4
===================================================================
RCS file: /cvsroot/gnulib/gnulib/m4/hash.m4,v
retrieving revision 1.2
diff -p -u -r1.2 hash.m4
--- m4/hash.m4 16 Aug 2003 08:44:38 -0000 1.2
+++ m4/hash.m4 9 Sep 2003 19:38:06 -0000
@@ -1,4 +1,4 @@
-# hash.m4 serial 2
+# hash.m4 serial 3
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
@@ -10,6 +10,4 @@ AC_DEFUN([gl_HASH],
[
dnl Prerequisites of lib/hash.c.
AC_REQUIRE([AM_STDBOOL_H])
- AC_CHECK_HEADERS_ONCE(stdlib.h)
- AC_CHECK_DECLS_ONCE(free malloc)
])
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug-gnulib] 'hash' module patches to assume C89 or better,
Paul Eggert <=