From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32639 invoked by alias); 15 Oct 2004 14:44:01 -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 32628 invoked from network); 15 Oct 2004 14:44:00 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org with SMTP; 15 Oct 2004 14:44:00 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.10) with ESMTP id i9FEhtbl010788 for ; Fri, 15 Oct 2004 10:44:00 -0400 Received: from localhost.redhat.com (porkchop.devel.redhat.com [172.16.58.2]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id i9FEhmr25709; Fri, 15 Oct 2004 10:43:48 -0400 Received: from gnu.org (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 51A4128CF; Fri, 15 Oct 2004 10:43:43 -0400 (EDT) Message-ID: <416FE21F.6070203@gnu.org> Date: Fri, 15 Oct 2004 14:44:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-GB; rv:1.4.1) Gecko/20041009 MIME-Version: 1.0 To: Andreas Schwab Cc: gdb-patches@sources.redhat.com Subject: Re: [commit] malloc and sys/wait.h tweaks References: <416FD0F7.6010603@gnu.org> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004-10/txt/msg00279.txt.bz2 > Andrew Cagney writes: > > >>> @@ -1575,8 +1575,8 @@ po/$(PACKAGE).pot: force >>> -e '/extern.*realloc/d' \ >>> -e '/extern.*free/d' \ >>> -e '/include.*malloc.h/d' \ >>> - -e 's/malloc/xmalloc/g' \ >>> - -e 's/realloc/xrealloc/g' \ >>> + -e 's/[^x]malloc/xmalloc/g' \ >>> + -e 's/[^x]realloc/xrealloc/g' \ > > > This replaces any character before malloc with 'x' which may introduce > syntax errors. The following should work better: Ok. > + -e 's/\([^x]\)malloc/\1xmalloc/g' \ > + -e 's/\([^x]\)realloc/\1xrealloc/g' \ > > Andreas.