Date: Mon, 14 May 2001 17:45:02 -0700 From: Alfred Perlstein <bright@wintelcom.net> To: Erik Trulsson <ertr1013@student.uu.se> Cc: hackers@FreeBSD.ORG Subject: Re: wint_t Message-ID: <20010514174502.J2009@fw.wintelcom.net> In-Reply-To: <20010515023221.A41666@student.uu.se>; from ertr1013@student.uu.se on Tue, May 15, 2001 at 02:32:22AM %2B0200 References: <20010514164401.A61243@dragon.nuxi.com> <20010515023221.A41666@student.uu.se>
next in thread | previous in thread | raw e-mail | index | archive | help
* Erik Trulsson <ertr1013@student.uu.se> [010514 17:32] wrote: > 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. Wouldn't it be kinda painful unless we did this with a 16 bit type? -- -Alfred Perlstein - [alfred@freebsd.org] http://www.egr.unlv.edu/~slumos/on-netbsd.html 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?20010514174502.J2009>