Mail Archives: djgpp-workers/2001/02/09/07:08:22
> Date: Sun, 04 Feb 2001 20:35:12 +0200
> From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
>
> > From: "Stephen Silver" <djgpp AT argentum DOT freeserve DOT co DOT uk>
> > Date: Sun, 4 Feb 2001 14:18:06 -0000
> > >
> > > However, I'm not sure we need to push it as far as -2147483648. wint_t
> > > should hold everything wchar_t does and WEOF. C99 also seems to require
> > > that WINT_MIN is at most -32767, which seems to be sufficient both for
> > > wchar_t, which is unsigned short, and for WEOF, which is -1.
> > >
> > > So what are the reasons for pushing WINT_MIN all the way to INT_MIN?
> >
> > I assumed that WINT_MIN was supposed to represent the minimum
> > possible value of a wint_t. However, the C99 standard (or, at least,
> > the draft) does not seem to say this explicitly. Nonetheless, I
> > think it would be strange if it were possible to assign a value less
> > than WINT_MIN to a wint_t.
>
> Yes, I think you are right. Anything but INT_MIN would be confusing.
I'd like to thank everybody for the feedback. stdint.h is now
committed.
- Raw text -