+2007-01-26 Bruno Haible <bruno@clisp.org>
+
+ * Makefile.am (LIBADD_SOURCE): Remove strdup.h.
+
+2007-01-26 Paul Eggert <eggert@cs.ucla.edu>
+
+ * strdup.h: Remove file.
+ * strdup.c: Don't include no-longer-existent include files. Rely on
+ <string.h> instead.
+ * hard-locale.c: Likewise.
+
2006-11-03 Bruno Haible <bruno@clisp.org>
Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
## Makefile for libgrep directory in GNU gettext package.
-## Copyright (C) 2005-2006 Free Software Foundation, Inc.
+## Copyright (C) 2005-2007 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.h strdup.c
+ strdup.c
# How to build libgrep.a.
libgrep_a_LIBADD = @LIBGREPOBJS@
/* hard-locale.c -- Determine whether a locale is hard.
- Copyright (C) 1997-1999, 2002-2005 Free Software Foundation, Inc.
+ Copyright (C) 1997-1999, 2002-2005, 2007 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
#include <stdlib.h>
#include <string.h>
-#include "strdup.h"
-
#ifdef __GLIBC__
# define GLIBC_VERSION __GLIBC__
#else
-/* Copyright (C) 1991, 1996, 1997, 1998, 2002, 2003, 2004, 2006 Free
+/* Copyright (C) 1991, 1996, 1997, 1998, 2002, 2003, 2004, 2006, 2007 Free
Software Foundation, Inc.
This file is part of the GNU C Library.
#ifndef _LIBC
# include <config.h>
-/* Get specification. */
-# include "strdup.h"
#endif
-#include <stdlib.h>
+/* Get specification. */
#include <string.h>
+#include <stdlib.h>
+
#undef __strdup
#ifdef _LIBC
# undef strdup
+++ /dev/null
-/* strdup.h -- duplicate a string
- Copyright (C) 2004 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
- the Free Software Foundation; either version 2, 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 STRDUP_H_
-#define STRDUP_H_
-
-/* Get strdup declaration, if available. */
-#include <string.h>
-
-#if defined HAVE_DECL_STRDUP && !HAVE_DECL_STRDUP && !defined strdup
-/* Duplicate S, returning an identical malloc'd string. */
-extern char *strdup (const char *s);
-#endif
-
-#endif /* STRDUP_H_ */