Minor win32 fixes

slava 2006-05-25 20:06:25 +00:00
parent 9cca216b0f
commit 2235fbf8c0
4 changed files with 6 additions and 5 deletions

View File

@ -74,6 +74,8 @@
- horizontal scrolling
- window zooming doesn't work
- polish OS X menu bar code
- dock menu
- services do not launch if not running
- when scrolling wheel, or moving mouse out of window, rollover is not
updated
- focus is not top-level window aware

View File

@ -44,6 +44,5 @@ IN: io-internals
dup -1 = [ drop INFINITE ] when cancel-timedout wait-for-io
swap [ continue-with ] [ drop ] if* ;
: init-io ( -- )
win32-init-stdio ;
: init-io ( -- ) win32-init-io ;

View File

@ -7,8 +7,7 @@ threads ;
SYMBOL: log-stream
: log-message ( msg -- )
log-stream get [ stdio get ] unless*
[ stream-print ] keep stream-flush ;
log-stream get [ stream-print ] keep stream-flush ;
: log-error ( error -- ) "Error: " swap append log-message ;

View File

@ -117,7 +117,8 @@ C: io-callback ( -- callback )
(wait-for-io) overlapped>callback swap *int
rot [ queue-error ] unless ;
: win32-init-stdio ( -- )
: win32-init-io ( -- )
stdio off
INVALID_HANDLE_VALUE f f 1 CreateIoCompletionPort
completion-port set
<io-queue> io-queue set ;