[Haiku-commits] r31212 - in buildtools/branches/gcc-config-wchar: gcc2 gcc4
zooey at BerliOS
zooey at mail.berlios.de
Tue Jun 23 17:52:32 CEST 2009
Author: zooey
Date: 2009-06-23 17:52:32 +0200 (Tue, 23 Jun 2009)
New Revision: 31212
ViewCVS: http://svn.berlios.de/viewcvs/haiku?rev=31212&view=rev
Modified:
buildtools/branches/gcc-config-wchar/gcc2/haiku.h
buildtools/branches/gcc-config-wchar/gcc4/haiku.h
Log:
* changed definitions of wchar_t from unsigned short to int, since that makes
much more sense (being able to store a unicode character point in a wchar_t)
* this fixes several problems in wchar-related functions, as our implementation
relies on wchar_t being 32 bits wide
Modified: buildtools/branches/gcc-config-wchar/gcc2/haiku.h
===================================================================
--- buildtools/branches/gcc-config-wchar/gcc2/haiku.h 2009-06-23 15:48:03 UTC (rev 31211)
+++ buildtools/branches/gcc-config-wchar/gcc2/haiku.h 2009-06-23 15:52:32 UTC (rev 31212)
@@ -149,13 +149,13 @@
#define PTRDIFF_TYPE "long int"
#undef WCHAR_TYPE
-#define WCHAR_TYPE "short unsigned int"
+#define WCHAR_TYPE "int"
#undef WCHAR_UNSIGNED
-#define WCHAR_UNSIGNED 1
+#define WCHAR_UNSIGNED 0
#undef WCHAR_TYPE_SIZE
-#define WCHAR_TYPE_SIZE 16
+#define WCHAR_TYPE_SIZE 32
#undef CPP_PREDEFINES
#define CPP_PREDEFINES "-D__ELF__ -D__HAIKU__ -D__INTEL__ -D_X86_=1 \
Modified: buildtools/branches/gcc-config-wchar/gcc4/haiku.h
===================================================================
--- buildtools/branches/gcc-config-wchar/gcc4/haiku.h 2009-06-23 15:48:03 UTC (rev 31211)
+++ buildtools/branches/gcc-config-wchar/gcc4/haiku.h 2009-06-23 15:52:32 UTC (rev 31212)
@@ -33,15 +33,15 @@
#undef SIZE_TYPE
#define SIZE_TYPE "long unsigned int"
-
+
#undef PTRDIFF_TYPE
#define PTRDIFF_TYPE "long int"
-
+
#undef WCHAR_TYPE
-#define WCHAR_TYPE "short unsigned int"
-
+#define WCHAR_TYPE "int"
+
#undef WCHAR_TYPE_SIZE
-#define WCHAR_TYPE_SIZE 16
+#define WCHAR_TYPE_SIZE 32
#define TARGET_OS_CPP_BUILTINS() \
do \
More information about the Haiku-commits
mailing list