Fix the io and ui backends so it bootstraps and the ui starts
parent
0183a40717
commit
02a9e1eb14
|
@ -5,6 +5,9 @@ windows.errors windows.kernel32 prettyprint strings splitting
|
|||
io.files windows.winsock ;
|
||||
IN: io.windows.nt.backend
|
||||
|
||||
: .. global [ . flush ] bind ;
|
||||
: .S global [ .s flush ] bind ;
|
||||
|
||||
: unicode-prefix ( -- seq )
|
||||
"\\\\?\\" ; inline
|
||||
|
||||
|
@ -92,7 +95,7 @@ C: <GetQueuedCompletionStatusParams> GetQueuedCompletionStatusParams
|
|||
|
||||
: lookup-callback ( GetQueuedCompletion-args -- callback )
|
||||
GetQueuedCompletionStatusParams-lpOverlapped* *void*
|
||||
\ io-hash get-global delete-at drop ;
|
||||
\ io-hash get-global delete-at* drop ;
|
||||
|
||||
: wait-for-io ( timeout -- continuation/f )
|
||||
wait-for-overlapped
|
||||
|
|
|
@ -456,7 +456,7 @@ M: windows-ui-backend ui
|
|||
init-win32-ui
|
||||
start-ui
|
||||
event-loop
|
||||
] [ cleanup-win32-ui ] cleanup
|
||||
] [ cleanup-win32-ui ] [ ] cleanup
|
||||
] ui-running ;
|
||||
|
||||
T{ windows-ui-backend } ui-backend set-global
|
||||
|
|
Loading…
Reference in New Issue