From: Eli Zaretskii <eliz@gnu.org>
To: Daniel Colascione <dan.colascione@gmail.com>
Cc: emacs-devel@gnu.org
Subject: EARRAYSIZE
Date: Thu, 03 Apr 2014 22:30:50 +0300 [thread overview]
Message-ID: <83ob0i9pn9.fsf@gnu.org> (raw)
+/* Find number of elements in array */
+#define EARRAYSIZE(arr) (sizeof (arr) / sizeof ((arr)[0]))
I find the name of this macro to be unfortunate: what it returns is
not "size" in the accepted meaning of that word.
How about ALEN, or ARRAYELTS instead?
next reply other threads:[~2014-04-03 19:30 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-03 19:30 Eli Zaretskii [this message]
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 ` EARRAYSIZE Eli Zaretskii
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83ob0i9pn9.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=dan.colascione@gmail.com \
--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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.