From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5534 invoked by alias); 26 Jun 2004 03:45:50 -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 5520 invoked from network); 26 Jun 2004 03:45:49 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org with SMTP; 26 Jun 2004 03:45:49 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.10/8.12.10) with ESMTP id i5Q3jne3018683; Fri, 25 Jun 2004 23:45:49 -0400 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [172.16.52.156]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id i5Q3jm020908; Fri, 25 Jun 2004 23:45:48 -0400 Received: from livre.redhat.lsd.ic.unicamp.br (vpn64-28.boston.redhat.com [172.16.66.28]) by pobox.corp.redhat.com (8.12.8/8.12.8) with ESMTP id i5Q3jlpI012568; Fri, 25 Jun 2004 23:45:47 -0400 Received: from livre.redhat.lsd.ic.unicamp.br (livre.redhat.lsd.ic.unicamp.br [127.0.0.1]) by livre.redhat.lsd.ic.unicamp.br (8.12.11/8.12.11) with ESMTP id i5Q3jhFH006745; Sat, 26 Jun 2004 00:45:43 -0300 Received: (from aoliva@localhost) by livre.redhat.lsd.ic.unicamp.br (8.12.11/8.12.11/Submit) id i5Q3jeUX006741; Sat, 26 Jun 2004 00:45:40 -0300 To: Bernardo Innocenti Cc: Ian Lance Taylor , 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> <40DCD0EE.9010208@develer.com> <40DCE1C8.4020202@develer.com> From: Alexandre Oliva Organization: Red Hat Global Engineering Services Compiler Team Date: Sat, 26 Jun 2004 03:45:00 -0000 In-Reply-To: <40DCE1C8.4020202@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/msg00550.txt.bz2 On Jun 25, 2004, Bernardo Innocenti wrote: > +#define xcnewvec(T, N) (T *) xcalloc (N, sizeof (T)) > +#define xresize(T, P, S) (T *) xrealloc (P, S) > +#define xresizevec(T, P, N) (T *) xrealloc (P, sizeof (T) * (N)) > +#define xobnew(O, T) (T *) obstack_alloc (O, sizeof (T)) You're missing parentheses around N, P (twice), S and O. -- Alexandre Oliva http://www.ic.unicamp.br/~oliva/ Red Hat Compiler Engineer aoliva@{redhat.com, gcc.gnu.org} Free Software Evangelist oliva@{lsd.ic.unicamp.br, gnu.org}