[Top][All Lists]

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

Re: size_max: remove it?

From: Derek R. Price
Subject: Re: size_max: remove it?
Date: Fri, 28 Apr 2006 10:45:28 -0400
User-agent: Thunderbird 1.5 (X11/20060313)

Paul Eggert wrote:
> Bruno Haible <address@hidden> writes:
>> 2) I use the size_max module inside gettext's libintl, and a full-blown
>>    <stdint.h> feels like overkill in this case, when we just need one macro.
> I'd been assuming that the stdint module would be modified to depend
> on size_max, to cater to people who need SIZE_MAX but not all of
> stdint.h.

It sounds reasonable to leave size_max in for those who want it, but is
it really necessary to make stdint depend on it?  All that extra work by
configure sounds like overkill too, when stdint_.h has already included
<stddef.h> and so the current code from stdint_.h suffices:

#ifndef SIZE_MAX /* SIZE_MAX may also be defined in config.h. */
# define SIZE_MAX ((size_t)~(size_t)0)


Derek R. Price
CVS Solutions Architect
Ximbiot <http://ximbiot.com>
v: +1 248.835.1260
f: +1 248.835.1263

reply via email to

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