From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14118 invoked by alias); 26 Jun 2004 01:14:40 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 14093 invoked from network); 26 Jun 2004 01:14:39 -0000 Received: from unknown (209.128.65.135) by sourceware.org with QMTP; 26 Jun 2004 01:14:39 -0000 Received: (qmail 26121 invoked by uid 10); 26 Jun 2004 01:14:38 -0000 Received: (qmail 15255 invoked by uid 500); 26 Jun 2004 01:14:29 -0000 Mail-Followup-To: gcc-patches@gcc.gnu.org, gdb-patches@sources.redhat.com, binutils@sources.redhat.com, dj@redhat.com, bernie@develer.com From: Ian Lance Taylor To: Bernardo Innocenti Cc: GCC Patches , gdb-patches@sources.redhat.com, binutils@sources.redhat.com, DJ Delorie Subject: Re: [top-level] C++-friendly allocators for libiberty References: <40DCC86A.4010306@develer.com> Date: Sat, 26 Jun 2004 01:14:00 -0000 In-Reply-To: <40DCC86A.4010306@develer.com> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2004-06/txt/msg00544.txt.bz2 Bernardo Innocenti writes: > 2004-06-26 Bernardo Innocenti > > * include/libiberty.h (xnew, xcnew, xnewvec, xcnewvec, xobnew): Move > here from libcpp/internal.h. > (xcrealloc, xdelete, xdeletevec): New macros. > > libcpp: > > 2004-06-26 Bernardo Innocenti > > * internal.h (xnew, xcnew, xnewvec, xcnewvec, xobnew): Move these > macros to include/libiberty.h. The libiberty part is fine except for xcrealloc. That name clearly shouldn't have a 'c' in it. Also, it doesn't seem to fit the general copying of C++ names. In C++ there isn't realloc to correpond to new and delete. Still, I suppose C needs realloc. But we can't use xrealloc, because that is taken. So how about xresize? Ian