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: Intervals crash Date: Mon, 27 Sep 2010 04:34:19 -0400 Message-ID: References: <87aan82uar.fsf@stupidchicken.com> <83bp7ouw2u.fsf@gnu.org> <87bp7n3c19.fsf@uwakimon.sk.tsukuba.ac.jp> <83iq1vtv3y.fsf@gnu.org> <87wrqb1q2b.fsf@uwakimon.sk.tsukuba.ac.jp> <83fwwztq4e.fsf@gnu.org> <87sk0x28pr.fsf@uwakimon.sk.tsukuba.ac.jp> <83y6aprehh.fsf@gnu.org> <87hbhd1wn4.fsf@uwakimon.sk.tsukuba.ac.jp> <83vd5tqxyp.fsf@gnu.org> <87eicg1wl5.fsf@uwakimon.sk.tsukuba.ac.jp> <878w2o1fa3.fsf@catnip.gol.com> <87y6aneqhs.fsf@uwakimon.sk.tsukuba.ac.jp> <87fwwvd6aq.fsf@lola.goethe.zz> <4CA04AFB.5060302@swipnet.se> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1285577394 29726 80.91.229.12 (27 Sep 2010 08:49:54 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 27 Sep 2010 08:49:54 +0000 (UTC) Cc: dak@gnu.org, emacs-devel@gnu.org To: =?ISO-8859-1?Q?Jan_Dj=E4rv?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 27 10:49:52 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 1P09P7-0006qZ-SW for ged-emacs-devel@m.gmane.org; Mon, 27 Sep 2010 10:49:46 +0200 Original-Received: from localhost ([127.0.0.1]:46353 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P09P7-00078F-7D for ged-emacs-devel@m.gmane.org; Mon, 27 Sep 2010 04:49:45 -0400 Original-Received: from [140.186.70.92] (port=40306 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P09MI-0005Ke-0t for emacs-devel@gnu.org; Mon, 27 Sep 2010 04:46:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1P09AB-00074Q-W7 for emacs-devel@gnu.org; Mon, 27 Sep 2010 04:34:21 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:38910) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P09AB-00074L-SM for emacs-devel@gnu.org; Mon, 27 Sep 2010 04:34:19 -0400 Original-Received: from eliz by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1P09AB-0003Fz-6Q; Mon, 27 Sep 2010 04:34:19 -0400 In-reply-to: <4CA04AFB.5060302@swipnet.se> (message from =?ISO-8859-1?Q?Jan_Dj=E4rv?= on Mon, 27 Sep 2010 09:42:51 +0200) 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:130979 Archived-At: > From: Jan Djärv > Cc: emacs-devel@gnu.org > > There are only 77 places where EMACS_UINT occurs in the Emacs > sources. 73, to be exact. The rest are #define's and #ifndef's related to the definition of EMACS_UINT itself; they don't count. #define XUINT should probably also be excluded, as it doesn't really "use" EMACS_UINT. > Most of them are casts to and from pointers, and some are sizes > (like in Lisp_Vector). It would not be a big job to get rid of them > if that is what we want. We can get rid of almost all of them, if we believe that size_t and EMACS_UINT are always of the same size. I'm not sure we want to make that assumption, though, since lisp.h does allow for external definition of EMACS_UINT by some s/*.h or m/*.h file. In any case, I think we cannot get rid of using an unsigned data type in most of the 70+ places we do now, because of one or more of the following reasons: . the value is a bit mask or a bit map . the value is a pointer that is subject to bitwise operations . the value is an unsigned data type forced by external hardware or software API