guile-devel
[Top][All Lists]
Advanced

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

Re: scm_bits_t / scm_ubits_t


From: Marius Vollmer
Subject: Re: scm_bits_t / scm_ubits_t
Date: 31 May 2001 02:46:06 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.0.102

"Jacques A. Vidrine" <address@hidden> writes:

> intptr_t/uintptr_t.  These are defined  by ISO/IEC 9899:1999 (aka C99)
> (and are included in POSIX 1003.1-2000 draft 6).  They are supposed to
> be defined in <stdint.h>.
> 
> Unfortunately,  they are  not yet  widely implemented.   GCC does  not
> provide <stdint.h> at all.  Sometimes  the definition will be found in
> a non-standard  place.  For  example, on  FreeBSD, Solaris,  and IRIX,
> these are defined by including <sys/types.h>.
> 
> I  guess I  would  recommend  groping for  a  uintptr_t definition  in
> <stdint.h>  and <sys/types.h>,  and  using  some reasonable  fallbacks
> (possibly dependent  on the operating  system).  Use uintptr_t  in the
> source.  Typedef it  to `unsigned long' (or  possibly other, depending
> on platform) if it isn't defined by the system.

Thanks!  We'll make it so!

I think we should have

    typedef uintptr_t scm_t_bits;
    typedef intptr_t scm_t_length;
    typedef uintptr_t scm_t_ulength;



reply via email to

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