Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Jan Kratochvil <jan.kratochvil@redhat.com>
To: gdb-patches@sourceware.org
Subject: Re: [patch] Rename process_next_line variables
Date: Fri, 01 Jan 2010 08:47:00 -0000	[thread overview]
Message-ID: <20100101084657.GA30227@host0.dyn.jankratochvil.net> (raw)
In-Reply-To: <20100101084332.GA30042@host0.dyn.jankratochvil.net>

On Fri, 01 Jan 2010 09:43:32 +0100, Jan Kratochvil wrote:
2010-01-01  Jan Kratochvil  <jan.kratochvil@redhat.com>

	* 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'))


  reply	other threads:[~2010-01-01  8:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-01  8:43 Jan Kratochvil
2010-01-01  8:47 ` Jan Kratochvil [this message]
2010-01-01 10:37 ` Joel Brobecker
2010-01-01 11:02   ` Jan Kratochvil

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100101084657.GA30227@host0.dyn.jankratochvil.net \
    --to=jan.kratochvil@redhat.com \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox