]> gitweb.factorcode.org Git - factor.git/commitdiff
Remove Windows CE from core/ basis/ and build-support/
authorDoug Coleman <doug.coleman@gmail.com>
Mon, 19 Sep 2011 01:25:06 +0000 (20:25 -0500)
committerDoug Coleman <doug.coleman@gmail.com>
Mon, 19 Sep 2011 04:19:06 +0000 (23:19 -0500)
Rename the winnt singleton to windows in core/ basis/ extra/
Rename boot images winnt -> windows
Fixes #84.

156 files changed:
GNUmakefile
basis/atk/ffi/ffi.factor
basis/bootstrap/image/image-docs.factor
basis/bootstrap/image/image.factor
basis/cairo/ffi/ffi.factor
basis/compiler/tests/alien.factor
basis/compression/zlib/ffi/ffi.factor
basis/cpu/x86/32/windows/bootstrap.factor [new file with mode: 0644]
basis/cpu/x86/32/winnt/bootstrap.factor [deleted file]
basis/cpu/x86/64/64.factor
basis/cpu/x86/64/windows/bootstrap.factor [new file with mode: 0644]
basis/cpu/x86/64/windows/summary.txt [new file with mode: 0644]
basis/cpu/x86/64/windows/tags.txt [new file with mode: 0644]
basis/cpu/x86/64/windows/windows.factor [new file with mode: 0644]
basis/cpu/x86/64/winnt/bootstrap.factor [deleted file]
basis/cpu/x86/64/winnt/summary.txt [deleted file]
basis/cpu/x86/64/winnt/tags.txt [deleted file]
basis/cpu/x86/64/winnt/winnt.factor [deleted file]
basis/cpu/x86/windows/bootstrap.factor [new file with mode: 0644]
basis/cpu/x86/winnt/bootstrap.factor [deleted file]
basis/db/postgresql/ffi/ffi.factor
basis/db/sqlite/ffi/ffi.factor
basis/environment/environment-docs.factor
basis/environment/environment-tests.factor
basis/environment/environment.factor
basis/environment/windows/authors.txt [new file with mode: 0644]
basis/environment/windows/platforms.txt [new file with mode: 0644]
basis/environment/windows/summary.txt [new file with mode: 0644]
basis/environment/windows/windows.factor [new file with mode: 0644]
basis/environment/winnt/authors.txt [deleted file]
basis/environment/winnt/platforms.txt [deleted file]
basis/environment/winnt/summary.txt [deleted file]
basis/environment/winnt/winnt.factor [deleted file]
basis/game/input/dinput/platforms.txt
basis/game/input/xinput/platforms.txt
basis/gdk/ffi/ffi.factor
basis/gdk/pixbuf/ffi/ffi.factor
basis/gio/ffi/ffi.factor
basis/glib/ffi/ffi.factor
basis/gmodule/ffi/ffi.factor
basis/gobject/ffi/ffi.factor
basis/gtk/ffi/ffi.factor
basis/gtk/gl/ffi/ffi.factor
basis/io/backend/windows/windows.factor
basis/io/directories/directories-docs.factor
basis/io/files/info/windows/windows.factor
basis/io/files/windows/windows.factor
basis/io/launcher/launcher-docs.factor
basis/io/launcher/windows/windows.factor
basis/io/mmap/mmap.factor
basis/io/monitors/monitors-docs.factor
basis/io/monitors/monitors-tests.factor
basis/io/monitors/windows/platforms.txt
basis/io/monitors/windows/windows.factor
basis/io/pipes/windows/platforms.txt
basis/io/pipes/windows/windows.factor
basis/io/sockets/windows/windows.factor
basis/openssl/libcrypto/libcrypto.factor
basis/openssl/libssl/libssl.factor
basis/pango/cairo/ffi/ffi.factor
basis/pango/ffi/ffi.factor
basis/system-info/windows/windows.factor
basis/tools/deploy/deploy.factor
basis/tools/deploy/windows/windows.factor
basis/tools/disassembler/udis/udis.factor
basis/ui/images/images.factor
basis/windows/ddk/hid/platforms.txt
basis/windows/ddk/setupapi/platforms.txt
basis/windows/ddk/winusb/platforms.txt
basis/windows/directx/audiodefs/platforms.txt
basis/windows/directx/d2d1/platforms.txt
basis/windows/directx/d2dbasetypes/platforms.txt
basis/windows/directx/d2derr/platforms.txt
basis/windows/directx/d3d10/platforms.txt
basis/windows/directx/d3d10_1/platforms.txt
basis/windows/directx/d3d10_1shader/platforms.txt
basis/windows/directx/d3d10effect/platforms.txt
basis/windows/directx/d3d10misc/platforms.txt
basis/windows/directx/d3d10shader/platforms.txt
basis/windows/directx/d3d11/platforms.txt
basis/windows/directx/d3d11shader/platforms.txt
basis/windows/directx/d3d9/platforms.txt
basis/windows/directx/d3d9caps/platforms.txt
basis/windows/directx/d3d9types/platforms.txt
basis/windows/directx/d3dcommon/platforms.txt
basis/windows/directx/d3dcompiler/platforms.txt
basis/windows/directx/d3dcsx/platforms.txt
basis/windows/directx/d3dx10/platforms.txt
basis/windows/directx/d3dx10async/platforms.txt
basis/windows/directx/d3dx10core/platforms.txt
basis/windows/directx/d3dx10math/platforms.txt
basis/windows/directx/d3dx10mesh/platforms.txt
basis/windows/directx/d3dx10tex/platforms.txt
basis/windows/directx/d3dx11/platforms.txt
basis/windows/directx/d3dx11async/platforms.txt
basis/windows/directx/d3dx11core/platforms.txt
basis/windows/directx/d3dx11tex/platforms.txt
basis/windows/directx/d3dx9/platforms.txt
basis/windows/directx/d3dx9anim/platforms.txt
basis/windows/directx/d3dx9core/platforms.txt
basis/windows/directx/d3dx9effect/platforms.txt
basis/windows/directx/d3dx9math/platforms.txt
basis/windows/directx/d3dx9mesh/platforms.txt
basis/windows/directx/d3dx9shader/platforms.txt
basis/windows/directx/d3dx9shape/platforms.txt
basis/windows/directx/d3dx9tex/platforms.txt
basis/windows/directx/d3dx9xof/platforms.txt
basis/windows/directx/dcommon/platforms.txt
basis/windows/directx/dinput/constants/platforms.txt
basis/windows/directx/dinput/platforms.txt
basis/windows/directx/dwrite/platforms.txt
basis/windows/directx/dxfile/platforms.txt
basis/windows/directx/dxgi/platforms.txt
basis/windows/directx/dxgiformat/platforms.txt
basis/windows/directx/dxgitype/platforms.txt
basis/windows/directx/x3daudio/platforms.txt
basis/windows/directx/xact3/platforms.txt
basis/windows/directx/xapo/platforms.txt
basis/windows/directx/xapofx/platforms.txt
basis/windows/directx/xaudio2/platforms.txt
basis/windows/directx/xaudio2fx/platforms.txt
basis/windows/directx/xinput/platforms.txt
basis/windows/dwmapi/platforms.txt
basis/windows/summary.txt
build-support/factor.cmd
build-support/factor.sh
core/alien/alien-docs.factor
core/alien/strings/strings-docs.factor
core/bootstrap/primitives.factor
core/system/system-docs.factor
core/system/system.factor
extra/clutter/cally/ffi/ffi.factor
extra/clutter/cogl/ffi/ffi.factor
extra/clutter/ffi/ffi.factor
extra/clutter/gtk/ffi/ffi.factor
extra/clutter/json/ffi/ffi.factor
extra/curses/ffi/ffi.factor
extra/gdbm/ffi/ffi.factor
extra/google-tech-talk/google-tech-talk.factor
extra/graphviz/ffi/ffi.factor
extra/gstreamer/base/ffi/ffi.factor
extra/gstreamer/controller/ffi/ffi.factor
extra/gstreamer/ffi/ffi.factor
extra/gstreamer/net/ffi/ffi.factor
extra/io/files/trash/trash.factor
extra/javascriptcore/ffi/ffi.factor
extra/mason/child/child-tests.factor
extra/mason/child/child.factor
extra/mason/release/archive/archive.factor
extra/ogg/ogg.factor
extra/ogg/theora/theora.factor
extra/ogg/vorbis/vorbis.factor
extra/webapps/mason/grids/grids.factor
extra/webapps/mason/utils/utils.factor
vm/os-windows-x86.32.cpp
vm/os-windows.hpp

index 528ea0eb2f8238d2c4bbb8e31d7791439561734c..39de51f3522a6ca698e79436496a2c16f7a63e78 100755 (executable)
@@ -95,8 +95,8 @@ help:
        @echo "macosx-ppc"
        @echo "solaris-x86-32"
        @echo "solaris-x86-64"
-       @echo "winnt-x86-32"
-       @echo "winnt-x86-64"
+       @echo "windows-x86-32"
+       @echo "windows-x86-64"
        @echo ""
        @echo "Additional modifiers:"
        @echo ""
@@ -155,11 +155,11 @@ solaris-x86-32:
 solaris-x86-64:
        $(MAKE) $(ALL) CONFIG=vm/Config.solaris.x86.64
 
-winnt-x86-32:
+windows-x86-32:
        $(MAKE) $(ALL) CONFIG=vm/Config.windows.x86.32
        $(MAKE) factor-console CONFIG=vm/Config.windows.x86.32
 
-winnt-x86-64:
+windows-x86-64:
        $(MAKE) $(ALL) CONFIG=vm/Config.windows.x86.64
        $(MAKE) factor-console CONFIG=vm/Config.windows.x86.64
 
index 147a7e4909d3489c0f3ee8e53ca89ea96f0b8729..2577a23b3dbf2a01e1421f87e712f7515d0f2ce6 100644 (file)
@@ -12,7 +12,7 @@ LIBRARY: atk
 
 <<
 "atk" {
-    { [ os winnt? ] [ "libatk-1.0-0.dll" cdecl add-library ] }
+    { [ os windows? ] [ "libatk-1.0-0.dll" cdecl add-library ] }
     { [ os unix? ] [ drop ] }
 } cond
 >>
index 2d29274556dd1d69f0df5dbdcb9793e98c3a83d5..78c3d58919676b1378e7a68ebf1c774054829c13 100644 (file)
@@ -16,5 +16,5 @@ ABOUT: "bootstrap.image"
 HELP: make-image
 { $values { "arch" string } }
 { $description "Creates a bootstrap image from sources, where " { $snippet "architecture" } " is one of the following:"
-{ $code "x86.32" "unix-x86.64" "winnt-x86.64" "macosx-ppc" "linux-ppc" }
+{ $code "x86.32" "unix-x86.64" "windows-x86.64" "macosx-ppc" "linux-ppc" }
 "The new image file is written to the " { $link resource-path } " and is named " { $snippet "boot." { $emphasis "architecture" } ".image" } "." } ;
index f0ade2ccefafee38bc76f04647daebddafba4181..ff41e39338b5c1585e2653d61bac91c7eece3603 100755 (executable)
@@ -15,7 +15,7 @@ generalizations parser.notes ;
 IN: bootstrap.image
 
 : arch ( os cpu -- arch )
