From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4693 invoked by alias); 15 Oct 2004 14:08:53 -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 4639 invoked from network); 15 Oct 2004 14:08:51 -0000 Received: from unknown (HELO Cantor.suse.de) (195.135.220.2) by sourceware.org with SMTP; 15 Oct 2004 14:08:51 -0000 Received: from hermes.suse.de (hermes-ext.suse.de [195.135.221.8]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (No client certificate requested) by Cantor.suse.de (Postfix) with ESMTP id AE774D82018; Fri, 15 Oct 2004 15:59:04 +0200 (CEST) To: Andrew Cagney Cc: gdb-patches@sources.redhat.com Subject: Re: [commit] malloc and sys/wait.h tweaks References: <416FD0F7.6010603@gnu.org> From: Andreas Schwab X-Yow: We just joined the civil hair patrol! Date: Fri, 15 Oct 2004 14:08:00 -0000 In-Reply-To: <416FD0F7.6010603@gnu.org> (Andrew Cagney's message of "Fri, 15 Oct 2004 09:30:31 -0400") Message-ID: User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-SW-Source: 2004-10/txt/msg00276.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: + -e 's/\([^x]\)malloc/\1xmalloc/g' \ + -e 's/\([^x]\)realloc/\1xrealloc/g' \ Andreas. -- Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux AG, Maxfeldstraße 5, 90409 Nürnberg, Germany Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."