From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: EARRAYSIZE Date: Fri, 04 Apr 2014 10:41:37 +0200 Organization: Organization?!? Message-ID: <87zjk1ebb2.fsf@fencepost.gnu.org> References: <83ob0i9pn9.fsf@gnu.org> <533DB7D9.5070407@dancol.org> <878urmfa3j.fsf@fencepost.gnu.org> <83ioqpa679.fsf@gnu.org> <533E6795.40405@cs.ucla.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1396600938 16785 80.91.229.3 (4 Apr 2014 08:42:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 4 Apr 2014 08:42:18 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Apr 04 10:42:11 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 1WVzhT-0001IL-A9 for ged-emacs-devel@m.gmane.org; Fri, 04 Apr 2014 10:42:11 +0200 Original-Received: from localhost ([::1]:48502 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WVzhS-0006YO-Va for ged-emacs-devel@m.gmane.org; Fri, 04 Apr 2014 04:42:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33836) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WVzhK-0006XP-BT for emacs-devel@gnu.org; Fri, 04 Apr 2014 04:42:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WVzhE-000422-EZ for emacs-devel@gnu.org; Fri, 04 Apr 2014 04:42:02 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:55124) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WVzhE-00041q-7p for emacs-devel@gnu.org; Fri, 04 Apr 2014 04:41:56 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WVzh8-000134-8q for emacs-devel@gnu.org; Fri, 04 Apr 2014 10:41:50 +0200 Original-Received: from x2f461f8.dyn.telefonica.de ([2.244.97.248]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 04 Apr 2014 10:41:50 +0200 Original-Received: from dak by x2f461f8.dyn.telefonica.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 04 Apr 2014 10:41:50 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 23 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: x2f461f8.dyn.telefonica.de X-Face: 2FEFf>]>q>2iw=B6, xrUubRI>pR&Ml9=ao@P@i)L:\urd*t9M~y1^:+Y]'C0~{mAl`oQuAl \!3KEIp?*w`|bL5qr,H)LFO6Q=qx~iH4DN; i"; /yuIsqbLLCh/!U#X[S~(5eZ41to5f%E@'ELIi$t^ Vc\LWP@J5p^rst0+('>Er0=^1{]M9!p?&:\z]|;&=NP3AhB!B_bi^]Pfkw User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) Cancel-Lock: sha1:qiiWqOXWyrr2SlSajWigl6uMh3I= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:171307 Archived-At: Paul Eggert writes: > 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. I see it in the Git codebase. I don't have the Linux source available at the moment, but since it is involved with the same kind of crowd, I consider it likely that they use it as well. Even in Emacs, we have OBARRAY_SIZE defined as a member count rather than a byte count (there is no other "ARRAY_SIZE" string in Emacs so far). Can't be that confusing to people. -- David Kastrup