This is the mail archive of the newlib@sources.redhat.com mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: C99 integer type sizes for limits.h


An RTEMS user has reported that these are missing also:

> > 
> > typedef unsigned char           uint8_t;
> > typedef unsigned short          uint16_t;
> > typedef unsigned int              uint32_t;
> > typedef unsigned long long   uint64_t;
> > 
> > I see that the OpenBSD version of this file does define these values
> > but the RTEMS version only has the u_intXX_t versions.  Should
> > the RTEMS version be updated into include the above typedefs or
> > are these not standard datatypes?
> 
> AFAIK, these are ISOC99 types and are supposed to be defined in stdint.h
> and to be included into sources via stdint.h or inttypes.h (normally
> implictly includes stdint.h).
> 
> Apparently, newlib is not ISOC99-ready. As a work-around, we could
> either provide a stdint.h with RTEMS or try to get it properly
> introduced into newlib.
> 

Would you prefer that these be added to newlib?  Is so, where is
the preferred place to do so?


"Billinghurst, David (CRTS)" wrote:
> 
> The cygwin <limits.h> is missing the C99 definitions of define LLONG_MIN,
> LLONG_MAX and ULLONG_MAX.  The problem was identified by a gcc-3.1 testsuite
> failure.  This patch adds them.
> 
> +++++++++++++++++++++++++++++++++++++++++
> (Mr) David Billinghurst
> Comalco Research Centre
> PO Box 316, Thomastown, Vic, Australia, 3074
> Phone:  +61 3 9469 0642
> FAX:    +61 3 9462 2700
> Email:  David.Billinghurst@riotinto.com
> 
>   ------------------------------------------------------------------------
>                     Name: limits.h.diff
>    limits.h.diff    Type: unspecified type (application/octet-stream)
>                 Encoding: quoted-printable

-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel@OARcorp.com                 On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
   Support Available             (256) 722-9985


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]