This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
Re: C99 integer type sizes for limits.h
- From: Joel Sherrill <joel dot sherrill at OARcorp dot com>
- To: Ralf Corsepius <corsepiu at faw dot uni-ulm dot de>
- Cc: "'newlib at sources dot redhat dot com'" <newlib at sources dot redhat dot com>
- Date: Sat, 01 Dec 2001 07:35:04 -0600
- Subject: Re: C99 integer type sizes for limits.h
- Organization: OAR Corporation
- References: <8D00C32549556B4E977F81DBC24E985D41009A@crtsmail1.technol_exch.corp.riotinto.org>
- Reply-to: joel dot sherrill at OARcorp dot com
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