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: Making --with-wide-int the default Date: Sun, 15 Nov 2015 21:36:09 +0200 Message-ID: <83pozbcaxi.fsf@gnu.org> References: <56117F37.9060808@dancol.org> <83oag087gs.fsf@gnu.org> <83oafz70im.fsf@gnu.org> <5620AF43.4050401@cs.ucla.edu> <83k2qn6xfm.fsf@gnu.org> <5620B4FA.1000804@cs.ucla.edu> <83wptojs1r.fsf@gnu.org> <56444C66.8050506@gmx.at> <83r3jugx8g.fsf@gnu.org> <87io56nu0a.fsf@fencepost.gnu.org> <83lha1dl87.fsf@gnu.org> <871tbrmeu3.fsf@fencepost.gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1447704734 17211 80.91.229.3 (16 Nov 2015 20:12:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 16 Nov 2015 20:12:14 +0000 (UTC) Cc: rudalics@gmx.at, jwiegley@gmail.com, rms@gnu.org, emacs-devel@gnu.org To: David Kastrup Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 16 21:12:06 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZyQ8D-0003yh-O7 for ged-emacs-devel@m.gmane.org; Mon, 16 Nov 2015 21:12:05 +0100 Original-Received: from localhost ([::1]:48626 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZyQ8D-00066N-CE for ged-emacs-devel@m.gmane.org; Mon, 16 Nov 2015 15:12:05 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43878) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zy368-0003EM-Oy for emacs-devel@gnu.org; Sun, 15 Nov 2015 14:36:25 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zy367-0007Re-SZ for emacs-devel@gnu.org; Sun, 15 Nov 2015 14:36:24 -0500 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:60596) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zy362-0007Qh-6w; Sun, 15 Nov 2015 14:36:18 -0500 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0NXV00500FBHBP00@a-mtaout22.012.net.il>; Sun, 15 Nov 2015 21:36:14 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NXV005M7FSEEG00@a-mtaout22.012.net.il>; Sun, 15 Nov 2015 21:36:14 +0200 (IST) In-reply-to: <871tbrmeu3.fsf@fencepost.gnu.org> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.172 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:194536 Archived-At: > From: David Kastrup > Cc: rms@gnu.org, rudalics@gmx.at, emacs-devel@gnu.org, jwiegley@gmail.com > Date: Sun, 15 Nov 2015 17:01:40 +0100 > > Here is another data point: the code base seems woefully unprepared to > actually deal with the resulting ranges. > > Lisp integers are only converted with macros XINT and XFASTINT as far as > I can tell, and > > git grep XINT > > shows lots of assignments to variables of type int rather than > EMACS_INT. If these are real problems, they should have bitten us long ago, in the 64-bit builds, no? There were, indeed, such problems, which prevented using buffers larger than 2GB, but they were solved long ago, when a significant portion of our users moved to 64-bit machines. > I think that there should be macros XINT, XUINT, XEINT (for > EMACS_INT) which trigger a range error when the value does not fit the > respective range. Could be a valuable debugging aid, I think.