-    2dup [ winnt? ] [ ppc? ] bi* or [
+    2dup [ windows? ] [ ppc? ] bi* or [
       [ drop unix ] dip
     ] unless
     [ name>> ] [ name>> ] bi* "-" glue ;
@@ -31,9 +31,9 @@ IN: bootstrap.image
 
 : images ( -- seq )
     {
-        "winnt-x86.32" "unix-x86.32"
+        "windows-x86.32" "unix-x86.32"
         "linux-ppc.32" "linux-ppc.64"
-        "winnt-x86.64" "unix-x86.64"
+        "windows-x86.64" "unix-x86.64"
     } ;
 
 <PRIVATE
index e364ee9a41fa1a5f69a0c19324fd084c43d5205d..ff8173b03e064efff41a467577f750cc9c357408 100644 (file)
@@ -9,7 +9,7 @@ IN: cairo.ffi
 ! Adapted from cairo.h, version 1.8.10
 
 << {
-    { [ os winnt? ] [ "cairo" "libcairo-2.dll" cdecl add-library ] }
+    { [ os windows? ] [ "cairo" "libcairo-2.dll" cdecl add-library ] }
     { [ os macosx? ] [ "cairo" "/opt/local/lib/libcairo.dylib" cdecl add-library ] }
     { [ os unix? ] [ ] }
 } cond >>
index 2c27118146a37a3f45a6ce96afeb0ca5bcbf4a17..a082888690b6b13c81a6cabd9cf71aa9c1296f4c 100755 (executable)
@@ -23,7 +23,7 @@ IN: compiler.tests.alien
 : libfactor-ffi-tests-path ( -- string )
     "resource:" absolute-path
     {
-        { [ os winnt? ]  [ "libfactor-ffi-test.dll" ] }
+        { [ os windows? ]  [ "libfactor-ffi-test.dll" ] }
         { [ os macosx? ] [ "libfactor-ffi-test.dylib" ] }
         { [ os unix?  ]  [ "libfactor-ffi-test.so" ] }
     } cond append-path ;
index aede6d562113ce5221ef85b62a5c8deb109ccfa3..6c4efbb1edd5728d29f73a21ab488cc091d1781b 100644 (file)
@@ -5,7 +5,7 @@ alien.libraries ;
 IN: compression.zlib.ffi
 
 << "zlib" {
-    { [ os winnt? ] [ "zlib1.dll" ] }
+    { [ os windows? ] [ "zlib1.dll" ] }
     { [ os macosx? ] [ "libz.dylib" ] }
     { [ os unix? ] [ "libz.so" ] }
 } cond cdecl add-library >>
diff --git a/basis/cpu/x86/32/windows/bootstrap.factor b/basis/cpu/x86/32/windows/bootstrap.factor
new file mode 100644 (file)
index 0000000..a081b48
--- /dev/null
@@ -0,0 +1,36 @@
+! Copyright (C) 2010 Slava Pestov.
+! See http://factorcode.org/license.txt for BSD license.
+USING: bootstrap.image.private compiler.constants
+cpu.x86.assembler cpu.x86.assembler.operands kernel layouts
+locals parser sequences ;
+IN: bootstrap.x86
+
+: tib-segment ( -- ) FS ;
+: tib-temp ( -- reg ) EAX ;
+
+<< "vocab:cpu/x86/windows/bootstrap.factor" parse-file suffix! >> call
+
+: jit-install-seh ( -- )
+    ! Create a new exception record and store it in the TIB.
+    ! Clobbers tib-temp.
+    ! Align stack
+    ESP 3 bootstrap-cells ADD
+    ! Exception handler address filled in by callback.cpp
+    tib-temp 0 MOV rc-absolute-cell rt-exception-handler jit-rel
+    tib-temp PUSH
+    ! No next handler
+    0 PUSH
+    ! This is the new exception handler
+    tib-exception-list-offset [] ESP tib-segment MOV ;
+
+:: jit-update-seh ( ctx-reg -- )
+    ! Load exception record structure that jit-install-seh
+    ! created from the bottom of the callstack.
+    ! Clobbers tib-temp.
+    tib-temp ctx-reg context-callstack-bottom-offset [+] MOV
+    tib-temp bootstrap-cell ADD
+    ! Store exception record in TIB.
+    tib-exception-list-offset [] tib-temp tib-segment MOV ;
+
+<< "vocab:cpu/x86/32/bootstrap.factor" parse-file suffix! >> call
+<< "vocab:cpu/x86/bootstrap.factor" parse-file suffix! >> call
diff --git a/basis/cpu/x86/32/winnt/bootstrap.factor b/basis/cpu/x86/32/winnt/bootstrap.factor
deleted file mode 100644 (file)
index 5628632..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-! Copyright (C) 2010 Slava Pestov.
-! See http://factorcode.org/license.txt for BSD license.
-USING: bootstrap.image.private compiler.constants
-cpu.x86.assembler cpu.x86.assembler.operands kernel layouts
-locals parser sequences ;
-IN: bootstrap.x86
-
-: tib-segment ( -- ) FS ;
-: tib-temp ( -- reg ) EAX ;
-
-<< "vocab:cpu/x86/winnt/bootstrap.factor" parse-file suffix! >> call
-
-: jit-install-seh ( -- )
-    ! Create a new exception record and store it in the TIB.
-    ! Clobbers tib-temp.
-    ! Align stack
-    ESP 3 bootstrap-cells ADD
-    ! Exception handler address filled in by callback.cpp
-    tib-temp 0 MOV rc-absolute-cell rt-exception-handler jit-rel
-    tib-temp PUSH
-    ! No next handler
-    0 PUSH
-    ! This is the new exception handler
-    tib-exception-list-offset [] ESP tib-segment MOV ;
-
-:: jit-update-seh ( ctx-reg -- )
-    ! Load exception record structure that jit-install-seh
-    ! created from the bottom of the callstack.
-    ! Clobbers tib-temp.
-    tib-temp ctx-reg context-callstack-bottom-offset [+] MOV
-    tib-temp bootstrap-cell ADD
-    ! Store exception record in TIB.
-    tib-exception-list-offset [] tib-temp tib-segment MOV ;
-
-<< "vocab:cpu/x86/32/bootstrap.factor" parse-file suffix! >> call
-<< "vocab:cpu/x86/bootstrap.factor" parse-file suffix! >> call
index f4a2d05f8d6e1a1eb0820deb83829042da0488cc..e7582e627cc334f418f17c72ce7713f850b305d3 100644 (file)
@@ -143,7 +143,7 @@ USE: vocabs.loader
 
 {
     { [ os unix? ] [ "cpu.x86.64.unix" require ] }
-    { [ os winnt? ] [ "cpu.x86.64.winnt" require ] }
+    { [ os windows? ] [ "cpu.x86.64.windows" require ] }
 } cond
 
 check-sse
diff --git a/basis/cpu/x86/64/windows/bootstrap.factor b/basis/cpu/x86/64/windows/bootstrap.factor
new file mode 100644 (file)
index 0000000..321e564
--- /dev/null
@@ -0,0 +1,25 @@
+! Copyright (C) 2008 Slava Pestov.
+! See http://factorcode.org/license.txt for BSD license.
+USING: bootstrap.image.private kernel namespaces system layouts
+vocabs sequences cpu.x86.assembler parser
+cpu.x86.assembler.operands ;
+IN: bootstrap.x86
+
+DEFER: stack-reg
+
+: stack-frame-size ( -- n ) 8 bootstrap-cells ;
+: nv-regs ( -- seq ) { RBX RSI RDI R12 R13 R14 R15 } ;
+: arg1 ( -- reg ) RCX ;
+: arg2 ( -- reg ) RDX ;
+: arg3 ( -- reg ) R8 ;
+: arg4 ( -- reg ) R9 ;
+
+: tib-segment ( -- ) GS ;
+: tib-temp ( -- reg ) R11 ;
+
+: jit-install-seh ( -- ) stack-reg bootstrap-cell ADD ;
+: jit-update-seh ( ctx-reg -- ) drop ;
+
+<< "vocab:cpu/x86/windows/bootstrap.factor" parse-file suffix! >> call
+<< "vocab:cpu/x86/64/bootstrap.factor" parse-file suffix! >> call
+<< "vocab:cpu/x86/bootstrap.factor" parse-file suffix! >> call
diff --git a/basis/cpu/x86/64/windows/summary.txt b/basis/cpu/x86/64/windows/summary.txt
new file mode 100644 (file)
index 0000000..7f66427
--- /dev/null
@@ -0,0 +1 @@
+64-bit x86 Windows ABI support
diff --git a/basis/cpu/x86/64/windows/tags.txt b/basis/cpu/x86/64/windows/tags.txt
new file mode 100644 (file)
index 0000000..ebb74b4
--- /dev/null
@@ -0,0 +1 @@
+not loaded
diff --git a/basis/cpu/x86/64/windows/windows.factor b/basis/cpu/x86/64/windows/windows.factor
new file mode 100644 (file)
index 0000000..0d48531
--- /dev/null
@@ -0,0 +1,25 @@
+! Copyright (C) 2008, 2010 Slava Pestov.
+! See http://factorcode.org/license.txt for BSD license.
+USING: kernel layouts system math alien.c-types sequences
+compiler.cfg.registers cpu.architecture cpu.x86.assembler
+cpu.x86 cpu.x86.64 cpu.x86.assembler.operands ;
+IN: cpu.x86.64.windows
+
+M: x86.64 param-regs
+    drop {
+        { int-regs { RCX RDX R8 R9 } }
+        { float-regs { XMM0 XMM1 XMM2 XMM3 } }
+    } ;
+
+M: x86.64 reserved-stack-space 4 cells ;
+
+M: x86.64 return-struct-in-registers? ( c-type -- ? )
+    heap-size { 1 2 4 8 } member? ;
+
+M: x86.64 value-struct? heap-size { 1 2 4 8 } member? ;
+
+M: x86.64 dummy-stack-params? f ;
+
+M: x86.64 dummy-int-params? t ;
+
+M: x86.64 dummy-fp-params? t ;
diff --git a/basis/cpu/x86/64/winnt/bootstrap.factor b/basis/cpu/x86/64/winnt/bootstrap.factor
deleted file mode 100644 (file)
index f816980..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-! Copyright (C) 2008 Slava Pestov.
-! See http://factorcode.org/license.txt for BSD license.
-USING: bootstrap.image.private kernel namespaces system layouts
-vocabs sequences cpu.x86.assembler parser
-cpu.x86.assembler.operands ;
-IN: bootstrap.x86
-
-DEFER: stack-reg
-
-: stack-frame-size ( -- n ) 8 bootstrap-cells ;
-: nv-regs ( -- seq ) { RBX RSI RDI R12 R13 R14 R15 } ;
-: arg1 ( -- reg ) RCX ;
-: arg2 ( -- reg ) RDX ;
-: arg3 ( -- reg ) R8 ;
-: arg4 ( -- reg ) R9 ;
-
-: tib-segment ( -- ) GS ;
-: tib-temp ( -- reg ) R11 ;
-
-: jit-install-seh ( -- ) stack-reg bootstrap-cell ADD ;
-: jit-update-seh ( ctx-reg -- ) drop ;
-
-<< "vocab:cpu/x86/winnt/bootstrap.factor" parse-file suffix! >> call
-<< "vocab:cpu/x86/64/bootstrap.factor" parse-file suffix! >> call
-<< "vocab:cpu/x86/bootstrap.factor" parse-file suffix! >> call
diff --git a/basis/cpu/x86/64/winnt/summary.txt b/basis/cpu/x86/64/winnt/summary.txt
deleted file mode 100644 (file)
index 7f66427..0000000
+++ /dev/null
@@ -1 +0,0 @@
-64-bit x86 Windows ABI support
diff --git a/basis/cpu/x86/64/winnt/tags.txt b/basis/cpu/x86/64/winnt/tags.txt
deleted file mode 100644 (file)
index ebb74b4..0000000
+++ /dev/null
@@ -1 +0,0 @@
-not loaded
diff --git a/basis/cpu/x86/64/winnt/winnt.factor b/basis/cpu/x86/64/winnt/winnt.factor
deleted file mode 100644 (file)
index 7f1f29a..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-! Copyright (C) 2008, 2010 Slava Pestov.
-! See http://factorcode.org/license.txt for BSD license.
-USING: kernel layouts system math alien.c-types sequences
-compiler.cfg.registers cpu.architecture cpu.x86.assembler
-cpu.x86 cpu.x86.64 cpu.x86.assembler.operands ;
-IN: cpu.x86.64.winnt
-
-M: x86.64 param-regs
-    drop {
-        { int-regs { RCX RDX R8 R9 } }
-        { float-regs { XMM0 XMM1 XMM2 XMM3 } }
-    } ;
-
-M: x86.64 reserved-stack-space 4 cells ;
-
-M: x86.64 return-struct-in-registers? ( c-type -- ? )
-    heap-size { 1 2 4 8 } member? ;
-
-M: x86.64 value-struct? heap-size { 1 2 4 8 } member? ;
-
-M: x86.64 dummy-stack-params? f ;
-
-M: x86.64 dummy-int-params? t ;
-
-M: x86.64 dummy-fp-params? t ;
diff --git a/basis/cpu/x86/windows/bootstrap.factor b/basis/cpu/x86/windows/bootstrap.factor
new file mode 100644 (file)
index 0000000..b81c1eb
--- /dev/null
@@ -0,0 +1,32 @@
+! Copyright (C) 2010 Slava Pestov.
+! See http://factorcode.org/license.txt for BSD license.
+USING: bootstrap.image.private compiler.constants
+cpu.x86.assembler cpu.x86.assembler.operands kernel layouts
+locals parser sequences ;
+IN: bootstrap.x86
+
+: tib-exception-list-offset ( -- n ) 0 bootstrap-cells ;
+: tib-stack-base-offset ( -- n ) 1 bootstrap-cells ;
+: tib-stack-limit-offset ( -- n ) 2 bootstrap-cells ;
+
+: jit-save-tib ( -- )
+    tib-exception-list-offset [] tib-segment PUSH
+    tib-stack-base-offset [] tib-segment PUSH
+    tib-stack-limit-offset [] tib-segment PUSH ;
+
+: jit-restore-tib ( -- )
+    tib-stack-limit-offset [] tib-segment POP
+    tib-stack-base-offset [] tib-segment POP
+    tib-exception-list-offset [] tib-segment POP ;
+
+:: jit-update-tib ( ctx-reg -- )
+    ! There's a redundant load here because we're not allowed
+    ! to clobber ctx-reg. Clobbers tib-temp.
+    ! Save callstack base in TIB
+    tib-temp ctx-reg context-callstack-seg-offset [+] MOV
+    tib-temp tib-temp segment-end-offset [+] MOV
+    tib-stack-base-offset [] tib-temp tib-segment MOV
+    ! Save callstack limit in TIB
+    tib-temp ctx-reg context-callstack-seg-offset [+] MOV
+    tib-temp tib-temp segment-start-offset [+] MOV
+    tib-stack-limit-offset [] tib-temp tib-segment MOV ;
diff --git a/basis/cpu/x86/winnt/bootstrap.factor b/basis/cpu/x86/winnt/bootstrap.factor
deleted file mode 100644 (file)
index b81c1eb..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-! Copyright (C) 2010 Slava Pestov.
-! See http://factorcode.org/license.txt for BSD license.
-USING: bootstrap.image.private compiler.constants
-cpu.x86.assembler cpu.x86.assembler.operands kernel layouts
-locals parser sequences ;
-IN: bootstrap.x86
-
-: tib-exception-list-offset ( -- n ) 0 bootstrap-cells ;
-: tib-stack-base-offset ( -- n ) 1 bootstrap-cells ;
-: tib-stack-limit-offset ( -- n ) 2 bootstrap-cells ;
-
-: jit-save-tib ( -- )
-    tib-exception-list-offset [] tib-segment PUSH
-    tib-stack-base-offset [] tib-segment PUSH
-    tib-stack-limit-offset [] tib-segment PUSH ;
-
-: jit-restore-tib ( -- )
-    tib-stack-limit-offset [] tib-segment POP
-    tib-stack-base-offset [] tib-segment POP
-    tib-exception-list-offset [] tib-segment POP ;
-
-:: jit-update-tib ( ctx-reg -- )
-    ! There's a redundant load here because we're not allowed
-    ! to clobber ctx-reg. Clobbers tib-temp.
-    ! Save callstack base in TIB
-    tib-temp ctx-reg context-callstack-seg-offset [+] MOV
-    tib-temp tib-temp segment-end-offset [+] MOV
-    tib-stack-base-offset [] tib-temp tib-segment MOV
-    ! Save callstack limit in TIB
-    tib-temp ctx-reg context-callstack-seg-offset [+] MOV
-    tib-temp tib-temp segment-start-offset [+] MOV
-    tib-stack-limit-offset [] tib-temp tib-segment MOV ;
index 99078ca85d0b87aeea9c2e65d449060f11a506b1..2dd7e193b70844b31ee4c08411c592d37241d174 100644 (file)
@@ -6,7 +6,7 @@ alien.libraries ;
 IN: db.postgresql.ffi
 
 << "postgresql" {
-    { [ os winnt? ]  [ "libpq.dll" ] }
+    { [ os windows? ]  [ "libpq.dll" ] }
     { [ os macosx? ] [ "libpq.dylib" ] }
     { [ os unix?  ]  [ "libpq.so" ] }
 } cond cdecl add-library >>
index b5f9020ce9fb192cd4231530f512352018d599f6..14b56a7035a36968ae6fdad1509dfdee0c241719 100644 (file)
@@ -7,7 +7,7 @@ system combinators alien.c-types alien.libraries ;
 IN: db.sqlite.ffi
 
 << "sqlite" {
-        { [ os winnt? ]  [ "sqlite3.dll" ] }
+        { [ os windows? ]  [ "sqlite3.dll" ] }
         { [ os macosx? ] [ "/usr/lib/libsqlite3.dylib" ] }
         { [ os unix? ]  [ "libsqlite3.so" ] }
     } cond cdecl add-library >>
index 7e08a789202ccb19418089960c99d4d15760e3a7..6f913c1a936e89f90d79e1c2e579975154f1efdd 100644 (file)
@@ -62,7 +62,6 @@ HELP: unset-os-env
 
 ARTICLE: "environment" "Environment variables"
 "The " { $vocab-link "environment" } " vocabulary interfaces to the platform-dependent mechanism for setting environment variables." $nl
-"Windows CE has no concept of environment variables, so these words are undefined on that platform." $nl
 "Reading environment variables:"
 { $subsections
     os-env
index 37173031755f4f52afbf0081129abfac06d26974..f7c609bd283cad7c137b5c48ceda44fe13e32490 100644 (file)
@@ -4,26 +4,24 @@ USING: kernel namespaces prettyprint system tools.test
 environment strings sequences ;
 IN: environment.tests
 
-os wince? [
-    [ ] [ os-envs . ] unit-test
+[ ] [ os-envs . ] unit-test
 
-    os unix? [
-        [ ] [ os-envs "envs" set ] unit-test
-        [ ] [ { { "A" "B" } } set-os-envs ] unit-test
-        [ "B" ] [ "A" os-env ] unit-test
-        [ ] [ "envs" get set-os-envs ] unit-test
-        [ t ] [ os-envs "envs" get = ] unit-test
-    ] when
+os unix? [
+    [ ] [ os-envs "envs" set ] unit-test
+    [ ] [ { { "A" "B" } } set-os-envs ] unit-test
+    [ "B" ] [ "A" os-env ] unit-test
+    [ ] [ "envs" get set-os-envs ] unit-test
+    [ t ] [ os-envs "envs" get = ] unit-test
+] when
 
-    [ ] [ "factor-test-key-1" unset-os-env ] unit-test
-    [ ] [ "ps3" "factor-test-key-1" set-os-env ] unit-test
-    [ "ps3" ] [ "factor-test-key-1" os-env ] unit-test
-    [ ] [ "factor-test-key-1" unset-os-env ] unit-test
-    [ f ] [ "factor-test-key-1" os-env ] unit-test
+[ ] [ "factor-test-key-1" unset-os-env ] unit-test
+[ ] [ "ps3" "factor-test-key-1" set-os-env ] unit-test
+[ "ps3" ] [ "factor-test-key-1" os-env ] unit-test
+[ ] [ "factor-test-key-1" unset-os-env ] unit-test
+[ f ] [ "factor-test-key-1" os-env ] unit-test
 
-    [ ] [
-        32766 CHAR: a <string> "factor-test-key-long" set-os-env
-    ] unit-test
-    [ 32766 ] [ "factor-test-key-long" os-env length ] unit-test
-    [ ] [ "factor-test-key-long" unset-os-env ] unit-test
-] unless
+[ ] [
+    32766 CHAR: a <string> "factor-test-key-long" set-os-env
+] unit-test
+[ 32766 ] [ "factor-test-key-long" os-env length ] unit-test
+[ ] [ "factor-test-key-long" unset-os-env ] unit-test
index ccdbd66d96c53f8fb35d797cd0a3b3256a08755c..c196cff57a9ec7afd6476c61e76980f03ae5321e 100644 (file)
@@ -22,8 +22,7 @@ HOOK: (set-os-envs) os ( seq -- )
 
 {
     { [ os unix? ] [ "environment.unix" require ] }
-    { [ os winnt? ] [ "environment.winnt" require ] }
-    { [ os wince? ] [ ] }
+    { [ os windows? ] [ "environment.windows" require ] }
 } cond
 
 [
diff --git a/basis/environment/windows/authors.txt b/basis/environment/windows/authors.txt
new file mode 100644 (file)
index 0000000..b4bd0e7
--- /dev/null
@@ -0,0 +1 @@
+Doug Coleman
\ No newline at end of file
diff --git a/basis/environment/windows/platforms.txt b/basis/environment/windows/platforms.txt
new file mode 100644 (file)
index 0000000..8e1a559
--- /dev/null
@@ -0,0 +1 @@
+windows
diff --git a/basis/environment/windows/summary.txt b/basis/environment/windows/summary.txt
new file mode 100644 (file)
index 0000000..9059709
--- /dev/null
@@ -0,0 +1 @@
+Windows environment variables implementation
diff --git a/basis/environment/windows/windows.factor b/basis/environment/windows/windows.factor
new file mode 100644 (file)
index 0000000..ae12482
--- /dev/null
@@ -0,0 +1,33 @@
+! 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 windows.types system
+environment alien.data sequences windows.errors
+io.streams.memory io.encodings io specialized-arrays ;
+SPECIALIZED-ARRAY: TCHAR
+IN: environment.windows
+
+M: windows os-env ( key -- value )
+    MAX_UNICODE_PATH TCHAR <c-array>
+    [ dup length GetEnvironmentVariable ] keep over 0 = [
+        2drop f
+    ] [
+        nip utf16n alien>string
+    ] if ;
+
+M: windows set-os-env ( value key -- )
+    swap SetEnvironmentVariable win32-error=0/f ;
+
+M: windows unset-os-env ( key -- )
+    f SetEnvironmentVariable 0 = [
+        GetLastError ERROR_ENVVAR_NOT_FOUND =
+        [ win32-error ] unless
+    ] when ;
+
+M: windows (os-envs) ( -- seq )
+    GetEnvironmentStrings [
+        <memory-stream> [
+            utf16n decode-input
+            [ "\0" read-until drop dup empty? not ] [ ] produce nip
+        ] with-input-stream*
+    ] [ FreeEnvironmentStrings win32-error=0/f ] bi ;
diff --git a/basis/environment/winnt/authors.txt b/basis/environment/winnt/authors.txt
deleted file mode 100644 (file)
index b4bd0e7..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Doug Coleman
\ No newline at end of file
diff --git a/basis/environment/winnt/platforms.txt b/basis/environment/winnt/platforms.txt
deleted file mode 100644 (file)
index 205e643..0000000
+++ /dev/null
@@ -1 +0,0 @@
-winnt
diff --git a/basis/environment/winnt/summary.txt b/basis/environment/winnt/summary.txt
deleted file mode 100644 (file)
index 9059709..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Windows environment variables implementation
diff --git a/basis/environment/winnt/winnt.factor b/basis/environment/winnt/winnt.factor
deleted file mode 100644 (file)
index 894415a..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-! 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 windows.types system
-environment alien.data sequences windows.errors
-io.streams.memory io.encodings io specialized-arrays ;
-SPECIALIZED-ARRAY: TCHAR
-IN: environment.winnt
-
-M: winnt os-env ( key -- value )
-    MAX_UNICODE_PATH TCHAR <c-array>
-    [ dup length GetEnvironmentVariable ] keep over 0 = [
-        2drop f
-    ] [
-        nip utf16n alien>string
-    ] if ;
-
-M: winnt set-os-env ( value key -- )
-    swap SetEnvironmentVariable win32-error=0/f ;
-
-M: winnt unset-os-env ( key -- )
-    f SetEnvironmentVariable 0 = [
-        GetLastError ERROR_ENVVAR_NOT_FOUND =
-        [ win32-error ] unless
-    ] when ;
-
-M: winnt (os-envs) ( -- seq )
-    GetEnvironmentStrings [
-        <memory-stream> [
-            utf16n decode-input
-            [ "\0" read-until drop dup empty? not ] [ ] produce nip
-        ] with-input-stream*
-    ] [ FreeEnvironmentStrings win32-error=0/f ] bi ;
index 205e64323d82ea8779da35e4e45969b2ae7ed9a0..8e1a55995ee061d80a8c62a725bc30ab9974f154 100644 (file)
@@ -1 +1 @@
-winnt
+windows
index 205e64323d82ea8779da35e4e45969b2ae7ed9a0..8e1a55995ee061d80a8c62a725bc30ab9974f154 100644 (file)
@@ -1 +1 @@
-winnt
+windows
index 689193a8d9d5f1794e33da98a4647c01d0f164ed..ce5a40f878dc8751885667c9be01dad525ea8133 100644 (file)
@@ -15,7 +15,7 @@ LIBRARY: gdk
 
 <<
 "gdk" {
-    { [ os winnt? ] [ "libgdk-win32-2.0-0.dll" cdecl add-library ] }
+    { [ os windows? ] [ "libgdk-win32-2.0-0.dll" cdecl add-library ] }
     { [ os unix? ] [ drop ] }
 } cond
 >>
index d60da8fbc05b739989c98e44462985679d17d8c3..d37afcdc21ff6818505f32ec512683fc3bd57517 100644 (file)
@@ -14,7 +14,7 @@ LIBRARY: gdk.pixbuf
 
 <<
 "gdk.pixbuf" {
-    { [ os winnt? ] [ "libgdk_pixbuf-2.0-0.dll" cdecl add-library ] }
+    { [ os windows? ] [ "libgdk_pixbuf-2.0-0.dll" cdecl add-library ] }
     { [ os unix? ] [ drop ] }
 } cond
 >>
index 3eb09c51052978784dc0c4b303b7a5f9bbc4f4d3..6e82dec098e053a17874b8e0ee2713384fb7eccb 100644 (file)
@@ -12,7 +12,7 @@ LIBRARY: gio
 
 <<
 "gio" {
-    { [ os winnt? ] [ "libgio-2.0-0.dll" cdecl add-library ] }
+    { [ os windows? ] [ "libgio-2.0-0.dll" cdecl add-library ] }
     { [ os unix? ] [ drop ] }
 } cond
 >>
index 30f681203ef38fff279ab5d3ba4493ce3bc28f10..f3fa1fc9f4457a8b5e9f9a4aa43f69cc8e16c2c8 100644 (file)
@@ -10,7 +10,7 @@ LIBRARY: glib
 
 <<
 "glib" {
-    { [ os winnt? ] [ "libglib-2.0-0.dll" cdecl add-library ] }
+    { [ os windows? ] [ "libglib-2.0-0.dll" cdecl add-library ] }
     { [ os macosx? ] [ "/opt/local/lib/libglib-2.0.0.dylib" cdecl add-library ] }
     { [ os unix? ] [ drop ] }
 } cond
index c90fce8085ba2e0ae2714f4c57cd68c956c2fadc..912cd3cff0cbadf6aca72d35c01831620ee55795 100644 (file)
@@ -12,7 +12,7 @@ LIBRARY: gmodule
 
 <<
 "gmodule" {
-    { [ os winnt? ] [ "libgmodule-2.0-0.dll" cdecl add-library ] }
+    { [ os windows? ] [ "libgmodule-2.0-0.dll" cdecl add-library ] }
     { [ os macosx? ] [ drop ] }
     { [ os unix? ] [ "libgmodule-2.0.so" cdecl add-library ] }
 } cond
index c9d9c21af80a0174759e54b36169ca2bdd34bae8..38ff1789c87acceffdd2349cd36b32b0ccb0e0fc 100644 (file)
@@ -15,7 +15,7 @@ LIBRARY: gobject
 
 <<
 "gobject" {
-    { [ os winnt? ] [ "libobject-2.0-0.dll" cdecl add-library ] }
+    { [ os windows? ] [ "libobject-2.0-0.dll" cdecl add-library ] }
     { [ os unix? ] [ drop ] }
 } cond
 >>
index a2d6e7be323982b769db50c45e58b80f771d1f83..7da6cebd0f201c1b12a996e8eb5ef16ce1a0b3c8 100644 (file)
@@ -15,7 +15,7 @@ LIBRARY: gtk
 
 <<
 "gtk" {
-    { [ os winnt? ] [ "libgtk-win32-2.0-0.dll" cdecl add-library ] }
+    { [ os windows? ] [ "libgtk-win32-2.0-0.dll" cdecl add-library ] }
     { [ os unix? ] [ drop ] }
 } cond
 >>
index e901c5bb2ffadb9631d60e89ec7743844773ab2e..748da7617f9d716aaf30b57b84a1208a1e70b799 100644 (file)
@@ -13,7 +13,7 @@ LIBRARY: gtk.gl
 
 <<
 "gtk.gl" {
-    { [ os winnt? ] [ drop ] }
+    { [ os windows? ] [ drop ] }
     { [ os macosx? ] [ drop ] }
     { [ os unix? ] [ "libgtkglext-x11-1.0.so" cdecl add-library ] }
 } cond
index 7f9c42d13ba879bf012399e3f0bb260b23fbcec8..3423ac1c939b9dca4db7f308022e66b598777191 100755 (executable)
@@ -5,4 +5,4 @@ IN: io.backend.windows
 
 "io.files.windows" require
 
-winnt set-io-backend
+windows set-io-backend
index 6370fdb90d04255def2f25d79270c56c507183e0..056b1c8396c7f24f51523f4f8af60edebcdc1a7e 100644 (file)
@@ -5,13 +5,11 @@ IN: io.directories
 HELP: cwd
 { $values { "path" "a pathname string" } }
 { $description "Outputs the current working directory of the Factor process." }
-{ $errors "Windows CE has no concept of “current directory”, so this word throws an error there." }
 { $notes "User code should use the value of the " { $link current-directory } " variable instead." } ;
 
 HELP: cd
 { $values { "path" "a pathname string" } }
 { $description "Changes the current working directory of the Factor process." }
-{ $errors "Windows CE has no concept of “current directory”, so this word throws an error there." }
 { $notes "User code should use " { $link with-directory } " or " { $link set-current-directory } " instead." } ;
 
 { cd cwd current-directory set-current-directory with-directory } related-words
index bf055f327b40f224f024235541c3f39a139780f0..417a2353c2331f2dd5ac6226874a4d7b3e768a4c 100755 (executable)
@@ -141,7 +141,7 @@ ERROR: not-absolute-path ;
 
 PRIVATE>
 
-M: winnt file-system-info ( path -- file-system-info )
+M: windows file-system-info ( path -- file-system-info )
     normalize-path root-directory (file-system-info) ;
 
 CONSTANT: names-buf-length 16384
@@ -174,7 +174,7 @@ CONSTANT: names-buf-length 16384
         ]
     ] [ '[ _ FindVolumeClose win32-error=0/f ] ] bi [ ] cleanup ;
 
-M: winnt file-systems ( -- array )
+M: windows file-systems ( -- array )
     find-volumes [ volume>paths ] map
     concat [
         [ (file-system-info) ]
index afadf08494017c3fb09de6e1ce3748f262d335b0..4d184bb309f25027d373aa04b88fd2d6c3bbdb8e 100755 (executable)
@@ -70,7 +70,7 @@ C: <io-callback> io-callback
     [ (make-overlapped) ] dip
     handle>> ptr>> [ >>offset ] when* ;
 
-M: winnt FileArgs-overlapped ( port -- overlapped )
+M: windows FileArgs-overlapped ( port -- overlapped )
     make-overlapped ;
 
 : <completion-port> ( handle existing -- handle )
@@ -81,7 +81,7 @@ SYMBOL: master-completion-port
 : <master-completion-port> ( -- handle )
     INVALID_HANDLE_VALUE f <completion-port> ;
 
-M: winnt add-completion ( win32-handle -- win32-handle )
+M: windows add-completion ( win32-handle -- win32-handle )
     dup handle>> master-completion-port get-global <completion-port> drop ;
 
 : eof? ( error -- ? )
@@ -121,10 +121,10 @@ M: winnt add-completion ( win32-handle -- win32-handle )
 M: win32-handle cancel-operation
     [ handle>> CancelIo win32-error=0/f ] unless-disposed ;
 
-M: winnt io-multiplex ( nanos -- )
+M: windows io-multiplex ( nanos -- )
     handle-overlapped [ 0 io-multiplex ] when ;
 
-M: winnt init-io ( -- )
+M: windows init-io ( -- )
     <master-completion-port> master-completion-port set-global
     H{ } clone pending-overlapped set-global ;
 
@@ -138,9 +138,9 @@ ERROR: seek-before-start n ;
 : set-seek-ptr ( n handle -- )
     [ dup 0 < [ seek-before-start ] when ] dip ptr<< ;
 
-M: winnt tell-handle ( handle -- n ) ptr>> ;
+M: windows tell-handle ( handle -- n ) ptr>> ;
 
-M: winnt seek-handle ( n seek-type handle -- )
+M: windows seek-handle ( n seek-type handle -- )
     swap {
         { seek-absolute [ set-seek-ptr ] }
         { seek-relative [ [ ptr>> + ] keep set-seek-ptr ] }
@@ -185,7 +185,7 @@ M: winnt seek-handle ( n seek-type handle -- )
         [ lpOverlapped>> ]
     } cleave ;
     
-M: winnt (wait-to-write)
+M: windows (wait-to-write)
     [
         [ make-FileArgs dup setup-write WriteFile ]
         [ wait-for-file ]
@@ -196,7 +196,7 @@ M: winnt (wait-to-write)
 : finish-read ( n port -- )
     [ update-file-ptr ] [ buffer>> n>buffer ] 2bi ;
 
-M: winnt (wait-to-read) ( port -- )
+M: windows (wait-to-read) ( port -- )
     [
         [ make-FileArgs dup setup-read ReadFile ]
         [ wait-for-file ]
@@ -206,7 +206,7 @@ M: winnt (wait-to-read) ( port -- )
 
 : console-app? ( -- ? ) GetConsoleWindow >boolean ;
 
-M: winnt init-stdio
+M: windows init-stdio
     console-app?
     [ init-c-stdio ]
     [ null-reader null-writer null-writer set-stdio ] if ;
@@ -296,17 +296,17 @@ SYMBOLS: +read-only+ +hidden+ +system+
     [ timestamp>FILETIME ] tri@
     SetFileTime win32-error=0/f ;
 
-M: winnt cwd
+M: windows cwd
     MAX_UNICODE_PATH dup <ushort-array>
     [ GetCurrentDirectory win32-error=0/f ] keep
     utf16n alien>string ;
 
-M: winnt cd
+M: windows cd
     SetCurrentDirectory win32-error=0/f ;
 
 CONSTANT: unicode-prefix "\\\\?\\"
 
-M: winnt root-directory? ( path -- ? )
+M: windows root-directory? ( path -- ? )
     {
         { [ dup empty? ] [ drop f ] }
         { [ dup [ path-separator? ] all? ] [ drop t ] }
@@ -331,7 +331,7 @@ TR: normalize-separators "/" "\\" ;
 
 PRIVATE>
 
-M: winnt normalize-path ( string -- string' )
+M: windows normalize-path ( string -- string' )
     dup unc-path? [
         normalize-separators
     ] [
@@ -340,7 +340,7 @@ M: winnt normalize-path ( string -- string' )
         prepend-prefix
     ] if ;
 
-M: winnt CreateFile-flags ( DWORD -- DWORD )
+M: windows CreateFile-flags ( DWORD -- DWORD )
     FILE_FLAG_OVERLAPPED bitor ;
 
 <PRIVATE
@@ -352,11 +352,11 @@ M: winnt CreateFile-flags ( DWORD -- DWORD )
 
 PRIVATE>
 
-M: winnt open-append
+M: windows open-append
     [ dup windows-file-size ] [ drop 0 ] recover
     [ (open-append) ] dip >>ptr ;
 
-M: winnt home
+M: windows home
     {
         [ "HOMEDRIVE" os-env "HOMEPATH" os-env append-path ]
         [ "USERPROFILE" os-env ]
index 0e7c11b6e4b8fcbbf70c87701c03170982e5749f..e496797f6b14a5d7998a4e22423bf802f2ce24d0 100644 (file)
@@ -23,7 +23,7 @@ $nl
 "The default value is " { $link +append-environment+ } "." ;
 
 ARTICLE: "io.launcher.redirection" "Input/output redirection"
-"On all operating systems except for Windows CE, the default input/output/error streams can be redirected."
+"On all operating systems, the default input/output/error streams can be redirected."
 $nl
 "To specify redirection, set the " { $snippet "stdin" } ", " { $snippet "stdout" } " and " { $snippet "stderr" } " slots of a " { $link process } " to one of the following values:"
 { $list
index 4a84064c33b4fb3bcb140e3752b4fc845e9770e5..47aeb0c712dbedc9a8b1d60e2d7a826e2ef20595 100755 (executable)
@@ -77,27 +77,16 @@ TUPLE: CreateProcess-args
         [ drop f ]
     } case ;
 
-: app-name/cmd-line ( process -- app-name cmd-line )
-    command>> dup string? [
-        " " split1
-    ] [
-        unclip swap join-arguments
-    ] if ;
-
 : cmd-line ( process -- cmd-line )
     command>> dup string? [ join-arguments ] unless ;
 
-: fill-lpApplicationName ( process args -- process args )
-    over app-name/cmd-line
-    [ >>lpApplicationName ] [ >>lpCommandLine ] bi* ;
-
 : fill-lpCommandLine ( process args -- process args )
     over cmd-line >>lpCommandLine ;
 
 : fill-dwCreateFlags ( process args -- process args )
     0
     pick pass-environment? [ CREATE_UNICODE_ENVIRONMENT bitor ] when
-    pick detached>> os winnt? and [ DETACHED_PROCESS bitor ] when
+    pick detached>> os windows? and [ DETACHED_PROCESS bitor ] when
     pick lookup-priority [ bitor ] when*
     >>dwCreateFlags ;
 
@@ -114,13 +103,9 @@ TUPLE: CreateProcess-args
 : fill-startup-info ( process args -- process args )
     dup lpStartupInfo>> STARTF_USESTDHANDLES >>dwFlags drop ;
 
-HOOK: fill-redirection io-backend ( process args -- )
-
-M: wince fill-redirection 2drop ;
-
 : make-CreateProcess-args ( process -- args )
     default-CreateProcess-args
-    os wince? [ fill-lpApplicationName ] [ fill-lpCommandLine ] if
+    fill-lpCommandLine
     fill-dwCreateFlags
     fill-lpEnvironment
     fill-startup-info
@@ -137,18 +122,6 @@ M: launch-error error.
     "Launch descriptor:" print nl
     process>> . ;
 
-M: windows run-process* ( process -- handle )
-    [
-        [
-            current-directory get absolute-path cd
-    
-            dup make-CreateProcess-args
-            [ fill-redirection ] keep
-            dup call-CreateProcess
-            lpProcessInformation>>
-        ] with-destructors
-    ] [ launch-error ] recover ;
-
 M: windows kill-process* ( handle -- )
     hProcess>> 255 TerminateProcess win32-error=0/f ;
 
@@ -270,9 +243,21 @@ M: windows wait-for-processes ( -- ? )
     OPEN_EXISTING
     redirect
     STD_INPUT_HANDLE GetStdHandle or ;
-
-M: winnt fill-redirection ( process args -- )
+    
+: fill-redirection ( process args -- )
     dup lpStartupInfo>>
     [ [ redirect-stdout ] dip hStdOutput<< ]
     [ [ redirect-stderr ] dip hStdError<< ]
     [ [ redirect-stdin ] dip hStdInput<< ] 3tri ;
+
+M: windows run-process* ( process -- handle )
+    [
+        [
+            current-directory get absolute-path cd
+    
+            dup make-CreateProcess-args
+            [ fill-redirection ] keep
+            dup call-CreateProcess
+            lpProcessInformation>>
+        ] with-destructors
+    ] [ launch-error ] recover ;    
index 5f35278b054b919788650d41d186955d5a22e062..73125d8f7bb827aee8d8ae6fb3f27df53b991d93 100644 (file)
@@ -60,5 +60,5 @@ PRIVATE>
 
 {
     { [ os unix? ] [ "io.mmap.unix" require ] }
-    { [ os winnt? ] [ "io.mmap.windows" require ] }
+    { [ os windows? ] [ "io.mmap.windows" require ] }
 } cond
index 6347a979a65f432873d2eada31012f228dc696e5..8cb606992705a82da9d79a907075634f25235a71 100644 (file)
@@ -91,8 +91,7 @@ $nl
 "Factor uses " { $snippet "kqueue" } " to implement monitors on BSD."\r
 $nl\r
 "The " { $snippet "kqueue" } " system is limited to monitoring individual files and directories. Monitoring a directory only notifies of files being added and removed to the directory itself, not of changes to file contents."\r
-{ $heading "Windows CE" }\r
-"Windows CE does not support monitors." ;\r
+;\r
 \r
 ARTICLE: "io.monitors" "File system change monitors"\r
 "File system change monitors listen for changes to file names, attributes and contents under a specified directory. They can optionally be recursive, in which case subdirectories are also monitored."\r
index d08441603005dd00801f6ae56a22fbc16b56dcd1..666de2e1b62421094e579bc2609b0f7bd839ac68 100644 (file)
@@ -5,7 +5,7 @@ io.files.temp io.directories io.directories.hierarchy
 io.pathnames accessors concurrency.promises ;
 IN: io.monitors.tests
 
-os { winnt linux macosx } member? [
+os { windows linux macosx } member? [
     [
         [ "monitor-test" temp-file delete-tree ] ignore-errors
 
index 205e64323d82ea8779da35e4e45969b2ae7ed9a0..8e1a55995ee061d80a8c62a725bc30ab9974f154 100644 (file)
@@ -1 +1 @@
-winnt
+windows
index 43b3ac7ef4dcbf4479d6aa722c9745b94a5a7b62..f5d659ef4fcb148a21c88b2929deaee445628e98 100644 (file)
@@ -89,7 +89,7 @@ TUPLE: win32-monitor < monitor port ;
     [ dup fill-queue (fill-queue-thread) ]
     [ dup already-disposed? [ 2drop ] [ rethrow ] if ] recover ;
 
-M:: winnt (monitor) ( path recursive? mailbox -- monitor )
+M:: windows (monitor) ( path recursive? mailbox -- monitor )
     [
         path normalize-path mailbox win32-monitor new-monitor
             path open-directory \ win32-monitor-port <buffered-port>
index 205e64323d82ea8779da35e4e45969b2ae7ed9a0..8e1a55995ee061d80a8c62a725bc30ab9974f154 100644 (file)
@@ -1 +1 @@
-winnt
+windows
index ea906de966af9784276b7ab5b8c30f1eb0638a76..7a87df65e81d4c934c7cfbe0aabf4f9c5efc36c9 100644 (file)
@@ -39,7 +39,7 @@ IN: io.pipes.windows
         nano-count #
     ] "" make ;
 
-M: winnt (pipe) ( -- pipe )
+M: windows (pipe) ( -- pipe )
     [
         unique-pipe-name
         [ create-named-pipe ] [ open-other-end ] bi
index aea801615650313318eb388b57efdc7ad25d92fc..359826003f3b6defc70f9de7fe7aefcaf33bce25 100755 (executable)
@@ -89,7 +89,7 @@ M: windows (raw) ( addrspec -- handle )
 : malloc-int ( n -- alien )\r
     int <ref> malloc-byte-array ; inline\r
 \r
-M: winnt WSASocket-flags ( -- DWORD )\r
+M: windows WSASocket-flags ( -- DWORD )\r
     WSA_FLAG_OVERLAPPED ;\r
 \r
 : get-ConnectEx-ptr ( socket -- void* )\r
@@ -251,7 +251,7 @@ TUPLE: WSARecvFrom-args port
         tri memcpy\r
     ] bi ; inline\r
 \r
-M: winnt (receive) ( datagram -- packet addrspec )\r
+M: windows (receive) ( datagram -- packet addrspec )\r
     [\r
         <WSARecvFrom-args>\r
         [ call-WSARecvFrom ]\r
@@ -295,7 +295,7 @@ TUPLE: WSASendTo-args port
         [ lpCompletionRoutine>> ]\r
     } cleave WSASendTo socket-error* ; inline\r
 \r
-M: winnt (send) ( packet addrspec datagram -- )\r
+M: windows (send) ( packet addrspec datagram -- )\r
     [\r
         <WSASendTo-args>\r
         [ call-WSASendTo ]\r
index fb39a8e51bef955c6c4fa5666914ac3bea53f078..4ab59b7ad672a2f5ec974905b2f2b214b5fab283 100644 (file)
@@ -14,7 +14,7 @@ IN: openssl.libcrypto
 {
     { [ os openbsd? ] [ ] } ! VM is linked with it
     { [ os netbsd? ] [ ] }
-    { [ os winnt? ] [ "libcrypto" "libeay32.dll" cdecl add-library ] }
+    { [ os windows? ] [ "libcrypto" "libeay32.dll" cdecl add-library ] }
     { [ os macosx? ] [ "libcrypto" "libcrypto.dylib" cdecl add-library ] }
     { [ os unix? ] [ "libcrypto" "libcrypto.so" cdecl add-library ] }
 } cond
index 272b1bb17ebaef2819a6f255c8d03a5aecc9d174..148f12e017fe018e398d3208066c82debbcb02c2 100644 (file)
@@ -10,7 +10,7 @@ IN: openssl.libssl
 << {
     { [ os openbsd? ] [ ] } ! VM is linked with it
     { [ os netbsd? ] [ ] }
-    { [ os winnt? ] [ "libssl" "ssleay32.dll" cdecl add-library ] }
+    { [ os windows? ] [ "libssl" "ssleay32.dll" cdecl add-library ] }
     { [ os macosx? ] [ "libssl" "libssl.dylib" cdecl add-library ] }
     { [ os unix? ] [ "libssl" "libssl.so" cdecl add-library ] }
 } cond >>
index 4cb61326e26a54b5268c17b42318c1969fd75005..d34df785bd43b10e0e10c2c7c320e5c87c831795 100644 (file)
@@ -12,7 +12,7 @@ LIBRARY: pango.cairo
 
 << 
 "pango.cairo" {
-    { [ os winnt? ] [ "libpangocairo-1.0-0.dll" cdecl add-library ] }
+    { [ os windows? ] [ "libpangocairo-1.0-0.dll" cdecl add-library ] }
     { [ os macosx? ] [ drop ] }
     { [ os unix? ] [ drop ] }
 } cond 
index fb3cb3cdbfe6bac951d86669859eaf5f3860ebee..ef98c0ac70437d12d50e89d22969a2a76f56fdb9 100644 (file)
@@ -13,7 +13,7 @@ LIBRARY: pango
 
 << 
 "pango" {
-    { [ os winnt? ] [ "libpango-1.0-0.dll" cdecl add-library ] }
+    { [ os windows? ] [ "libpango-1.0-0.dll" cdecl add-library ] }
     { [ os unix? ] [ drop ] }
 } cond 
 >>
index d51223b69bf41a2f9b75ae0977f484f8eca96015..273461e74df18f17585125d5059a5a9d265d7298 100644 (file)
@@ -33,7 +33,7 @@ IN: system-info.windows
 : windows-minor ( -- n )
     os-version-struct dwMinorVersion>> ;
 
-M: winnt os-version ( -- obj )
+M: windows os-version ( -- obj )
     os-version-struct [ dwMajorVersion>> ] [ dwMinorVersion>> ] bi 2array ;
     
 : windows-build# ( -- n )
@@ -67,7 +67,7 @@ M: winnt os-version ( -- obj )
 : system-windows-directory ( -- str )
     \ GetSystemWindowsDirectory get-directory ;
 
-M: winnt cpus ( -- n )
+M: windows cpus ( -- n )
     system-info dwNumberOfProcessors>> ;
 
 : memory-status ( -- MEMORYSTATUSEX )
@@ -75,25 +75,25 @@ M: winnt cpus ( -- n )
     MEMORYSTATUSEX heap-size >>dwLength
     dup GlobalMemoryStatusEx win32-error=0/f ;
 
-M: winnt memory-load ( -- n )
+M: windows memory-load ( -- n )
     memory-status dwMemoryLoad>> ;
 
-M: winnt physical-mem ( -- n )
+M: windows physical-mem ( -- n )
     memory-status ullTotalPhys>> ;
 
-M: winnt available-mem ( -- n )
+M: windows available-mem ( -- n )
     memory-status ullAvailPhys>> ;
 
-M: winnt total-page-file ( -- n )
+M: windows total-page-file ( -- n )
     memory-status ullTotalPageFile>> ;
 
-M: winnt available-page-file ( -- n )
+M: windows available-page-file ( -- n )
     memory-status ullAvailPageFile>> ;
 
-M: winnt total-virtual-mem ( -- n )
+M: windows total-virtual-mem ( -- n )
     memory-status ullTotalVirtual>> ;
 
-M: winnt available-virtual-mem ( -- n )
+M: windows available-virtual-mem ( -- n )
     memory-status ullAvailVirtual>> ;
 
 : computer-name ( -- string )
index 94ac7e635c03265ffcff36922f07f396d325375b..d41a0bc9a3c216b1e14d4aeba60163f54f567eaf 100644 (file)
@@ -13,6 +13,6 @@ IN: tools.deploy
 
 {
     { [ os macosx? ] [ "tools.deploy.macosx" ] }
-    { [ os winnt? ] [ "tools.deploy.windows" ] }
+    { [ os windows? ] [ "tools.deploy.windows" ] }
     { [ os unix? ] [ "tools.deploy.unix" ] }
 } cond require
index 7fad2414fc43b789227c31bf56ffd7489ec91692..e3e8bee46a5f27bd942068ae7018bb4e1fd1c716 100755 (executable)
@@ -28,7 +28,7 @@ CONSTANT: app-icon-resource-id "APPICON"
     [ binary file-contents app-icon-resource-id embed-icon-resource ]
     [ 2drop ] if ;
 
-M: winnt deploy*
+M: windows deploy*
     "resource:" [
         dup deploy-config [
             deploy-name get
index 8cf885f5830db65f0c56120bdfaa5104b8f3df6a..fb11a5d038a1bc3a030c8c523d859d9f20c0e574 100644 (file)
@@ -11,7 +11,7 @@ IN: tools.disassembler.udis
 "libudis86" {
     { [ os macosx? ] [ "libudis86.0.dylib" ] }
     { [ os unix? ] [ "libudis86.so.0" ] }
-    { [ os winnt? ] [ "libudis86.dll" ] }
+    { [ os windows? ] [ "libudis86.dll" ] }
 } cond cdecl add-library
 >>
 
index e5d81b8cccd2f1614c28a616c20aa3a24790b3af..74a7be2bb1446311eac47a4aef0c9f8c14a6a1c9 100644 (file)
@@ -34,7 +34,7 @@ PRIVATE>
 <<
 {
     { [ os macosx? ] [ "images.cocoa"   require ] }
-    { [ os winnt?  ] [ "images.gdiplus" require ] }
+    { [ os windows?  ] [ "images.gdiplus" require ] }
     [ "images.gtk" require ]
 } cond
 >>
index 205e64323d82ea8779da35e4e45969b2ae7ed9a0..8e1a55995ee061d80a8c62a725bc30ab9974f154 100644 (file)
@@ -1 +1 @@
-winnt
+windows
index d2e9c5bf453ce13b3ada1e8a0299e2e6caa7f678..3646795db5a10490e1117ec6240e513272697271 100644 (file)
@@ -1 +1 @@
-winnt\r
+windows\r
index 205e64323d82ea8779da35e4e45969b2ae7ed9a0..8e1a55995ee061d80a8c62a725bc30ab9974f154 100644 (file)
@@ -1 +1 @@
-winnt
+windows
index 205e64323d82ea8779da35e4e45969b2ae7ed9a0..8e1a55995ee061d80a8c62a725bc30ab9974f154 100644 (file)
@@ -1 +1 @@
-winnt
+windows
index 205e64323d82ea8779da35e4e45969b2ae7ed9a0..8e1a55995ee061d80a8c62a725bc30ab9974f154 100644 (file)
@@ -1 +1 @@
-winnt
+windows
index 205e64323d82ea8779da35e4e45969b2ae7ed9a0..8e1a55995ee061d80a8c62a725bc30ab9974f154 100644 (file)
@@ -1 +1 @@
-winnt
+windows
index 205e64323d82ea8779da35e4e45969b2ae7ed9a0..8e1a55995ee061d80a8c62a725bc30ab9974f154 100644 (file)
@@ -1 +1 @@
-winnt
+windows
index 205e64323d82ea8779da35e4e45969b2ae7ed9a0..8e1a55995ee061d80a8c62a725bc30ab9974f154 100644 (file)
@@ -1 +1 @@
-winnt
+windows
index 205e64323d82ea8779da35e4e45969b2ae7ed9a0..8e1a55995ee061d80a8c62a725bc30ab9974f154 100644 (file)
@@ -1 +1 @@
-winnt
+windows
index 205e64323d82ea8779da35e4e45969b2ae7ed9a0..8e1a55995ee061d80a8c62a725bc30ab9974f154 100644 (file)
@@ -1 +1 @@
-winnt
+windows
index 205e64323d82ea8779da35e4e45969b2ae7ed9a0..8e1a55995ee061d80a8c62a725bc30ab9974f154 100644 (file)
@@ -1 +1 @@
-winnt
+windows
index 205e64323d82ea8779da35e4e45969b2ae7ed9a0..8e1a55995ee061d80a8c62a725bc30ab9974f154 100644 (file)
@@ -1 +1 @@
-winnt
+windows
index 205e64323d82ea8779da35e4e45969b2ae7ed9a0..8e1a55995ee061d80a8c62a725bc30ab9974f154 100644 (file)
@@ -1 +1 @@
-winnt
+windows
index 205e64323d82ea8779da35e4e45969b2ae7ed9a0..8e1a55995ee061d80a8c62a725bc30ab9974f154 100644 (file)
@@ -1 +1 @@
-winnt
+windows
index 205e64323d82ea8779da35e4e45969b2ae7ed9a0..8e1a55995ee061d80a8c62a725bc30ab9974f154 100644 (file)
@@ -1 +1 @@
-winnt
+windows
index 205e64323d82ea8779da35e4e45969b2ae7ed9a0..8e1a55995ee061d80a8c62a725bc30ab9974f154 100644 (file)
@@ -1 +1 @@
-winnt
+windows
index 205e64323d82ea8779da35e4e45969b2ae7ed9a0..8e1a55995ee061d80a8c62a725bc30ab9974f154 100644 (file)
@@ -1 +1 @@
-winnt
+windows
index 205e64323d82ea8779da35e4e45969b2ae7ed9a0..8e1a55995ee061d80a8c62a725bc30ab9974f154 100644 (file)
@@ -1 +1 @@
-winnt
+windows
index 205e64323d82ea8779da35e4e45969b2ae7ed9a0..8e1a55995ee061d80a8c62a725bc30ab9974f154 100644 (file)
@@ -1 +1 @@
-winnt
+windows
index 205e64323d82ea8779da35e4e45969b2ae7ed9a0..8e1a55995ee061d80a8c62a725bc30ab9974f154 100644 (file)
@@ -1 +1 @@
-winnt
+windows
index 205e64323d82ea8779da35e4e45969b2ae7ed9a0..8e1a55995ee061d80a8c62a725bc30ab9974f154 100644 (file)
@@ -1 +1 @@
-winnt
+windows
index 205e64323d82ea8779da35e4e45969b2ae7ed9a0..8e1a55995ee061d80a8c62a725bc30ab9974f154 100644 (file)
@@ -1 +1 @@
-winnt
+windows
index 205e64323d82ea8779da35e4e45969b2ae7ed9a0..8e1a55995ee061d80a8c62a725bc30ab9974f154 100644 (file)
@@ -1 +1 @@
-winnt
+windows
index 205e64323d82ea8779da35e4e45969b2ae7ed9a0..8e1a55995ee061d80a8c62a725bc30ab9974f154 100644 (file)
@@ -1 +1 @@
-winnt
+windows
index 205e64323d82ea8779da35e4e45969b2ae7ed9a0..8e1a55995ee061d80a8c62a725bc30ab9974f154 100644 (file)
@@ -1 +1 @@
-winnt
+windows
index 205e64323d82ea8779da35e4e45969b2ae7ed9a0..8e1a55995ee061d80a8c62a725bc30ab9974f154 100644 (file)
@@ -1 +1 @@
-winnt
+windows
index 205e64323d82ea8779da35e4e45969b2ae7ed9a0..8e1a55995ee061d80a8c62a725bc30ab9974f154 100644 (file)
@@ -1 +1 @@
-winnt
+windows
index 205e64323d82ea8779da35e4e45969b2ae7ed9a0..8e1a55995ee061d80a8c62a725bc30ab9974f154 100644 (file)
@@ -1 +1 @@
-winnt
+windows
index 205e64323d82ea8779da35e4e45969b2ae7ed9a0..8e1a55995ee061d80a8c62a725bc30ab9974f154 100644 (file)
@@ -1 +1 @@
-winnt
+windows
index 205e64323d82ea8779da35e4e45969b2ae7ed9a0..8e1a55995ee061d80a8c62a725bc30ab9974f154 100644 (file)
@@ -1 +1 @@
-winnt
+windows
index 205e64323d82ea8779da35e4e45969b2ae7ed9a0..8e1a55995ee061d80a8c62a725bc30ab9974f154 100644 (file)
@@ -1 +1 @@
-winnt
+windows
index 205e64323d82ea8779da35e4e45969b2ae7ed9a0..8e1a55995ee061d80a8c62a725bc30ab9974f154 100644 (file)
@@ -1 +1 @@
-winnt
+windows
index 205e64323d82ea8779da35e4e45969b2ae7ed9a0..8e1a55995ee061d80a8c62a725bc30ab9974f154 100644 (file)
@@ -1 +1 @@
-winnt
+windows
index 205e64323d82ea8779da35e4e45969b2ae7ed9a0..8e1a55995ee061d80a8c62a725bc30ab9974f154 100644 (file)
@@ -1 +1 @@
-winnt
+windows
index 205e64323d82ea8779da35e4e45969b2ae7ed9a0..8e1a55995ee061d80a8c62a725bc30ab9974f154 100644 (file)
@@ -1 +1 @@
-winnt
+windows
index 205e64323d82ea8779da35e4e45969b2ae7ed9a0..8e1a55995ee061d80a8c62a725bc30ab9974f154 100644 (file)
@@ -1 +1 @@
-winnt
+windows
index 205e64323d82ea8779da35e4e45969b2ae7ed9a0..8e1a55995ee061d80a8c62a725bc30ab9974f154 100644 (file)
@@ -1 +1 @@
-winnt
+windows
index 205e64323d82ea8779da35e4e45969b2ae7ed9a0..8e1a55995ee061d80a8c62a725bc30ab9974f154 100644 (file)
@@ -1 +1 @@
-winnt
+windows
index 205e64323d82ea8779da35e4e45969b2ae7ed9a0..8e1a55995ee061d80a8c62a725bc30ab9974f154 100644 (file)
@@ -1 +1 @@
-winnt
+windows
index 205e64323d82ea8779da35e4e45969b2ae7ed9a0..8e1a55995ee061d80a8c62a725bc30ab9974f154 100644 (file)
@@ -1 +1 @@
-winnt
+windows
index 205e64323d82ea8779da35e4e45969b2ae7ed9a0..8e1a55995ee061d80a8c62a725bc30ab9974f154 100644 (file)
@@ -1 +1 @@
-winnt
+windows
index 205e64323d82ea8779da35e4e45969b2ae7ed9a0..8e1a55995ee061d80a8c62a725bc30ab9974f154 100644 (file)
@@ -1 +1 @@
-winnt
+windows
index 205e64323d82ea8779da35e4e45969b2ae7ed9a0..8e1a55995ee061d80a8c62a725bc30ab9974f154 100644 (file)
@@ -1 +1 @@
-winnt
+windows
index 205e64323d82ea8779da35e4e45969b2ae7ed9a0..8e1a55995ee061d80a8c62a725bc30ab9974f154 100644 (file)
@@ -1 +1 @@
-winnt
+windows
index 205e64323d82ea8779da35e4e45969b2ae7ed9a0..8e1a55995ee061d80a8c62a725bc30ab9974f154 100644 (file)
@@ -1 +1 @@
-winnt
+windows
index 205e64323d82ea8779da35e4e45969b2ae7ed9a0..8e1a55995ee061d80a8c62a725bc30ab9974f154 100644 (file)
@@ -1 +1 @@
-winnt
+windows
index 205e64323d82ea8779da35e4e45969b2ae7ed9a0..8e1a55995ee061d80a8c62a725bc30ab9974f154 100644 (file)
@@ -1 +1 @@
-winnt
+windows
index 205e64323d82ea8779da35e4e45969b2ae7ed9a0..8e1a55995ee061d80a8c62a725bc30ab9974f154 100644 (file)
@@ -1 +1 @@
-winnt
+windows
index 205e64323d82ea8779da35e4e45969b2ae7ed9a0..8e1a55995ee061d80a8c62a725bc30ab9974f154 100644 (file)
@@ -1 +1 @@
-winnt
+windows
index 205e64323d82ea8779da35e4e45969b2ae7ed9a0..8e1a55995ee061d80a8c62a725bc30ab9974f154 100644 (file)
@@ -1 +1 @@
-winnt
+windows
index 205e64323d82ea8779da35e4e45969b2ae7ed9a0..8e1a55995ee061d80a8c62a725bc30ab9974f154 100644 (file)
@@ -1 +1 @@
-winnt
+windows
index 205e64323d82ea8779da35e4e45969b2ae7ed9a0..8e1a55995ee061d80a8c62a725bc30ab9974f154 100644 (file)
@@ -1 +1 @@
-winnt
+windows
index 205e64323d82ea8779da35e4e45969b2ae7ed9a0..8e1a55995ee061d80a8c62a725bc30ab9974f154 100644 (file)
@@ -1 +1 @@
-winnt
+windows
index 205e64323d82ea8779da35e4e45969b2ae7ed9a0..8e1a55995ee061d80a8c62a725bc30ab9974f154 100644 (file)
@@ -1 +1 @@
-winnt
+windows
index 205e64323d82ea8779da35e4e45969b2ae7ed9a0..8e1a55995ee061d80a8c62a725bc30ab9974f154 100644 (file)
@@ -1 +1 @@
-winnt
+windows
index 205e64323d82ea8779da35e4e45969b2ae7ed9a0..8e1a55995ee061d80a8c62a725bc30ab9974f154 100644 (file)
@@ -1 +1 @@
-winnt
+windows
index 205e64323d82ea8779da35e4e45969b2ae7ed9a0..8e1a55995ee061d80a8c62a725bc30ab9974f154 100644 (file)
@@ -1 +1 @@
-winnt
+windows
index cfe1d889f14fe86264bcb40b5184c783b11918be..6439dcab0c87ff518bcbc6489ca2b03f9b581dbe 100644 (file)
@@ -1 +1 @@
-Microsoft Windows CE/XP/Vista API bindings
+Microsoft Windows XP/Vista/7 API bindings
index 4a3d48654c1d6af17bd79bf908f3a1eeb70717b4..0a44ed730c0657b34ffec23a18d14f1212ebc11b 100644 (file)
@@ -17,19 +17,19 @@ call cl 2>&1 | find "x86" >nul
 if not errorlevel 1 (\r
     echo x86-32 cl.exe detected.\r
     set _target=x86-32\r
-    set _bootimage=boot.winnt-x86.32.image\r
+    set _bootimage=boot.windows-x86.32.image\r
 ) else (\r
     call cl 2>&1 | find "x64" >nul\r
     if not errorlevel 1 (\r
         echo x86-64 cl.exe detected.\r
         set _target=x86-64\r
-        set _bootimage=boot.winnt-x86.64.image\r
+        set _bootimage=boot.windows-x86.64.image\r
     ) else goto nocl\r
 )\r
 \r
 if %_bootimage_version%==clean (\r
-    set _git_branch=clean-winnt-%_target%\r
-    set _bootimage_path=clean/winnt-%_target%\r
+    set _git_branch=clean-windows-%_target%\r
+    set _bootimage_path=clean/windows-%_target%\r
 ) else (\r
     set _git_branch=master\r
     set _bootimage_path=latest\r
@@ -81,7 +81,7 @@ echo     If latest is specified, then the working copy is updated to the
 echo     upstream "master" branch and the boot image corresponding to the\r
 echo     most recent factor build is downloaded. This is the default.\r
 echo     If clean is specified, then the working copy is updated to the\r
-echo     upstream "clean-winnt-*" branch corresponding to the current\r
+echo     upstream "clean-windows-*" branch corresponding to the current\r
 echo     platform and the corresponding boot image is downloaded.\r
 goto :EOF\r
 \r
index 3ddab4ba3d5e689cba5a16adca289ae3fef784ed..3a7601370dae705381dfa6b83c0dd04d34c912bb 100755 (executable)
@@ -178,10 +178,10 @@ find_os() {
     uname_s=`uname -s`
     check_ret uname
     case $uname_s in
-        CYGWIN_NT-5.2-WOW64) OS=winnt;;
-        *CYGWIN_NT*) OS=winnt;;
-        *CYGWIN*) OS=winnt;;
-        MINGW32*) OS=winnt;;
+        CYGWIN_NT-5.2-WOW64) OS=windows;;
+        *CYGWIN_NT*) OS=windows;;
+        *CYGWIN*) OS=windows;;
+        MINGW32*) OS=windows;;
         *darwin*) OS=macosx;;
         *Darwin*) OS=macosx;;
         *linux*) OS=linux;;
@@ -251,14 +251,14 @@ find_word_size() {
 
 set_factor_binary() {
     case $OS in
-        winnt) FACTOR_BINARY=factor.com;;
+        windows) FACTOR_BINARY=factor.com;;
         *) FACTOR_BINARY=factor;;
     esac
 }
 
 set_factor_library() {
     case $OS in
-        winnt) FACTOR_LIBRARY=factor.dll;;
+        windows) FACTOR_LIBRARY=factor.dll;;
         macosx) FACTOR_LIBRARY=libfactor.dylib;;
         *) FACTOR_LIBRARY=libfactor.a;;
     esac
@@ -308,12 +308,12 @@ set_build_info() {
     elif [[ $OS == linux && $ARCH == ppc ]] ; then
         MAKE_IMAGE_TARGET=linux-ppc.32
         MAKE_TARGET=linux-ppc-32
-    elif [[ $OS == winnt && $ARCH == x86 && $WORD == 64 ]] ; then
-        MAKE_IMAGE_TARGET=winnt-x86.64
-        MAKE_TARGET=winnt-x86-64
-    elif [[ $OS == winnt && $ARCH == x86 && $WORD == 32 ]] ; then
-        MAKE_IMAGE_TARGET=winnt-x86.32
-        MAKE_TARGET=winnt-x86-32
+    elif [[ $OS == windows && $ARCH == x86 && $WORD == 64 ]] ; then
+        MAKE_IMAGE_TARGET=windows-x86.64
+        MAKE_TARGET=windows-x86-64
+    elif [[ $OS == windows && $ARCH == x86 && $WORD == 32 ]] ; then
+        MAKE_IMAGE_TARGET=windows-x86.32
+        MAKE_TARGET=windows-x86-32
     elif [[ $ARCH == x86 && $WORD == 64 ]] ; then
         MAKE_IMAGE_TARGET=unix-x86.64
         MAKE_TARGET=$OS-x86-64
@@ -337,7 +337,6 @@ parse_build_info() {
     if [[ $OS == linux && $ARCH == ppc ]] ; then WORD=32; fi
     if [[ $OS == linux && $ARCH == arm ]] ; then WORD=32; fi
     if [[ $OS == macosx && $ARCH == ppc ]] ; then WORD=32; fi
-    if [[ $OS == wince && $ARCH == arm ]] ; then WORD=32; fi
     
     $ECHO "OS=$OS"
     $ECHO "ARCH=$ARCH"
@@ -411,14 +410,14 @@ cd_factor() {
 
 set_copy() {
     case $OS in
-        winnt) COPY=cp;;
+        windows) COPY=cp;;
         *) COPY=cp;;
     esac
 }
 
 set_delete() {
     case $OS in
-        winnt) DELETE=rm;;
+        windows) DELETE=rm;;
         *) DELETE=rm;;
     esac
 }
