|
From: | Gary V. Vaughan |
Subject: | Re: [Bug-gnulib] Patch proposal: 1-gary-safe-xfree.patch |
Date: | Mon, 15 Sep 2003 17:13:49 +0100 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5b) Gecko/20030903 Thunderbird/0.2 |
Jim Meyering wrote:
Paul Eggert <address@hidden> wrote:I'd still like to get rid of XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, and CLONE, but that's a different matter, which I'll look into later.
I know that they evaluate parameters multiple times, but they are none-the-less genuinely useful shorthand that can't be done without macros. Do you have a similar replacement functionality in mind? Or do you find macros like these to be worse than the extra typing that would be required in their absence?
I like it. Thanks!2003-09-12 Paul Eggert <address@hidden> * modules/xalloc: Add m4/free-null.m4. Change maintainer to "all". * lib/xalloc.h (free) [!HAVE_FREE_NULL]: New macro. (rpl_free) [!HAVE_FREE_NULL]: New function. (XFREE): Use 'free'. Add a comment that XFREE is obsolescent. * m4/xalloc.m4 (gl_XALLOC): Require AC_C_INLINE, gl_FUNC_FREE_NULL. * m4/free-null.m4: New file.
+1 vote from me too. Please apply. Cheers, Gary. -- ())_. Gary V. Vaughan gary@(lilith.warpmail.net|gnu.org) ( '/ Research Scientist http://www.oranda.demon.co.uk ,_())____ / )= GNU Hacker http://www.gnu.org/software/libtool \' `& `(_~)_ Tech' Author http://sources.redhat.com/autobook =`---d__/
[Prev in Thread] | Current Thread | [Next in Thread] |