[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-gnulib] 'rename' module patch to assume C89 or better
From: |
Paul Eggert |
Subject: |
[Bug-gnulib] 'rename' module patch to assume C89 or better |
Date: |
09 Sep 2003 23:45:16 -0700 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 |
I installed this:
2003-09-09 Paul Eggert <address@hidden>
* rename.c: Include <stdlib.h>, <string.h> unconditionally.
(free): Remove decl.
* rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
free.
Index: lib/rename.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/rename.c,v
retrieving revision 1.20
diff -p -u -r1.20 rename.c
--- lib/rename.c 31 Jan 2003 15:47:04 -0000 1.20
+++ lib/rename.c 10 Sep 2003 06:19:35 -0000
@@ -25,25 +25,11 @@
#undef rename
#include <stdio.h>
-#if HAVE_STDLIB_H
-# include <stdlib.h>
-#endif
-
-#if HAVE_STRING_H
-# include <string.h>
-#else
-# include <strings.h>
-#endif
+#include <stdlib.h>
+#include <string.h>
#include "dirname.h"
#include "xalloc.h"
-
-#ifndef HAVE_DECL_FREE
-"this configure-time declaration test was not run"
-#endif
-#if !HAVE_DECL_FREE
-void free ();
-#endif
/* Rename the file SRC_PATH to DST_PATH, removing any trailing
slashes from SRC_PATH. Needed for SunOS 4.1.1_U1. */
Index: m4/rename.m4
===================================================================
RCS file: /cvsroot/gnulib/gnulib/m4/rename.m4,v
retrieving revision 1.8
diff -p -u -r1.8 rename.m4
--- m4/rename.m4 31 Jan 2003 15:47:03 -0000 1.8
+++ m4/rename.m4 10 Sep 2003 06:19:35 -0000
@@ -1,4 +1,4 @@
-#serial 5
+#serial 6
dnl From Volker Borchert.
dnl Determine whether rename works for source paths with a trailing slash.
@@ -43,8 +43,4 @@ AC_DEFUN([vb_FUNC_RENAME],
])
# Prerequisites of lib/rename.c.
-AC_DEFUN([gl_PREREQ_RENAME],
-[
- AC_CHECK_HEADERS_ONCE(stdlib.h string.h)
- AC_CHECK_DECLS_ONCE(free)
-])
+AC_DEFUN([gl_PREREQ_RENAME], [:])
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug-gnulib] 'rename' module patch to assume C89 or better,
Paul Eggert <=