grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 1/7]: Fix sparc64 setjmp implementation.


From: David Miller
Subject: Re: [PATCH 1/7]: Fix sparc64 setjmp implementation.
Date: Sat, 07 Mar 2009 06:29:40 -0800 (PST)

From: Robert Millan <address@hidden>
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 <address@hidden>:
> >
> >>> 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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]