Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Joel Brobecker <brobecker@adacore.com>
To: Pierre Muller <pierre.muller@ics-cnrs.unistra.fr>
Cc: 'Pedro Alves' <pedro@codesourcery.com>, gdb-patches@sourceware.org
Subject: Re: [ARI] Remove all editCase warnings
Date: Wed, 05 May 2010 14:54:00 -0000	[thread overview]
Message-ID: <20100505145409.GN2768@adacore.com> (raw)
In-Reply-To: <000901caec31$d109e640$731db2c0$@muller@ics-cnrs.unistra.fr>

I agree that this is one of these ARI rules which bring little benefit.
Or perhaps it was meant to catch CamelCase names rather than any
uppercase letter in function names? In any case, here are my 2 cents...


> > >         * ia64-tdep.c (slotN_contents): Rename to...
> > >         (slotn_contents): ...this.
> > >         (replace_slotN_contents): Rename to...
> > >         (replace_slotn_contents): ...this.
> > 
> > No comments.  But I bet whoever wrote this was well aware
> > of our coding conventions and still chose an uppercase N.

Wow, the file was introduced in March 2000, it's 10 years old!
In any case, it was introduced by Kevin Buettner.

If I was the author, I'd have no preference over N or n. But if we
change it to n, can we add an underscore? slot_n_contents and
replace_slot_n_contents? I think that will be slightly easier
to read...

>   - splay_compare_CORE_ADDR_ptr in addrmap.c
> there are numerous other functions refereeing to CORE_ADDR type without
> using uppercase:

It's fine to change it to splay_compare_core_addr_ptr AFAIAC.

>   - the other two are
> proc_get_LDT_entry and procfs_find_LDT_entry in procfs.c
> 
> these two functions are only called by 
> ps_lgetLDT inside sol-thread.c, which is, according to the comment
> required by libthread_db solaris library. 
>   But I do not know if this also justifies propagating the uppercase use
> to the called functions in procfs.c

No preference on my end.  We probably already have some routines that
use lowercase accronyms, so it wouldn't be something new. But it would
be fine to tolerate the use of uppercase accronyms too (IMO).

-- 
Joel


  reply	other threads:[~2010-05-05 14:54 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-04 23:25 Pierre Muller
2010-05-04 23:32 ` Stan Shebs
2010-05-04 23:44 ` Pedro Alves
2010-05-04 23:51   ` Michael Snyder
2010-05-05  9:03   ` Pierre Muller
2010-05-05 14:54     ` Joel Brobecker [this message]
2010-05-05 15:11     ` Pedro Alves
2010-05-05 16:09       ` Pierre Muller
2010-05-05 16:55         ` Joel Brobecker
2010-05-05 17:15           ` Stan Shebs
2010-05-05 21:03             ` Pierre Muller
2010-05-06 18:10               ` Joel Brobecker
2010-05-05 18:34           ` Daniel Jacobowitz
2010-05-05 18:37             ` Joel Brobecker

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=20100505145409.GN2768@adacore.com \
    --to=brobecker@adacore.com \
    --cc=gdb-patches@sourceware.org \
    --cc=pedro@codesourcery.com \
    --cc=pierre.muller@ics-cnrs.unistra.fr \
    /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