delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/02/03/09:49:27

Message-ID: <002001c08df0$71991860$2a4a893e@oemcomputer>
From: "Stephen Silver" <djgpp AT argentum DOT freeserve DOT co DOT uk>
To: <djgpp-workers AT delorie DOT com>
Subject: Re: WCHAR_* and WINT_* in limits.h
Date: Sat, 3 Feb 2001 14:48:57 -0000
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 4.72.3110.1
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Reply-To: djgpp-workers AT delorie DOT com

Eli Zaretskii wrote:

> Since wchar_t is short and wint_t is int, aren't these bugs?
>
> #define WCHAR_MIN 0
> #define WCHAR_MAX 127
> #define WINT_MIN 0
> #define WINT_MAX 32767

Yes, these are wrong.  But surely they shouldn't be in limits.h anyway
(at least with __STRICT_ANSI__ defined).  As far as I know, the WCHAR_M*
macros are supposed to be only in wchar.h and stdint.h, and the WINT_M*
macros only in stdint.h.

At the moment, DJGPP's wchar.h doesn't define WCHAR_MIN or WCHAR_MAX.

Stephen

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019