[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: xstrndup and config.h
From: |
Simon Josefsson |
Subject: |
Re: xstrndup and config.h |
Date: |
Sat, 28 Oct 2006 20:09:13 +0200 |
On Sat, 2006-10-28 at 11:41 -0600, Eric Blake wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Simon, is this okay to install?
Sure, please go ahead.
/Simon
> It is the last module in current use by
> M4 that still doesn't assume <config.h>. You have several other modules
> worth visiting as well, but I didn't provide a patch for them.
>
> 2006-10-28 Eric Blake <address@hidden>
>
> * lib/xstrndup.c: Assume config.h.
>
> - --
> Life is short - so eat dessert first!
>
> Eric Blake address@hidden
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.2.1 (Cygwin)
> Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFFQ5ZZ84KuGfSFAYARAiTDAKDYa88WJw75Svu/3bUJTSubucr7bwCguWOb
> QB60xYFCEC1YxZcLuGDgSUQ=
> =cqaJ
> -----END PGP SIGNATURE-----
> plain text document attachment (gnulib.patch26)
> Index: lib/xstrndup.c
> ===================================================================
> RCS file: /sources/gnulib/gnulib/lib/xstrndup.c,v
> retrieving revision 1.3
> diff -u -p -r1.3 xstrndup.c
> --- lib/xstrndup.c 19 Sep 2005 17:28:15 -0000 1.3
> +++ lib/xstrndup.c 28 Oct 2006 17:40:51 -0000
> @@ -1,6 +1,6 @@
> /* Duplicate a bounded initial segment of a string, with out-of-memory
> checking.
> - Copyright (C) 2003 Free Software Foundation, Inc.
> + Copyright (C) 2003, 2006 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
> @@ -16,9 +16,7 @@
> along with this program; if not, write to the Free Software Foundation,
> Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
>
> -#ifdef HAVE_CONFIG_H
> -# include <config.h>
> -#endif
> +#include <config.h>
>
> /* Specification. */
> #include "xstrndup.h"