This is the mail archive of the newlib@sourceware.org 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: PATCH: Fix SIZE_MAX, remove SIZE_MIN


Jeff Johnston wrote:
Mark Mitchell wrote:
Newlib's <stdint.h> defines SIZE_MAX as a signed quantity equivalent
to LONG_MAX.  This is incorrect; SIZE_MAX is supposed to be the
maximum value of a size_t and, as such, should be equilvalent to
ULONG_MAX.  Furthermore, <stdint.h> defines SIZE_MIN, which is not a
macro specified by the C standard, and, as such, pollutes the user's
namespace.

Ok, thanks.

I finally got around to checking this in.


Thanks,

--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713


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