]> gitweb.factorcode.org Git - factor.git/commitdiff
Move wchar_t* typedef from alien.arrays to windows.types since that's the only place...
authorSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Tue, 12 May 2009 09:19:22 +0000 (04:19 -0500)
committerSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Tue, 12 May 2009 09:19:22 +0000 (04:19 -0500)
basis/alien/arrays/arrays.factor
basis/windows/types/types.factor

index 15e67bf0fe01d8570afe24f5182875ee4e40be10..e4a0e4dcf0a6cf51d27dd9270b3ee8db0345e4bf 100755 (executable)
@@ -2,7 +2,7 @@
 ! See http://factorcode.org/license.txt for BSD license.
 USING: alien alien.strings alien.c-types alien.accessors alien.structs
 arrays words sequences math kernel namespaces fry libc cpu.architecture
-io.encodings.utf8 io.encodings.utf16n ;
+io.encodings.utf8 ;
 IN: alien.arrays
 
 UNION: value-type array struct-type ;
@@ -95,5 +95,4 @@ M: string-type c-type-setter
 
 { "char*" utf8 } "char*" typedef
 "char*" "uchar*" typedef
-{ "char*" utf16n } "wchar_t*" typedef
 
index 062196c3f88183d72f01d3a34f57986717c4bad9..b99e7ffe6f4cd0f94609b9da939fbbf2b209f4bf 100755 (executable)
@@ -1,7 +1,8 @@
 ! Copyright (C) 2005, 2006 Doug Coleman.
 ! See http://factorcode.org/license.txt for BSD license.
 USING: alien alien.c-types alien.syntax namespaces kernel words
-sequences math math.bitwise math.vectors colors ;
+sequences math math.bitwise math.vectors colors
+io.encodings.utf16n ;
 IN: windows.types
 
 TYPEDEF: char                CHAR
@@ -68,6 +69,8 @@ TYPEDEF: ulonglong   ULARGE_INTEGER
 TYPEDEF: LARGE_INTEGER* PLARGE_INTEGER
 TYPEDEF: ULARGE_INTEGER* PULARGE_INTEGER
 
+<< { "char*" utf16n } "wchar_t*" typedef >>
+
 TYPEDEF: wchar_t*  LPCSTR
 TYPEDEF: wchar_t*  LPWSTR
 TYPEDEF: WCHAR       TCHAR