]> gitweb.factorcode.org Git - factor.git/blobdiff - basis/windows/dragdrop-listener/dragdrop-listener.factor
move some allocation words that don't really have much to do with c types out of...
[factor.git] / basis / windows / dragdrop-listener / dragdrop-listener.factor
index bd6512341f5bf839322479024baa909d8c71c061..bb8e60cdf5b152db476ddc1f1d499730cd6beb24 100755 (executable)
@@ -1,17 +1,16 @@
 USING: alien.strings io.encodings.utf16n windows.com\r
 windows.com.wrapper combinators windows.kernel32 windows.ole32\r
-windows.shell32 kernel accessors\r
+windows.shell32 kernel accessors windows.types\r
 prettyprint namespaces ui.tools.listener ui.tools.workspace\r
-alien.c-types alien sequences math ;\r
+alien.data alien sequences math ;\r
+SPECIALIZED-ARRAY: WCHAR\r
 IN: windows.dragdrop-listener\r
 \r
-<< "WCHAR" require-c-array >>\r
-\r
 : filenames-from-hdrop ( hdrop -- filenames )\r
     dup HEX: FFFFFFFF f 0 DragQueryFile ! get count of files\r
     [\r
         2dup f 0 DragQueryFile 1 + ! get size of filename buffer\r
-        dup "WCHAR" <c-array>\r
+        dup WCHAR <c-array>\r
         [ swap DragQueryFile drop ] keep\r
         utf16n alien>string\r
     ] with map ;\r