Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Gary Benson <gbenson@redhat.com>
To: Pedro Alves <palves@redhat.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH] Introduce new shared function remote_fileio_to_fio_error
Date: Thu, 09 Apr 2015 13:21:00 -0000	[thread overview]
Message-ID: <20150409132132.GA30389@blade.nx> (raw)
In-Reply-To: <55265BCC.2080209@redhat.com>

Pedro Alves wrote:
> On 04/09/2015 11:50 AM, Gary Benson wrote:
> > Pedro Alves wrote:
> > > On 04/09/2015 10:51 AM, Gary Benson wrote:
> > > > This commit introduces a new shared function to replace three
> > > > identical functions in various places in the codebase.
> > > >
> > > > Ok to commit?
> > >
> > > This is OK, but I think the "remote" in the name is really wrong.
> > > This is converting a _host_ errno to a fileio error.  I think the
> > > function name should reflect that, and not mention remote at all.
> > 
> > Yeah, I kind of thought this when I was writing the patch, but I
> > was also thinking about other things :)
> > 
> > I'm happy to make another patch to rename common-remote-fileio.*
> > to common-fileio.* and rename the functions accordingly.
> 
> I'd prefer even dropping the "common" from the file name.
> host-fileio.* for example would indicate what the file actually does.

Or just fileio.*.

> > Should I push this one first and then make a second, or would you
> > like the rename first and an updated version of this patch second?
> > I'd prefer the former (less work for me!) but I can do the latter
> > if you want it that way.
> 
> Yeah, push what you have first.

I pushed it.  Will mail the renaming patch soon.

Cheers,
Gary

-- 
http://gbenson.net/


  reply	other threads:[~2015-04-09 13:21 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-09  9:51 Gary Benson
2015-04-09 10:17 ` Pedro Alves
2015-04-09 10:50   ` Gary Benson
2015-04-09 11:00     ` Pedro Alves
2015-04-09 13:21       ` Gary Benson [this message]
2015-04-09 14:12         ` [PATCH] Rename common-remote-fileio.[ch] as fileio.[ch] Gary Benson
2015-04-09 14:18           ` Gary Benson
2015-04-09 14:23             ` Pedro Alves
2015-04-09 16:04               ` Gary Benson

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=20150409132132.GA30389@blade.nx \
    --to=gbenson@redhat.com \
    --cc=gdb-patches@sourceware.org \
    --cc=palves@redhat.com \
    /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