On Mon, May 14, 2001 at 04:44:01PM -0700, David O'Brien wrote:
> What is the proper definition of wint_t?  curses.h has it as a "long int",
> however NetBSD (and GCC's libstdc++) has it as an "int".
> 

I think either definition is fine. It should be at least as wide as a
wchar_t. stddef.h has wchar_t as "int" while curses.h defines wchar_t
(if it isn't defined in stddef.h) as "unsigned long".

The C standard says that wchar_t should be able to all members of thye
largest extended chracter set. AFAIK FreeBSD doesn't have any character
set which requires more than 8 bits.
wint_t should also be able to hold all members of the largest character
set plus one extra value (WEOF). Also it must be at least 16 bits.



-- 
<Insert your favourite quote here.>
Erik Trulsson
[EMAIL PROTECTED]


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to