From: <no...@so...> - 2002-01-31 06:24:04
|
Patches item #511015, was opened at 2002-01-30 18:39 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=302435&aid=511015&group_id=2435 Category: runtime Group: None Status: Open Resolution: None Priority: 5 Submitted By: Wu Yongwei (adah) Assigned to: Nobody/Anonymous (nobody) Summary: wint_t definition Initial Comment: According to http://msdn.microsoft.com/library/en- us/vccore98/HTML/_crt_is.2c_.isw_routines.asp wint_t is defined as unsigned short in MSVC. I suppose MinGW should follow it, too. Also notice that info there for WEOF is not quite correct. It is really defined as (wint_t)(0xFFFF) in MSVC. MinGW's current way of (wchar_t)(0xFFFF) is compatible with it. ---------------------------------------------------------------------- >Comment By: Danny Smith (dannysmith) Date: 2002-01-30 22:24 Message: Logged In: YES user_id=11494 __WINT_TYPE__ is a __builtin__ D:\Users\Danny>echo __WINT_TYPE__ | cpp # 1 "<stdin>" # 1 "<built-in>" # 1 "<command line>" # 1 "<stdin>" unsigned int To change the __builtin__ type we need to rebuild GCC with a two-line change to the source file gcc/config/i386/mingw32.h to define WINT_TYPE as "unsigned short". I'm in the process of doing that as part of already scheduled bootstrap of GCC from mainline CVS and then running the testsuite. I don't expect any problems. But, I doubt if I am going to anything with it until I have a reason. Can you provide a testcase that shows that current typedef causes problems? Danny ---------------------------------------------------------------------- Comment By: Danny Smith (dannysmith) Date: 2002-01-30 22:23 Message: Logged In: YES user_id=11494 __WINT_TYPE__ is a __builtin__ D:\Users\Danny>echo __WINT_TYPE__ | cpp # 1 "<stdin>" # 1 "<built-in>" # 1 "<command line>" # 1 "<stdin>" unsigned int To change the __builtin__ type we need to rebuild GCC with a two-line change to the source file gcc/config/i386/mingw32.h to define WINT_TYPE as "unsigned short". I'm in the process of doing that as part of already scheduled bootstrap of GCC from mainline CVS and then running the testsuite. I don't expect any problems. But, I doubt if I am going to anything with it until I have a reason. Can you provide a testcase that shows that current typedef causes problems? Danny ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=302435&aid=511015&group_id=2435 |