]> gitweb.factorcode.org Git - factor.git/blobdiff - basis/environment/winnt/winnt.factor
move some allocation words that don't really have much to do with c types out of...
[factor.git] / basis / environment / winnt / winnt.factor
index 518a7d5d7a29d44be485cfe9438354f958ce3aa6..cba92a0e3ca6f1fe9331d55b3ec3478e7a5bffc7 100755 (executable)
@@ -1,15 +1,14 @@
 ! Copyright (C) 2008 Doug Coleman.
 ! See http://factorcode.org/license.txt for BSD license.
 USING: alien.strings fry io.encodings.utf16n kernel
-splitting windows windows.kernel32 system environment
-alien.c-types sequences windows.errors io.streams.memory
-io.encodings io ;
+splitting windows windows.kernel32 windows.types system
+environment alien.data sequences windows.errors
+io.streams.memory io.encodings io ;
+SPECIALIZED-ARRAY: TCHAR
 IN: environment.winnt
 
-<< "TCHAR" require-c-array >>
-
 M: winnt os-env ( key -- value )
-    MAX_UNICODE_PATH "TCHAR" <c-array>
+    MAX_UNICODE_PATH TCHAR <c-array>
     [ dup length GetEnvironmentVariable ] keep over 0 = [
         2drop f
     ] [