Bootstrap fix and little cleanup

darcs
slava 2006-02-02 20:51:12 +00:00
parent ebcac67995
commit 130a5a5962
3 changed files with 3 additions and 4 deletions

View File

@ -30,3 +30,4 @@
- 0.0/0.0 next-power-of-2 never terminates -- comparison always returns false
- 0.0/0.0 >fixnum . -> 0 0.0/0.0 >bignum . -> 0
- httpd crash

View File

@ -1,7 +1,7 @@
! Copyright (C) 2005, 2006 Slava Pestov.
! See http://factor.sf.net/license.txt for BSD license.
IN: sequences
USING: generic kernel lists strings ;
USING: generic kernel lists strings sequences-internals ;
G: tree-each* ( obj quot -- | quot: elt -- )
[ over ] standard-combination ; inline

View File

@ -26,9 +26,7 @@ threads unix-internals ;
: with-socket-fd ( quot -- fd | quot: socket -- n )
socket-fd [ swap call ] keep swap 0 < [
err_no EINPROGRESS = [
dup close -1 io-error
] unless
err_no EINPROGRESS = [ dup close (io-error) ] unless
] when ; inline
: client-socket ( host port -- fd )