Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Gary Benson <gbenson@redhat.com>
To: Joel Brobecker <brobecker@adacore.com>
Cc: gdb-patches@sourceware.org, Andreas Arnez <arnez@linux.vnet.ibm.com>
Subject: Re: [PATCH v2] New common function "startswith"
Date: Fri, 06 Mar 2015 09:48:00 -0000	[thread overview]
Message-ID: <20150306094807.GA4866@blade.nx> (raw)
In-Reply-To: <20150305181807.GC4604@adacore.com>

Joel Brobecker wrote:
> > This patch introduces a new inline common function "startswith"
> > which takes two string arguments and returns nonzero if the first
> > string starts with the second.  It also updates the 295 places
> > where this logic was written out longhand to use the new function.
> > 
> > Changes from the first version are:
> > 
> >  - The function is now inline.
> >  - The arguments got renamed to "string" and "pattern".
> >  - I found 115 more places to use it.
> > 
> > Regression tested on RHEL 6.6 x86_64.
> > 
> > Ok to commit?
> > --
> > gdb/ChangeLog:
> > 
> > 	* common/common-utils.h (startswith): New inline function.
> > 	All places where this logic was used updated to use the above.
> 
> I didn't read the entire file all that carefully, just the first
> few pages of it. If it was a mechanical change, and then tested
> as you say, it's good enough for me, I think.
> 
> OK to push!

Thanks Joel, I pushed it.

Cheers,
Gary

-- 
http://gbenson.net/


  reply	other threads:[~2015-03-06  9:48 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-03 13:10 [PATCH] " Gary Benson
2015-03-03 15:49 ` Andreas Arnez
2015-03-03 16:06 ` Joel Brobecker
2015-03-03 17:16   ` Gary Benson
2015-03-03 18:34     ` Andreas Arnez
2015-03-04  9:27       ` Gary Benson
2015-03-04 16:27         ` [PATCH v2] " Gary Benson
2015-03-05 18:18           ` Joel Brobecker
2015-03-06  9:48             ` Gary Benson [this message]
2015-03-04  8:45 ` [PATCH] " Doug Evans

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=20150306094807.GA4866@blade.nx \
    --to=gbenson@redhat.com \
    --cc=arnez@linux.vnet.ibm.com \
    --cc=brobecker@adacore.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