index 44903b7a9595939a1d93bf3a3d726069ee62c457..a4c88a49b0bff29fef9de7617579538733fcf810 100644 (file)
@@ -314,7 +314,6 @@ ARTICLE: "embedding" "Embedding Factor into C applications"
 { $table
     { "OS" "Library name" "Shared?" }
     { "Windows XP/Vista" { $snippet "factor.dll" } "Yes" }
-    ! { "Windows CE" { $snippet "factor-ce.dll" } "Yes" }
     { "Mac OS X" { $snippet "libfactor.dylib" } "Yes" }
     { "Other Unix" { $snippet "libfactor.a" } "No" }
 }
index 335ab73328e69898d6a1b3c4ffd225bfdfecc2b3..9caa02bb5bc6548fa8511a45b4494d6caba54bf2 100644 (file)
@@ -15,6 +15,6 @@ HELP: string>symbol
 { $values { "str/seq" { $or string sequence } } { "alien" alien } }
 { $description "Converts the string to a format which is a valid symbol name for the Factor VM's compiled code linker. By performing this conversion ahead of time, the image loader can run without allocating memory."
 $nl
-"On Windows CE, symbols are represented as UCS2 strings, and on all other platforms they are ASCII strings." } ;
+"On all platforms, symbols are ASCII strings." } ;
 
 ABOUT: "c-strings"
