]> gitweb.factorcode.org Git - factor.git/commitdiff
moved os-windows-nt functions into the vm
authorPhil Dawes <phil@phildawes.net>
Tue, 18 Aug 2009 19:22:11 +0000 (20:22 +0100)
committerPhil Dawes <phil@phildawes.net>
Wed, 16 Sep 2009 07:16:30 +0000 (08:16 +0100)
vm/os-windows-nt.cpp
vm/os-windows-nt.hpp
vm/vm.hpp

index 8a8b2132ad3828f1e7e0856cf7a0fdab0722fbdd..26781ee4f9ae4ea03e994729546950777369025f 100755 (executable)
@@ -11,11 +11,6 @@ s64 factorvm::current_micros()
                - EPOCH_OFFSET) / 10;
 }
 
-s64 current_micros()
-{
-       return vm->current_micros();
-}
-
 FACTOR_STDCALL LONG exception_handler(PEXCEPTION_POINTERS pe)
 {
        PEXCEPTION_RECORD e = (PEXCEPTION_RECORD)pe->ExceptionRecord;
@@ -71,17 +66,8 @@ void factorvm::c_to_factor_toplevel(cell quot)
        RemoveVectoredExceptionHandler((void *)exception_handler);
 }
 
-void c_to_factor_toplevel(cell quot)
-{
-       return vm->c_to_factor_toplevel(quot);
-}
-
 void factorvm::open_console()
 {
 }
 
-void open_console()
-{
-}
-
 }
index 088103bb5b0a272726d7f2666cc85815d746ed79..c083844ae073909675944c3d30322ca94b4c5723 100755 (executable)
@@ -19,9 +19,7 @@ typedef char symbol_char;
 
 #define FACTOR_STDCALL __attribute__((stdcall))
 
-void c_to_factor_toplevel(cell quot);
 FACTOR_STDCALL LONG exception_handler(PEXCEPTION_POINTERS pe);
-void open_console();
 
 // SSE traps raise these exception codes, which are defined in internal NT headers
 // but not winbase.h
index fa4c365da62aaba19151ee28751541e84f2c9f41..9af0c5c8f986993278a9a7e74cc3de8e77f446c3 100644 (file)
--- a/vm/vm.hpp
+++ b/vm/vm.hpp
@@ -664,18 +664,12 @@ struct factorvm {
        void windows_image_path(vm_char *full_path, vm_char *temp_path, unsigned int length);
        bool windows_stat(vm_char *path);
 
-    #if defined(WINCE)
-    #else   /* WINNT */
+   #if defined(WINNT)
        s64 current_micros();
        void c_to_factor_toplevel(cell quot);
        void open_console();
        // next method here:
-    #endif
-
-       
-    #ifdef FACTOR_X86  
-    #endif
-
+   #endif
   #endif
 
 };