From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: EARRAYSIZE Date: Thu, 03 Apr 2014 22:30:50 +0300 Message-ID: <83ob0i9pn9.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1396553468 9389 80.91.229.3 (3 Apr 2014 19:31:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 3 Apr 2014 19:31:08 +0000 (UTC) Cc: emacs-devel@gnu.org To: Daniel Colascione Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Apr 03 21:31:01 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WVnLl-0007OJ-2W for ged-emacs-devel@m.gmane.org; Thu, 03 Apr 2014 21:30:57 +0200 Original-Received: from localhost ([::1]:45961 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WVnLk-0007SX-FX for ged-emacs-devel@m.gmane.org; Thu, 03 Apr 2014 15:30:56 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35972) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WVnLa-0007Ct-Fq for emacs-devel@gnu.org; Thu, 03 Apr 2014 15:30:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WVnLR-0003Am-HR for emacs-devel@gnu.org; Thu, 03 Apr 2014 15:30:46 -0400 Original-Received: from mtaout28.012.net.il ([80.179.55.184]:42486) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WVnLR-0003Ae-A3 for emacs-devel@gnu.org; Thu, 03 Apr 2014 15:30:37 -0400 Original-Received: from conversion-daemon.mtaout28.012.net.il by mtaout28.012.net.il (HyperSendmail v2007.08) id <0N3G00N00YS5IC00@mtaout28.012.net.il> for emacs-devel@gnu.org; Thu, 03 Apr 2014 22:30:09 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout28.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N3G00PQJZI81Z10@mtaout28.012.net.il>; Thu, 03 Apr 2014 22:30:09 +0300 (IDT) X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.179.55.184 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:171283 Archived-At: +/* 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?