index bf2ec4defc0caf7d378902466ca087d534fc7a20..5d1a166022611b9abaf9bf1d9e3526f4b6b12480 100755 (executable)
@@ -18,9 +18,9 @@ H{ } clone sub-primitives set
 "vocab:bootstrap/syntax.factor" parse-file
 
 architecture get {
-    { "winnt-x86.32" "x86/32/winnt" }
+    { "windows-x86.32" "x86/32/windows" }
+    { "windows-x86.64" "x86/64/windows" }
     { "unix-x86.32"  "x86/32/unix"  }
-    { "winnt-x86.64" "x86/64/winnt" }
     { "unix-x86.64"  "x86/64/unix"  }
     { "linux-ppc.32" "ppc/32/linux" }
     { "linux-ppc.64" "ppc/64/linux" }
index b14cb90a6807202f1efc7bac19c3d3d53ae94196..5668acd66a37cfa17774bce741452e9659a4dd48 100644 (file)
@@ -43,8 +43,7 @@ ARTICLE: "os" "Operating system detection"
     openbsd
     netbsd
     solaris
-    wince
-    winnt
+    windows
 }
 "Operating system families:"
 { $subsections
index 7f0872b4642826bc518554d80043a67e2d3dc442..37e1470fa77b7b739660cf899cab7f71ccd71832 100644 (file)
@@ -11,9 +11,7 @@ UNION: ppc ppc.32 ppc.64 ;
 
 : cpu ( -- class ) \ cpu get-global ; foldable
 
-SINGLETONS: winnt wince ;
-
-UNION: windows winnt wince ;
+SINGLETON: windows
 
 SINGLETONS: freebsd netbsd openbsd solaris macosx linux ;
 
@@ -40,8 +38,7 @@ UNION: unix bsd solaris linux haiku ;
 
 : string>os ( str -- class )
     H{
-        { "winnt" winnt }
-        { "wince" wince }
+        { "windows" windows }
         { "freebsd" freebsd }
         { "netbsd" netbsd }
         { "openbsd" openbsd }
index 59c92bdba43e5dccefdb51be03f6e6a5b72fa2cb..dc1ebe0b36bb07fed3534ad90eac78cd341ae12e 100644 (file)
@@ -13,7 +13,7 @@ LIBRARY: clutter.cally
 
 <<
 "clutter.cally" {
-    { [ os winnt? ] [ drop ] }
+    { [ os windows? ] [ drop ] }
     { [ os macosx? ] [ drop ] }
     { [ os unix? ] [ "libclutter-glx-1.0.so" cdecl add-library ] }
 } cond
index b4752d402a83f9a2152f00c078b2e1f83b0547d6..d395cc4d94ef8df05fd18167262aee4e9bfd05d9 100644 (file)
@@ -12,7 +12,7 @@ LIBRARY: clutter.cogl
 
 <<
 "clutter.cogl" {
-    { [ os winnt? ] [ drop ] }
+    { [ os windows? ] [ drop ] }
     { [ os macosx? ] [ drop ] }
     { [ os unix? ] [ "libclutter-glx-1.0.so" cdecl add-library ] }
 } cond
index 06ff981f65f2a3ac8dd2e139fc9b38f1242baa4b..1499e68b8e843ed6fb0628312a4bf742695e2f12 100644 (file)
@@ -15,7 +15,7 @@ LIBRARY: clutter
 
 <<
 "clutter" {
-    { [ os winnt? ] [ drop ] }
+    { [ os windows? ] [ drop ] }
     { [ os macosx? ] [ drop ] }
     { [ os unix? ] [ "libclutter-glx-1.0.so" cdecl add-library ] }
 } cond
index 26b3820b27e6620c4ed26edad5b6938df3e5795f..73714058039e29ef70bb61f106bdf88d1e7d820b 100644 (file)
@@ -13,7 +13,7 @@ LIBRARY: clutter.gtk
 
 <<
 "clutter.gtk" {
-    { [ os winnt? ] [ drop ] }
+    { [ os windows? ] [ drop ] }
     { [ os macosx? ] [ drop ] }
     { [ os unix? ] [ "libclutter-gtk-1.0.so" cdecl add-library ] }
 } cond
index ea562c1f3dcbfe87a588b6f3dbea92845e6b50e0..4d228027b6a939e200cfa86f7a40704048140273 100644 (file)
@@ -13,7 +13,7 @@ LIBRARY: clutter.json
 
 <<
 "clutter.json" {
-    { [ os winnt? ] [ drop ] }
+    { [ os windows? ] [ drop ] }
     { [ os macosx? ] [ drop ] }
     { [ os unix? ] [ "libclutter-glx-1.0.so" cdecl add-library ] }
 } cond
index 85bc15d34b56be5216d443ce93c55808b501425a..9937c9797a4758658b001d9f796113f10d410034 100644 (file)
@@ -5,7 +5,7 @@ alien.syntax classes.struct combinators kernel math system unix.types ;
 IN: curses.ffi
 
 << "curses" {
-    { [ os winnt? ]  [ "libcurses.dll" ] }
+    { [ os windows? ]  [ "libcurses.dll" ] }
     { [ os macosx? ] [ "libcurses.dylib" ] }
     { [ os unix?  ]  [ "libncursesw.so" ] }
 } cond cdecl add-library >>
index 300740c4d94393b84753254d842b1fd8f4210561..0283431d5c6e81046241bcbefa0d2b3e9a7ab2a9 100755 (executable)
@@ -7,7 +7,7 @@ IN: gdbm.ffi
 << "libgdbm" {
     { [ os macosx? ] [ "libgdbm.dylib" ] }
     { [ os unix?   ] [ "libgdbm.so"    ] }
-    { [ os winnt?  ] [ "gdbm3.dll"     ] }
+    { [ os windows?  ] [ "gdbm3.dll"     ] }
 } cond cdecl add-library >>
 
 LIBRARY: libgdbm
index d5b88c244b953bbaba8dfdf5190b0d882f9576c0..5eac3bd45d64e1e551f3e9be7b868f9967830583 100644 (file)
@@ -379,7 +379,7 @@ CONSTANT: google-slides
     { $slide "Example: environment variables"
         { $vocab-link "environment" }
         "Hooks are generic words which dispatch on dynamically-scoped variables"
-        { "Implemented in an OS-specific way: " { $vocab-link "environment.unix" } ", " { $vocab-link "environment.winnt" } }
+        { "Implemented in an OS-specific way: " { $vocab-link "environment.unix" } ", " { $vocab-link "environment.windows" } }
     }
     { $slide "Example: environment variables"
         "Implementations use C FFI"
index f6d84aef42993458b675bd7930f14edf73c50397..0447ff1b8bdfbf7bc520be2d858cf2a575b36134 100644 (file)
@@ -12,14 +12,14 @@ IN: graphviz.ffi
 "libgraph" {
     { [ os macosx? ] [ "libgraph.dylib" ] }
     { [ os unix?   ] [ "libgraph.so"    ] }
-    { [ os winnt?  ] [ "graph.dll"      ] }
+    { [ os windows?  ] [ "graph.dll"      ] }
 } cond cdecl add-library
 
 "libgvc"
 {
     { [ os macosx? ] [ "libgvc.dylib" ] }
     { [ os unix?   ] [ "libgvc.so"    ] }
-    { [ os winnt?  ] [ "gvc.dll"      ] }
+    { [ os windows?  ] [ "gvc.dll"      ] }
 } cond cdecl add-library
 >>
 
index 227c9c98e11ec0720839c6a04af1d490d9247925..3f2f156e9c0fbeda419215d43bed4357c4c911ba 100644 (file)
@@ -12,7 +12,7 @@ LIBRARY: gstreamer.base
 
 <<
 "gstreamer.base" {
-    { [ os winnt? ] [ drop ] }
+    { [ os windows? ] [ drop ] }
     { [ os macosx? ] [ drop ] }
     { [ os unix? ] [ "libgstbase-0.10.so" cdecl add-library ] }
 } cond
index b0eb87be0b2c1a905d7686df77050f004f07a632..4f38260190b6d9f52e6a7cf5f689c6cff32d692b 100644 (file)
@@ -12,7 +12,7 @@ LIBRARY: gstreamer.controller
 
 <<
 "gstreamer.controller" {
-    { [ os winnt? ] [ drop ] }
+    { [ os windows? ] [ drop ] }
     { [ os macosx? ] [ drop ] }
     { [ os unix? ] [ "libgstcontroller-0.10.so" cdecl add-library ] }
 } cond
index c6fd4c6c9c75819652601a8a37fa3c5f8f1a1817..cdfd5d4329d012204d65dc721ba0011becb33723 100644 (file)
@@ -14,7 +14,7 @@ LIBRARY: gstreamer
 
 <<
 "gstreamer" {
-    { [ os winnt? ] [ drop ] }
+    { [ os windows? ] [ drop ] }
     { [ os macosx? ] [ drop ] }
     { [ os unix? ] [ "libgstreamer-0.10.so" cdecl add-library ] }
 } cond
index 859c6c2656ec1ca9f4e04f173ea4a214bff3f760..21b1d68e339464f0dca41589d267c66efab813d1 100644 (file)
@@ -12,7 +12,7 @@ LIBRARY: gstreamer.net
 
 <<
 "gstreamer.net" {
-    { [ os winnt? ] [ drop ] }
+    { [ os windows? ] [ drop ] }
     { [ os macosx? ] [ drop ] }
     { [ os unix? ] [ "libgstnet-0.10.so" cdecl add-library ] }
 } cond
index 2539fc9e2a5fb98239284c51a4e2edf029c63f36..8049adb4fe9a63b906f580b8972e92fb71ea58ca 100644 (file)
@@ -10,6 +10,6 @@ HOOK: send-to-trash os ( path -- )
 {
     { [ os macosx? ] [ "io.files.trash.macosx"  ] }
     { [ os unix?   ] [ "io.files.trash.unix"    ] }
-    { [ os winnt?  ] [ "io.files.trash.windows" ] }
+    { [ os windows?  ] [ "io.files.trash.windows" ] }
 } cond require
 
index 02847e2fa8a0c77f6dac7eb06a4e09072c3a12a6..377a0d400692c009825f4bb3b27b27da2c71b018 100644 (file)
@@ -10,7 +10,7 @@ IN: javascriptcore.ffi
     { [ os macosx? ] [
         "/System/Library/Frameworks/JavaScriptCore.framework/Versions/Current/JavaScriptCore" cdecl add-library
     ] }
-    ! { [ os winnt? ]  [ "javascriptcore.dll" ] }
+    ! { [ os windows? ]  [ "javascriptcore.dll" ] }
     ! { [ os unix? ]  [ "libsqlite3.so" ] }
     [ drop ]
 } cond
index 34f9c10103b990f91fbb3a601516c0810994894e..d12bd0ec0d1ed12cda3795363ac03659ccbd995b 100644 (file)
@@ -4,7 +4,7 @@ sequences system ;
 
 [ { "nmake" "/f" "nmakefile" "x86-32" } ] [
     [
-        winnt target-os set
+        windows target-os set
         x86.32 target-cpu set
         make-cmd
     ] with-scope
@@ -18,9 +18,9 @@ sequences system ;
     ] with-scope
 ] unit-test
 
-[ { "./factor.com" "-i=boot.winnt-x86.32.image" "-no-user-init" } ] [
+[ { "./factor.com" "-i=boot.windows-x86.32.image" "-no-user-init" } ] [
     [
-        winnt target-os set
+        windows target-os set
         x86.32 target-cpu set
         boot-cmd
     ] with-scope
index 4191d2e25a0094b768b4ef2b2c19466dec15c5e0..2da6194657ff73b4681739173ed10334c81222b8 100644 (file)
@@ -18,7 +18,7 @@ IN: mason.child
 
 : make-cmd ( -- args )
     {
-        { [ target-os get winnt = ] [ nmake-cmd ] }
+        { [ target-os get windows = ] [ nmake-cmd ] }
         [ gnu-make-cmd ]
     } cond ;
 
@@ -32,7 +32,7 @@ IN: mason.child
     ] with-directory ;
 
 : factor-vm ( -- string )
-    target-os get winnt = "./factor.com" "./factor" ? ;
+    target-os get windows = "./factor.com" "./factor" ? ;
 
 : boot-cmd ( -- cmd )
     [
index ceec84e475d0580b4232d44d600d4ed5ebb276a8..fb269f9c9c3e2f873d99a8b9aa87e99c6849f41d 100644 (file)
@@ -11,7 +11,7 @@ IN: mason.release.archive
 
 : extension ( os -- extension )
     {
-        { "winnt" [ ".zip" ] }
+        { "windows" [ ".zip" ] }
         { "macosx" [ ".dmg" ] }
         [ drop ".tar.gz" ]
     } case ;
@@ -35,7 +35,7 @@ IN: mason.release.archive
 
 : make-archive ( archive-name -- )
     target-os get {
-        { "winnt" [ make-windows-archive ] }
+        { "windows" [ make-windows-archive ] }
         { "macosx" [ make-macosx-archive ] }
         [ drop make-unix-archive ]
     } case ;
index 51e462147618b2d415dca1f0bb1b418e246a8284..bcc62b0e7097e74da1d67c84eb0a83188d897f33 100644 (file)
@@ -15,7 +15,7 @@ IN: ogg
 
 <<
 "ogg" {
-    { [ os winnt? ]  [ "ogg.dll" ] }
+    { [ os windows? ]  [ "ogg.dll" ] }
     { [ os macosx? ] [ "libogg.0.dylib" ] }
     { [ os unix? ]   [ "libogg.so" ] }
 } cond cdecl add-library
index 82f4a7db5166e12b49b2991d8d7ebfbe333d2ee5..5e1155c19a4702292dd285fe9cbb4715b984e05d 100644 (file)
@@ -16,13 +16,13 @@ IN: ogg.theora
 
 <<
 "theoradec" {
-    { [ os winnt? ]  [ "theoradec.dll" ] }
+    { [ os windows? ]  [ "theoradec.dll" ] }
     { [ os macosx? ] [ "libtheoradec.0.dylib" ] }
     { [ os unix? ]   [ "libtheoradec.so" ] }
 } cond cdecl add-library
 
 "theoraenc" {
-    { [ os winnt? ]  [ "theoraenc.dll" ] }
+    { [ os windows? ]  [ "theoraenc.dll" ] }
     { [ os macosx? ] [ "libtheoraenc.0.dylib" ] }
     { [ os unix? ]   [ "libtheoraenc.so" ] }
 } cond cdecl add-library
index 3cefbeebec517a7f7e4b25b607ae1822620b5c5c..150bfc971958429eeb6e30538264608891f00e4a 100644 (file)
@@ -16,7 +16,7 @@ IN: ogg.vorbis
 
 <<
 "vorbis" {
-    { [ os winnt? ]  [ "vorbis.dll" ] }
+    { [ os windows? ]  [ "vorbis.dll" ] }
     { [ os macosx? ] [ "libvorbis.0.dylib" ] }
     { [ os unix? ]   [ "libvorbis.so" ] }
 } cond cdecl add-library 
index dfa2cf9b4bbff598d6853abbac7cabfa963b7660..10add7727f21d74515393745dfa1136f14f65971 100644 (file)
@@ -15,7 +15,7 @@ IN: webapps.mason.grids
 
 CONSTANT: oses
 {
-    { "winnt" "Windows" }
+    { "windows" "Windows" }
     { "macosx" "Mac OS X" }
     { "linux" "Linux" }
     { "freebsd" "FreeBSD" }
index bffc78970a3864023c5149e2d2edbf9b474157d6..47e2e683767c50e801f152965454116a54943370 100644 (file)
@@ -24,7 +24,7 @@ IN: webapps.mason.utils
 : requirements ( builder -- xml )
     [
         os>> {
-            { "winnt" "Windows XP, Windows Vista or Windows 7" }
+            { "windows" "Windows XP, Windows Vista or Windows 7" }
             { "macosx" "Mac OS X 10.5 Leopard" }
             { "linux" "Ubuntu Linux 9.04 (other distributions may also work)" }
             { "freebsd" "FreeBSD 7.1" }
index 61cf9f6c4e68aef3fe1c5bc7767068c897f77f99..61d38b5900132b3e677400feddc67591078b8f32 100644 (file)
@@ -5,7 +5,7 @@ namespace factor
 
 void factor_vm::c_to_factor_toplevel(cell quot)
 {
-       /* 32-bit Windows SEH is set up in basis/cpu/x86/32/winnt/bootstrap.factor */
+       /* 32-bit Windows SEH is set up in basis/cpu/x86/32/windows/bootstrap.factor */
        c_to_factor(quot);
 }
 
index 70e05d00def6583a774daca3db2d8452fb39fa6d..aca5eab9a8dc55dfb79bb32fb370899adc7c803a 100755 (executable)
@@ -49,7 +49,7 @@ typedef HANDLE THREADHANDLE;
        #define SNPRINTF snprintf
 #endif
 
-#define FACTOR_OS_STRING "winnt"
+#define FACTOR_OS_STRING "windows"
 
 #define FACTOR_DLL NULL