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: Re: EMACS_INT cleanup Date: Fri, 24 Sep 2010 09:51:08 +0200 Message-ID: <83pqw3tw9f.fsf@gnu.org> References: <83aan8uvy3.fsf@gnu.org> <8339t0uthi.fsf@gnu.org> <831v8kurwd.fsf@gnu.org> <83wrqctcha.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1285314682 29939 80.91.229.12 (24 Sep 2010 07:51:22 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 24 Sep 2010 07:51:22 +0000 (UTC) Cc: larsi@gnus.org, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 24 09:51:20 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Oz33v-00050B-0Z for ged-emacs-devel@m.gmane.org; Fri, 24 Sep 2010 09:51:19 +0200 Original-Received: from localhost ([127.0.0.1]:55117 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oz33u-0005x9-DF for ged-emacs-devel@m.gmane.org; Fri, 24 Sep 2010 03:51:18 -0400 Original-Received: from [140.186.70.92] (port=35613 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oz33n-0005vw-Vt for emacs-devel@gnu.org; Fri, 24 Sep 2010 03:51:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oz33i-0004Tj-3C for emacs-devel@gnu.org; Fri, 24 Sep 2010 03:51:11 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:49204) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oz33h-0004TI-Su for emacs-devel@gnu.org; Fri, 24 Sep 2010 03:51:06 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0L9800F00QZVXX00@a-mtaout22.012.net.il> for emacs-devel@gnu.org; Fri, 24 Sep 2010 09:51:04 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.127.203.3]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0L9800F84R53U830@a-mtaout22.012.net.il>; Fri, 24 Sep 2010 09:51:04 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:130732 Archived-At: > From: Stefan Monnier > Cc: Lars Magne Ingebrigtsen , emacs-devel@gnu.org > Date: Fri, 24 Sep 2010 00:30:20 +0200 > > > Better make it a type that is 64-bit wide on a 64-bit host. Perhaps > > #define SPECPDL_INDEX() ((unsigned long) (specpdl_ptr - specpdl)) > > What's wrong with ptrdiff_t? Nothing (it was my original suggestion), except that it's more work for little or no gain. We normally put the result of SPECPDL_INDEX into an int, so using ptrdiff_t would mean change all those variables into ptrdiff_t as well -- and for no good reason, because we can hardly have so many unwind_protect'ed levels.