From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.devel Subject: Re: EMACS_INT cleanup Date: Fri, 24 Sep 2010 11:04:28 +0200 Message-ID: References: <83aan8uvy3.fsf@gnu.org> <8339t0uthi.fsf@gnu.org> <831v8kurwd.fsf@gnu.org> <83wrqctcha.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1285319440 17075 80.91.229.12 (24 Sep 2010 09:10:40 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 24 Sep 2010 09:10:40 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 24 11:10:39 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 1Oz4Ig-0003tB-Q6 for ged-emacs-devel@m.gmane.org; Fri, 24 Sep 2010 11:10:39 +0200 Original-Received: from localhost ([127.0.0.1]:49578 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oz4If-0002ZF-OS for ged-emacs-devel@m.gmane.org; Fri, 24 Sep 2010 05:10:37 -0400 Original-Received: from [140.186.70.92] (port=54288 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oz4II-0002PK-GN for emacs-devel@gnu.org; Fri, 24 Sep 2010 05:10:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oz4Cl-00082g-RF for emacs-devel@gnu.org; Fri, 24 Sep 2010 05:04:35 -0400 Original-Received: from mail-out.m-online.net ([212.18.0.10]:54078) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oz4Cl-00082R-I1 for emacs-devel@gnu.org; Fri, 24 Sep 2010 05:04:31 -0400 Original-Received: from frontend1.mail.m-online.net (unknown [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 4B6B91C00558 for ; Fri, 24 Sep 2010 11:04:29 +0200 (CEST) Original-Received: from hase.home (ppp-93-104-152-223.dynamic.mnet-online.de [93.104.152.223]) by mail.mnet-online.de (Postfix) with ESMTP id D9CF51C001DA for ; Fri, 24 Sep 2010 11:04:28 +0200 (CEST) X-Yow: Hello. I know the divorce rate among unmarried Catholic Alaskan females!! In-Reply-To: (Lars Magne Ingebrigtsen's message of "Fri, 24 Sep 2010 02:07:26 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:130739 Archived-At: Lars Magne Ingebrigtsen writes: > Stefan Monnier writes: > >> Yes, but using ptrdiff_t will have the advantage that it's just right. >> Using int requires a cast and an argument for why int is sufficiently >> large in practice. Casts are bad, and human-arguments are only OK when >> we can't argue directly with the compiler. > > Yes, I agree. It would be cleaner to fix the users to all be > ptrdiff_t. Or a dedicated typedef. The ptrdiff_t is an implementation detail of the SPECPDL_SIZE macro. Also, specpdl_size should be adjusted. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."