]> gitweb.factorcode.org Git - factor.git/commitdiff
Fixes for out parameter changes
authorSlava Pestov <slava@factorcode.org>
Sun, 23 May 2010 08:27:40 +0000 (03:27 -0500)
committerSlava Pestov <slava@factorcode.org>
Sun, 23 May 2010 08:27:40 +0000 (03:27 -0500)
basis/io/backend/windows/nt/nt.factor [changed mode: 0644->0755]
basis/io/files/info/windows/windows.factor [changed mode: 0644->0755]
basis/io/launcher/windows/windows.factor
basis/random/windows/windows.factor [changed mode: 0644->0755]
basis/system-info/windows/nt/nt-tests.factor [changed mode: 0644->0755]
basis/ui/backend/windows/windows.factor
basis/windows/uniscribe/uniscribe.factor [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 14a09bd..c0a6ee8
@@ -1,9 +1,11 @@
-USING: alien alien.c-types arrays assocs combinators continuations
-destructors io io.backend io.ports io.timeouts io.backend.windows
-io.files.windows io.files.windows.nt io.files io.pathnames io.buffers
-io.streams.c io.streams.null libc kernel math namespaces sequences
-threads windows windows.errors windows.kernel32 strings splitting
-ascii system accessors locals classes.struct combinators.short-circuit ;
+USING: alien alien.c-types alien.data alien.syntax arrays assocs
+combinators continuations destructors io io.backend io.ports
+io.timeouts io.backend.windows io.files.windows
+io.files.windows.nt io.files io.pathnames io.buffers
+io.streams.c io.streams.null libc kernel math namespaces
+sequences threads windows windows.errors windows.kernel32
+strings splitting ascii system accessors locals classes.struct
+combinators.short-circuit ;
 IN: io.backend.windows.nt
 
 ! Global variable with assoc mapping overlapped to threads
old mode 100644 (file)
new mode 100755 (executable)
index 73d79b2..96e3028
@@ -6,7 +6,7 @@ windows.time windows.types windows accessors alien.c-types
 combinators generalizations system alien.strings
 io.encodings.utf16n sequences splitting windows.errors fry
 continuations destructors calendar ascii
-combinators.short-circuit locals classes.struct
+combinators.short-circuit literals locals classes.struct
 specialized-arrays alien.data ;
 SPECIALIZED-ARRAY: ushort
 IN: io.files.info.windows
index cee6f3d60e0ac19feb1129f25f9bbeb1830a83f1..cc9e52a1898214ad213e702eb9dc46f16e631a24 100755 (executable)
@@ -1,6 +1,6 @@
 ! Copyright (C) 2007, 2010 Doug Coleman, Slava Pestov.
 ! See http://factorcode.org/license.txt for BSD license.
-USING: alien alien.c-types arrays continuations io
+USING: alien alien.c-types alien.data arrays continuations io
 io.backend.windows io.pipes.windows.nt io.pathnames libc
 io.ports windows.types math windows.kernel32 namespaces make
 io.launcher kernel sequences windows.errors splitting system
old mode 100644 (file)
new mode 100755 (executable)
index f6918eb..0629481
@@ -16,7 +16,7 @@ M: windows-crypto-context dispose ( tuple -- )
 
 CONSTANT: factor-crypto-container "FactorCryptoContainer"
 
-:: (acquire-crypto-context) ( provider type flags -- handle )
+:: (acquire-crypto-context) ( provider type flags -- ret handle )
     { HCRYPTPROV } [
         factor-crypto-container
         provider
old mode 100644 (file)
new mode 100755 (executable)
index 4ea274d..dfbd8b3
@@ -1,5 +1,7 @@
-USING: math.order strings ;
-IN: system-info.windows.nt
+USING: math.order strings system-info.backend
+system-info.windows system-info.windows.nt
+tools.test ;
+IN: system-info.windows.nt.tests
 
 [ t ] [ cpus 0 1024 between? ] unit-test
 [ t ] [ username string? ] unit-test
index 42b565121e217316ac3858fb96b6f6799b9c4851..6ce43528e06b410151048f292b9795ae566b73c2 100755 (executable)
@@ -60,14 +60,14 @@ PIXEL-FORMAT-ATTRIBUTE-TABLE: WGL_ARB { $ WGL_SUPPORT_OPENGL_ARB 1 } H{
 
 : arb-make-pixel-format ( world attributes -- pf )
     [ handle>> hDC>> ] dip >WGL_ARB-int-array f 1 { int int }
-    [ wglChoosePixelFormatARB win32-error=0/f ] with-out-parameters drop ;
+    [ wglChoosePixelFormatARB win32-error=0/f ] [ ] with-out-parameters drop ;
 
 : arb-pixel-format-attribute ( pixel-format attribute -- value )
     >WGL_ARB
     [ drop f ] [
         [ [ world>> handle>> hDC>> ] [ handle>> ] bi 0 1 ] dip
         first <int> { int }
-        [ wglGetPixelFormatAttribivARB win32-error=0/f ]
+        [ wglGetPixelFormatAttribivARB win32-error=0/f ] [ ]
         with-out-parameters
     ] if-empty ;
 
old mode 100644 (file)
new mode 100755 (executable)
index ca90450..92fec0a
@@ -2,10 +2,10 @@
 ! See http://factorcode.org/license.txt for BSD license.
 USING: kernel assocs math sequences fry io.encodings.string
 io.encodings.utf16n accessors arrays combinators destructors
-cache namespaces init fonts alien.c-types windows.usp10
-windows.offscreen windows.gdi32 windows.ole32 windows.types
-windows.fonts opengl.textures locals windows.errors
-classes.struct ;
+cache namespaces init fonts alien.c-types alien.data
+windows.usp10 windows.offscreen windows.gdi32 windows.ole32
+windows.types windows.fonts opengl.textures locals
+windows.errors classes.struct ;
 IN: windows.uniscribe
 
 TUPLE: script-string < disposable font string metrics ssa size image ;