Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 May 2001 02:32:22 +0200
From:      Erik Trulsson <ertr1013@student.uu.se>
To:        hackers@FreeBSD.ORG
Subject:   Re: wint_t
Message-ID:  <20010515023221.A41666@student.uu.se>
In-Reply-To: <20010514164401.A61243@dragon.nuxi.com>; from obrien@FreeBSD.ORG on Mon, May 14, 2001 at 04:44:01PM -0700
References:  <20010514164401.A61243@dragon.nuxi.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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
ertr1013@student.uu.se


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010515023221.A41666>