From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.devel Subject: Re: BINDING_STACK_SIZE => SPECPDL_INDEX Date: Thu, 11 Jul 2002 17:48:01 +0200 Sender: emacs-devel-admin@gnu.org Message-ID: References: <20020711150740.5C22.LEKTU@terra.es> <5xsn2qpbh9.fsf@kfs2.cua.dk> <20020711162739.5C2B.LEKTU@terra.es> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1026402695 32310 127.0.0.1 (11 Jul 2002 15:51:35 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 11 Jul 2002 15:51:35 +0000 (UTC) Cc: no-spam@cua.dk (Kim F. Storm), storm@cua.dk (Kim F. Storm), rms@gnu.org, emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17SgEB-0008P1-00 for ; Thu, 11 Jul 2002 17:51:35 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17SgNd-0005W7-00 for ; Thu, 11 Jul 2002 18:01:21 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.35 #1 (Debian)) id 17SgEp-0005PN-00; Thu, 11 Jul 2002 11:52:15 -0400 Original-Received: from ns.suse.de ([213.95.15.193] helo=Cantor.suse.de) by fencepost.gnu.org with esmtp (Exim 3.35 #1 (Debian)) id 17SgCZ-0005Km-00; Thu, 11 Jul 2002 11:49:55 -0400 Original-Received: from Hermes.suse.de (Charybdis.suse.de [213.95.15.201]) by Cantor.suse.de (Postfix) with ESMTP id CFB4914B29; Thu, 11 Jul 2002 17:49:54 +0200 (MEST) X-Authentication-Warning: sykes.suse.de: schwab set sender to schwab@suse.de using -f Original-To: Juanma Barranquero X-Yow: It's today's SPECIAL! In-Reply-To: <20020711162739.5C2B.LEKTU@terra.es> (Juanma Barranquero's message of "Thu, 11 Jul 2002 17:09:14 +0200") Original-Lines: 22 User-Agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.3.50 (ia64-suse-linux) Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:5661 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:5661 Juanma Barranquero writes: |> In alloc.c, for example, there's that code: |> |> for (bind = specpdl; bind != specpdl_ptr; bind++) |> { |> mark_object (&bind->symbol); |> mark_object (&bind->old_value); |> } |> |> Both specpdl and specpdl_ptr are pointers to the same structure, aren't |> they? So specpdl_ptr - specpdl is really a count and not an index. It is also an index into the specpdl array. Andreas. -- Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."