From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10980 invoked by alias); 1 Jan 2010 08:47:07 -0000 Received: (qmail 10959 invoked by uid 22791); 1 Jan 2010 08:47:06 -0000 X-SWARE-Spam-Status: No, hits=-0.9 required=5.0 tests=AWL,BAYES_00,FH_DATE_PAST_20XX,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 01 Jan 2010 08:47:01 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o018l02L003020 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 1 Jan 2010 03:47:00 -0500 Received: from host0.dyn.jankratochvil.net (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o018kwpF012919 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 1 Jan 2010 03:47:00 -0500 Received: from host0.dyn.jankratochvil.net (localhost [127.0.0.1]) by host0.dyn.jankratochvil.net (8.14.3/8.14.3) with ESMTP id o018kvcG030258 for ; Fri, 1 Jan 2010 09:46:57 +0100 Received: (from jkratoch@localhost) by host0.dyn.jankratochvil.net (8.14.3/8.14.3/Submit) id o018kvJk030257 for gdb-patches@sourceware.org; Fri, 1 Jan 2010 09:46:57 +0100 Date: Fri, 01 Jan 2010 08:47:00 -0000 From: Jan Kratochvil To: gdb-patches@sourceware.org Subject: Re: [patch] Rename process_next_line variables Message-ID: <20100101084657.GA30227@host0.dyn.jankratochvil.net> References: <20100101084332.GA30042@host0.dyn.jankratochvil.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100101084332.GA30042@host0.dyn.jankratochvil.net> User-Agent: Mutt/1.5.20 (2009-08-17) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2010-01/txt/msg00009.txt.bz2 On Fri, 01 Jan 2010 09:43:32 +0100, Jan Kratochvil wrote: 2010-01-01 Jan Kratochvil * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as p_start. Change != comparisons to > and < comparisons. Updated the ChangeLog entry. Sorry, Jan > - while (p1 != p && (p1[-1] == ' ' || p1[-1] == '\t')) > + while (p_end > p && (p_end[-1] == ' ' || p_end[-1] == '\t')) > - while (p2 != p1 && (*p2 == ' ' || *p2 == '\t')) > + while (p_start < p_end && (*p_start == ' ' || *p_start == '\t'))