+2009-08-15 Bruno Haible <bruno@clisp.org>
+
+ Stop using gnulib module 'strdup'.
+ * Makefile.am (distcheck-hook): Don't compare strdup.c.
+
2009-08-14 Bruno Haible <bruno@clisp.org>
* autogen.sh: Invoke gnulib-tool also for gettext-runtime/libasprintf.
cmp -s gettext-tools/examples/hello-java-awt/m4/TestAWT.class gettext-tools/examples/hello-java-swing/m4/TestAWT.class
test "`sed 1,15d gnulib-local/lib/alloca.in.h | md5sum`" = "`sed 1,15d gettext-runtime/libasprintf/alloca.in.h | md5sum`"
cmp -s gettext-tools/libgrep/memchr.c gettext-tools/gnulib-lib/memchr.c
- cmp -s gettext-tools/libgrep/strdup.c gettext-tools/gnulib-lib/strdup.c
# DJGPP port.
+2009-08-15 Bruno Haible <bruno@clisp.org>
+
+ Stop using gnulib module 'strdup'.
+ * strdup.c: Remove file.
+ * Makefile.am (LIBADD_SOURCE): Remove strdup.c.
+
2008-04-28 Eric Blake <ebb9@byu.net>
* memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
## Makefile for libgrep directory in GNU gettext package.
-## Copyright (C) 2005-2007 Free Software Foundation, Inc.
+## Copyright (C) 2005-2007, 2009 Free Software Foundation, Inc.
##
## This program is free software: you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
LIBADD_SOURCE = \
memchr.c \
- regex.h regex.c \
- strdup.c
+ regex.h regex.c
# How to build libgrep.a.
libgrep_a_LIBADD = @LIBGREPOBJS@
+++ /dev/null
-/* Copyright (C) 1991, 1996, 1997, 1998, 2002, 2003, 2004, 2006, 2007 Free
- Software Foundation, Inc.
-
- This file is part of the GNU C Library.
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3, or (at your option)
- any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License along
- with this program; if not, write to the Free Software Foundation,
- Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
-
-#ifndef _LIBC
-# include <config.h>
-#endif
-
-/* Get specification. */
-#include <string.h>
-
-#include <stdlib.h>
-
-#undef __strdup
-#ifdef _LIBC
-# undef strdup
-#endif
-
-#ifndef weak_alias
-# define __strdup strdup
-#endif
-
-/* Duplicate S, returning an identical malloc'd string. */
-char *
-__strdup (const char *s)
-{
- size_t len = strlen (s) + 1;
- void *new = malloc (len);
-
- if (new == NULL)
- return NULL;
-
- return (char *) memcpy (new, s, len);
-}
-#ifdef libc_hidden_def
-libc_hidden_def (__strdup)
-#endif
-#ifdef weak_alias
-weak_alias (__strdup, strdup)
-#endif
+2009-08-15 Bruno Haible <bruno@clisp.org>
+
+ Stop using gnulib module 'strdup'.
+ * libgrep.m4 (gt_LIBGREP): Don't invoke gl_FUNC_STRDUP.
+
2009-08-03 Bruno Haible <bruno@clisp.org>
* setlocale.m4 (gt_SETLOCALE): Fix displayed message with
-# libgrep.m4 serial 3 (gettext-0.18)
-dnl Copyright (C) 2005-2006, 2008 Free Software Foundation, Inc.
+# libgrep.m4 serial 4 (gettext-0.18)
+dnl Copyright (C) 2005-2006, 2008-2009 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gt_LIBGREP_REPLACE_FUNCS]))
gl_HARD_LOCALE
gl_FUNC_MEMCHR
- gl_FUNC_STRDUP
gl_INCLUDED_REGEX([libgrep/regex.c])
m4_popdef([AC_REPLACE_FUNCS])
m4_popdef([AC_LIBOBJ])
+2009-08-15 Bruno Haible <bruno@clisp.org>
+
+ Stop using gnulib module 'strdup'.
+ * modules/gettext-tools-misc (Files): Remove m4/strdup.m4.
+
2009-08-10 Bruno Haible <bruno@clisp.org>
Avoid gcc warning on Cygwin.
m4/hard-locale.m4
m4/mbrtowc.m4
m4/memchr.m4
-m4/strdup.m4
m4/locale-fr.m4
m4/locale-ja.m4