]> gitweb.factorcode.org Git - factor.git/blobdiff - basis/io/files/windows/windows.factor
Remove many uses of <int> and *int etc
[factor.git] / basis / io / files / windows / windows.factor
index 024b278b4ba7ebd5a48713bdcbc58a4a194e7a6a..70fe03b290324134c578e7e8d7a2392c32126437 100644 (file)
@@ -131,7 +131,7 @@ M: winnt init-io ( -- )
 ERROR: invalid-file-size n ;
 
 : handle>file-size ( handle -- n )
-    0 <ulonglong> [ GetFileSizeEx win32-error=0/f ] keep *ulonglong ;
+    0 ulonglong <ref> [ GetFileSizeEx win32-error=0/f ] keep ulonglong deref ;
 
 ERROR: seek-before-start n ;
 
@@ -249,7 +249,7 @@ M: winnt init-stdio
     GetLastError ERROR_ALREADY_EXISTS = not ;
 
 : set-file-pointer ( handle length method -- )
-    [ [ handle>> ] dip d>w/w <uint> ] dip SetFilePointer
+    [ [ handle>> ] dip d>w/w uint <ref> ] dip SetFilePointer
     INVALID_SET_FILE_POINTER = [ "SetFilePointer failed" throw ] when ;
 
 M: windows (file-reader) ( path -- stream )
@@ -350,4 +350,4 @@ M: winnt home
         [ "HOMEDRIVE" os-env "HOMEPATH" os-env append-path ]
         [ "USERPROFILE" os-env ]
         [ my-documents ]
-    } 0|| ;
\ No newline at end of file
+    } 0|| ;