From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: EMACS_INT cleanup Date: Thu, 23 Sep 2010 22:52:11 +0200 Organization: Programmerer Ingebrigtsen Message-ID: References: <83aan8uvy3.fsf@gnu.org> <8339t0uthi.fsf@gnu.org> <831v8kurwd.fsf@gnu.org> <83y6astcq2.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1285275218 29789 80.91.229.12 (23 Sep 2010 20:53:38 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 23 Sep 2010 20:53:38 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Sep 23 22:53:37 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 1OysnQ-0000Fa-5w for ged-emacs-devel@m.gmane.org; Thu, 23 Sep 2010 22:53:36 +0200 Original-Received: from localhost ([127.0.0.1]:42973 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OysnP-0006yy-Kd for ged-emacs-devel@m.gmane.org; Thu, 23 Sep 2010 16:53:35 -0400 Original-Received: from [140.186.70.92] (port=60355 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OysmH-0006Id-8l for emacs-devel@gnu.org; Thu, 23 Sep 2010 16:52:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OysmD-00056A-Od for emacs-devel@gnu.org; Thu, 23 Sep 2010 16:52:24 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:51435) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OysmD-00055o-Dt for emacs-devel@gnu.org; Thu, 23 Sep 2010 16:52:21 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OysmC-0008Ce-1m for emacs-devel@gnu.org; Thu, 23 Sep 2010 22:52:20 +0200 Original-Received: from cm-84.215.34.171.getinternet.no ([84.215.34.171]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 23 Sep 2010 22:52:20 +0200 Original-Received: from larsi by cm-84.215.34.171.getinternet.no with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 23 Sep 2010 22:52:20 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 28 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: cm-84.215.34.171.getinternet.no Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAJFBMVEVfVkbh4tX5+vP+/vvm 6d/Qz77b2sjCvqzt8er////+//6noY1nWjMvAAACbUlEQVQ4ja3TQU8TQRQA4IlGidnTNMvaKwOH bT3JotHeFhZTPIEyXRNOBXdEvWDMZmL2RCllONISw/QomtiehhhtyPw535sWjIk1MXHS0/v63szO e0Me6z+uLpkC+v9Ce/mr1p/OBr3xf7qtwbmDL7udoKKTw+OzNYz3yqq05CDW+uXr3s7OmzGcVPT9 JVUB2NU62T6tr9UnAL+56gqAbPrNuNNR++EyY0x1VLKaZe8BrJVcCEppAisWIuNS2hsAxShvQDzG uEoCIXgq7TcHGE+SumKhalMacJ4WlwiyQX0/abcYbhFTKq4gF1heYZyFuE3GHWzlwoc4JkSLrJ3E gRhDmlOor+YjWMPFUGGKdNDAfSFeg887h23aMU0/IGxMYDAB2CabgFItqKNBenBkOMkvgAysBBnq d8AMLBUxTyYxvYL6UYttmVr/xfBhydyitDmGhq/eXpTXvepn6xlrftwOxPhUm+qomMkM8SwhxJC7 JBshDFLfM6sQugi2UBw6KDb37r2zzTqjpSgKn3AJLB2YXOCqt1gU4V2JdeJdIpAZDi30fHfvCY3F K+NgzxtJ3hDSx4sPYwDOLYKxI5nzRkHhO7GDNBs3amA8J0RQaEscNF3Pr0FyI5qU+jAlIpUTIDBA siA4EtBw6JIsrmEE8B1TgozjWNk7DlwtAicTMCGwQ2HNFUAtkqNkKRayBAEuB2uZEcclsZAhNwEC 3Xv2YP9QzC4cQ3P7J9XhXNiHaR983Jg9Pn2+rbtlP3kKD6qsVkJ9AKAfHeh+taL1PGMV99R0pGsI Ux7nlPgU6P9zxl9hGF2vRcbmYVax9WzhJ0zj6nQ+dfOkAAAAAElFTkSuQmCC Mail-Copies-To: never X-Now-Playing: Oval's _Oh_: "Kastell 4" User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:Ax5fbZwdwJw8iybx36nybOtH2Rw= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:130701 Archived-At: Eli Zaretskii writes: > If ptrdiff_t works, it is a better solution, because SPECPDL_INDEX is > defined like this: > > extern struct specbinding *specpdl; > extern struct specbinding *specpdl_ptr; > ... > #define SPECPDL_INDEX() (specpdl_ptr - specpdl) > > So it returns a difference between two pointers, which is exactly what > ptrdiff_t is for (as its name hints). > > Casting it to an int will DTWT on a 64-bit host. Makes sense. I'll try ptrdiff_t and see what happens. Calls like int count = SPECPDL_INDEX (); should probably be changed then, too. -- (domestic pets only, the antidote for overdose, milk.) larsi@gnus.org * Lars Magne Ingebrigtsen