Fix load errors
parent
9b9b2747a3
commit
ebb0093ab1
|
|
@ -98,7 +98,7 @@ DEFER: read-ber
|
|||
|
||||
SYMBOL: end
|
||||
|
||||
: (read-array) ( stream -- )
|
||||
: (read-array) ( -- )
|
||||
elements get element-id [
|
||||
elements get element-syntax read-ber
|
||||
dup end = [ drop ] [ , (read-array) ] if
|
||||
|
|
@ -106,7 +106,7 @@ SYMBOL: end
|
|||
|
||||
: read-array ( -- array ) [ (read-array) ] { } make ;
|
||||
|
||||
: set-case ( -- )
|
||||
: set-case ( -- object )
|
||||
elements get element-newobj
|
||||
elements get element-objtype {
|
||||
{ "boolean" [ "\0" = not ] }
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
USING: io.sockets io kernel math threads io.encodings.ascii
|
||||
debugger tools.time prettyprint concurrency.count-downs
|
||||
namespaces arrays continuations ;
|
||||
io.streams.duplex debugger tools.time prettyprint
|
||||
concurrency.count-downs namespaces arrays continuations ;
|
||||
IN: benchmark.sockets
|
||||
|
||||
SYMBOL: counter
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
! Copyright (C) 2007, 2008 Slava Pestov.
|
||||
! See http://factorcode.org/license.txt for BSD license.
|
||||
USING: namespaces kernel assocs io.files combinators
|
||||
arrays io.launcher io http.server.static http.server
|
||||
USING: namespaces kernel assocs io.files io.streams.duplex
|
||||
combinators arrays io.launcher io http.server.static http.server
|
||||
http accessors sequences strings math.parser fry ;
|
||||
IN: http.server.cgi
|
||||
|
||||
|
|
|
|||
|
|
@ -159,7 +159,7 @@ MACRO: (unpack) ( str -- quot )
|
|||
] [ ] make
|
||||
1quotation [ { } make ] append
|
||||
1quotation %
|
||||
\ with-string-input ,
|
||||
\ with-string-reader ,
|
||||
] [ ] make ;
|
||||
|
||||
: unpack-native ( seq str -- seq )
|
||||
|
|
|
|||
|
|
@ -1,7 +1,8 @@
|
|||
! Copyright (C) 2007 Elie CHAFTARI
|
||||
! See http://factorcode.org/license.txt for BSD license.
|
||||
USING: combinators kernel prettyprint io io.timeouts io.server
|
||||
sequences namespaces io.sockets continuations calendar io.encodings.ascii ;
|
||||
sequences namespaces io.sockets continuations calendar
|
||||
io.encodings.ascii io.streams.duplex ;
|
||||
IN: smtp.server
|
||||
|
||||
! Mock SMTP server for testing purposes.
|
||||
|
|
@ -65,7 +66,7 @@ SYMBOL: data-mode
|
|||
"Starting SMTP server on port " write dup . flush
|
||||
"127.0.0.1" swap <inet4> ascii <server> [
|
||||
accept drop [
|
||||
default-timeout
|
||||
1 minutes timeouts
|
||||
"220 hello\r\n" write flush
|
||||
process
|
||||
global [ flush ] bind
|
||||
|
|
|
|||
Loading…
Reference in New Issue