copy strdup.c from libc again.
authorKarl Berry <karl@freefriends.org>
Tue, 26 Nov 2002 22:58:57 +0000 (22:58 +0000)
committerKarl Berry <karl@freefriends.org>
Tue, 26 Nov 2002 22:58:57 +0000 (22:58 +0000)
config/srclist-update
config/srclist.txt
lib/.cppi-disable
lib/ChangeLog
lib/strdup.c

index ef1bc29..74438f9 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/sh
-# $Id: srclist-update,v 1.4 2002-11-25 13:17:17 meyering Exp $
+# $Id: srclist-update,v 1.5 2002-11-26 22:58:57 karl Exp $
 #
 # Check for files in directory $1 being up to date, according to the
 # list on stdin.  Don't actually make any changes, just show the diffs.
@@ -13,8 +13,9 @@ fi
 verbose=false
 #chicken="echo (would)"
 
-srctmp=${TMPDIR-/tmp}/srclist.src
-dsttmp=${TMPDIR-/tmp}/srclist.dst
+: ${TMPDIR=/tmp}
+srctmp=$TMPDIR/srclist.src
+dsttmp=$TMPDIR/srclist.dst
 
 mydir=`dirname $0`
 test -r $mydir/srclistvars.sh && . $mydir/srclistvars.sh
index c0efcfa..a5eef51 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: srclist.txt,v 1.10 2002-11-25 22:24:53 karl Exp $
+# $Id: srclist.txt,v 1.11 2002-11-26 22:58:57 karl Exp $
 # Files for which we are not the source.  See ./srclistvars.sh for the
 # variable definitions.
 
@@ -26,7 +26,7 @@ $LIBCSRC/sysdeps/generic/strtoll.c    lib gpl
 $LIBCSRC/posix/getopt.h                        lib gpl
 $LIBCSRC/posix/getopt1.c               lib gpl
 $LIBCSRC/posix/regex.h                 lib gpl
-#$LIBCSRC/string/strdup.c              lib gpl
+$LIBCSRC/string/strdup.c               lib gpl
 $LIBCSRC/time/mktime.c                 lib gpl
 #
 # - libc/sysdeps/generic has memcpy.c, memmove.c, strcasecmp.c, but they
index 7bd80c2..81537e7 100644 (file)
@@ -9,3 +9,4 @@ md5.h
 obstack.h
 regex.c
 regex.h
+strdup.c
index 38b6653..3c12748 100644 (file)
@@ -1,3 +1,8 @@
+2002-11-26    <karl@gnu.org>
+
+       * strdup.c: copy from libc again, with jim's ok.
+       * .cppi-disable: re-add strdup.c
+
 2002-11-25    <karl@gnu.org>
 
        * strtoll.c: copy from libc, meaning we now #include <strtol.c>
index 06260fa..5aa09a6 100644 (file)
@@ -15,8 +15,8 @@
    with this program; if not, write to the Free Software Foundation,
    Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 
-#if HAVE_CONFIG_H
-# include <config.h>
+#ifdef HAVE_CONFIG_H
+#include <config.h>
 #endif
 
 #if defined _LIBC || defined  STDC_HEADERS
@@ -34,9 +34,7 @@ char *memcpy ();
 # define __strdup strdup
 #endif
 
-/* Duplicate S, returning an identical malloc'd string.
-   Return NULL if out of memory. */
-
+/* Duplicate S, returning an identical malloc'd string.  */
 char *
 __strdup (const char *s)
 {