Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1LfxXK-0006y2-J3 for mharc-grub-devel@gnu.org; Sat, 07 Mar 2009 09:29:58 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LfxXI-0006v2-3s for grub-devel@gnu.org; Sat, 07 Mar 2009 09:29:56 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LfxXG-0006sz-K0 for grub-devel@gnu.org; Sat, 07 Mar 2009 09:29:54 -0500 Received: from [199.232.76.173] (port=52388 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LfxXG-0006sq-GV for grub-devel@gnu.org; Sat, 07 Mar 2009 09:29:54 -0500 Received: from [74.93.104.97] (port=55754 helo=sunset.davemloft.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LfxXG-00083x-4G for grub-devel@gnu.org; Sat, 07 Mar 2009 09:29:54 -0500 Received: from localhost (localhost [127.0.0.1]) by sunset.davemloft.net (Postfix) with ESMTP id 5746DC8D940; Sat, 7 Mar 2009 06:29:40 -0800 (PST) Date: Sat, 07 Mar 2009 06:29:40 -0800 (PST) Message-Id: <20090307.062940.140654187.davem@davemloft.net> To: grub-devel@gnu.org, rmh@aybabtu.com From: David Miller In-Reply-To: <20090307103838.GA20604@thorin> References: <20090306.163953.27529500.davem@davemloft.net> <20090307005643.u3urxp4beo4k8o84-cebfxv@webmail.spamcop.net> <20090307103838.GA20604@thorin> X-Mailer: Mew version 6.1 on Emacs 22.1 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Cc: Subject: Re: [PATCH 1/7]: Fix sparc64 setjmp implementation. X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Mar 2009 14:29:56 -0000 From: Robert Millan Date: Sat, 7 Mar 2009 11:38:38 +0100 > On Sat, Mar 07, 2009 at 12:56:43AM -0500, Pavel Roskin wrote: > > Quoting David Miller : > > > >>> I was considering making grub_size_t long and grub_ssize_t unsigned > >>> long. I remember that it required many changes in string formats, so I > >>> didn't feel it would be justified. But we could try it again. > >> > >> You should use whatever is the appropriate size_t/ssize_t type on > >> the given platform+ABI, and that way GRUB could use "%Zd" and/or > >> "%zd" throughout. Was that the plan? > > > > No, the plan was to use long. We don't support architectures where long > > and size_t have different sizes. I'm not aware of such architectures. I > > don't care about win64, as it would need some very special handling > > (perhaps redefinition of long). > > Maybe Christian can shred some light on this ;-) I've checked a lot of cases (other than win64) and this assumption that sizeof(long)==sizeof(size_t) seems to hold.