From: Eli Zaretskii <eliz@gnu.org>
To: Paul Eggert <eggert@cs.ucla.edu>
Cc: emacs-devel@gnu.org
Subject: Re: EARRAYSIZE
Date: Fri, 04 Apr 2014 11:14:31 +0300 [thread overview]
Message-ID: <838urla4uw.fsf@gnu.org> (raw)
In-Reply-To: <533E6795.40405@cs.ucla.edu>
> Date: Fri, 04 Apr 2014 01:04:37 -0700
> From: Paul Eggert <eggert@cs.ucla.edu>
> CC: emacs-devel@gnu.org
>
> Eli Zaretskii wrote:
> > I suggested ALEN because we have AREF and ASIZE. Maybe AELTS or
> > ALENGTH would be better.
>
> The most common name for this macro in other projects is probably
> ARRAY_SIZE. That's what's in libiberty, for example. There are other
> names (ARRAY_CARDINALITY, SIZEOF) but ARRAY_SIZE seems to be more popular.
The SIZE part was what I originally objected: "size" in C is mostly
measured in bytes, which this one isn't. ARRAY_SIZE will be confusing
since we already have ASIZE.
next prev parent reply other threads:[~2014-04-04 8:14 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-03 19:30 EARRAYSIZE Eli Zaretskii
2014-04-03 19:34 ` EARRAYSIZE Daniel Colascione
2014-04-03 20:10 ` EARRAYSIZE David Kastrup
2014-04-04 7:45 ` EARRAYSIZE Eli Zaretskii
2014-04-04 8:04 ` EARRAYSIZE Paul Eggert
2014-04-04 8:14 ` Eli Zaretskii [this message]
2014-04-04 8:41 ` EARRAYSIZE David Kastrup
2014-04-04 8:06 ` EARRAYSIZE Dmitry Antipov
2014-04-04 8:15 ` EARRAYSIZE Eli Zaretskii
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=838urla4uw.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=eggert@cs.ucla.edu \
--cc=emacs-devel@gnu.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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).