chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] long pointer equivalent


From: Peter Keller
Subject: Re: [Chicken-users] long pointer equivalent
Date: Mon, 26 Aug 2002 11:58:46 -0500
User-agent: Mutt/1.2i

On Mon, Aug 26, 2002 at 12:52:07PM -0400, Perry E. Metzger wrote:
> 
> Peter Keller <address@hidden> writes:
> > See, the trouble is with a specific 64 bit type is how do you deal with
> > machines that happen to define that library call where an off_t is a
> > 32-bit type? long on an ia64 is 8 bytes, but on an ia386 is 4 bytes, 
> > therefore you may not use an unsigned-int64 as the interface call to
> > lseek because it isn't right all of the time.
> 
> I'd say autoconf style mechanisms are the only way to retain sanity
> for such things. When you build the chicken runtime for a particular
> platform, you find out what the width is and you abstract that in
> the library so it uses the discovered value.

Can you give an example of sich an abstraction? My brain is a little
slow today.

Thanks.

-pete




reply via email to

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