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: Another ptrdiff_t Date: Sun, 22 Jul 2012 18:43:11 +0300 Message-ID: <83a9yr244w.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: dough.gmane.org 1342971819 4702 80.91.229.3 (22 Jul 2012 15:43:39 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 22 Jul 2012 15:43:39 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jul 22 17:43:39 2012 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 1SsyJj-0001UN-9J for ged-emacs-devel@m.gmane.org; Sun, 22 Jul 2012 17:43:35 +0200 Original-Received: from localhost ([::1]:39784 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SsyJi-0006oS-BF for ged-emacs-devel@m.gmane.org; Sun, 22 Jul 2012 11:43:34 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:33096) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SsyJg-0006oA-4t for emacs-devel@gnu.org; Sun, 22 Jul 2012 11:43:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SsyJf-0001eP-1e for emacs-devel@gnu.org; Sun, 22 Jul 2012 11:43:32 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:60878) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SsyJe-0001eL-Q4 for emacs-devel@gnu.org; Sun, 22 Jul 2012 11:43:30 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0M7K00600J0LS800@a-mtaout22.012.net.il> for emacs-devel@gnu.org; Sun, 22 Jul 2012 18:43:09 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.210.75]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0M7K005UTJNX9BK0@a-mtaout22.012.net.il> for emacs-devel@gnu.org; Sun, 22 Jul 2012 18:43:09 +0300 (IDT) X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) 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:151800 Archived-At: Another ptrdiff_t enters the scene. Can we perhaps have some conventions regarding which integer types to use in what situations? === modified file 'src/ChangeLog' --- src/ChangeLog 2012-07-21 19:26:25 +0000 +++ src/ChangeLog 2012-07-22 03:44:35 +0000 @@ -1,3 +1,8 @@ +2012-07-22 Paul Eggert + + * buffer.h (struct buffer.indirections): Now ptrdiff_t, not int, + as it's limited by the amount of memory, not by INT_MAX. + 2012-07-21 Eli Zaretskii * keyboard.c (keys_of_keyboard): Bind language-change to 'ignore' === modified file 'src/buffer.h' --- src/buffer.h 2012-07-20 16:05:47 +0000 +++ src/buffer.h 2012-07-22 03:44:35 +0000 @@ -776,9 +776,9 @@ struct buffer struct buffer *base_buffer; /* In an indirect buffer, this is -1. In an ordinary buffer, - it's the number of indirect buffers which shares our text; + it's the number of indirect buffers that share our text; zero means that we're the only owner of this text. */ - int indirections; + ptrdiff_t indirections; /* A non-zero value in slot IDX means that per-buffer variable with index IDX has a local value in this buffer. The index IDX