From bf238283daf7b2bee71e554100565e7fa90a6506 Mon Sep 17 00:00:00 2001 From: Eduardo Cavazos Date: Tue, 24 Jun 2008 13:47:54 -0500 Subject: [PATCH] Update code for combinators.short-circuit --- extra/boids/boids.factor | 2 +- extra/boids/ui/ui.factor | 2 +- extra/dns/forwarding/forwarding.factor | 2 +- extra/dns/server/server.factor | 2 +- extra/ftp/server/server.factor | 2 +- extra/inverse/inverse.factor | 2 +- extra/io/servers/connection/connection.factor | 2 +- extra/lcs/lcs.factor | 3 ++- extra/lisp/lisp.factor | 2 +- extra/lisp/parser/parser.factor | 2 +- extra/lsys/strings/interpret/interpret.factor | 2 +- extra/lsys/strings/rewrite/rewrite.factor | 2 +- extra/lsys/strings/strings.factor | 2 +- extra/lsys/tortoise/graphics/graphics.factor | 2 +- extra/lsys/ui/ui.factor | 3 ++- extra/math/text/english/english.factor | 3 ++- extra/peg/ebnf/ebnf.factor | 3 ++- extra/project-euler/014/014.factor | 2 +- extra/project-euler/017/017.factor | 2 +- extra/project-euler/021/021.factor | 3 ++- extra/project-euler/036/036.factor | 2 +- extra/project-euler/043/043.factor | 3 ++- extra/project-euler/052/052.factor | 3 ++- extra/project-euler/project-euler.factor | 2 +- extra/regexp/regexp.factor | 3 ++- extra/shell/shell.factor | 3 ++- extra/xmode/marker/marker.factor | 3 ++- 27 files changed, 37 insertions(+), 27 deletions(-) diff --git a/extra/boids/boids.factor b/extra/boids/boids.factor index 4151b44cfb..e6c97b90dd 100644 --- a/extra/boids/boids.factor +++ b/extra/boids/boids.factor @@ -1,5 +1,5 @@ -USING: kernel namespaces +USING: combinators.short-circuit kernel namespaces math math.constants math.functions diff --git a/extra/boids/ui/ui.factor b/extra/boids/ui/ui.factor index a1feac381d..3b28e79bcf 100755 --- a/extra/boids/ui/ui.factor +++ b/extra/boids/ui/ui.factor @@ -1,5 +1,5 @@ -USING: kernel namespaces +USING: combinators.short-circuit kernel namespaces math math.functions math.vectors diff --git a/extra/dns/forwarding/forwarding.factor b/extra/dns/forwarding/forwarding.factor index 039b969ddd..87f9821153 100644 --- a/extra/dns/forwarding/forwarding.factor +++ b/extra/dns/forwarding/forwarding.factor @@ -1,5 +1,5 @@ -USING: kernel +USING: combinators.short-circuit kernel combinators vectors sequences diff --git a/extra/dns/server/server.factor b/extra/dns/server/server.factor index 04b3ecfbee..16677d8761 100644 --- a/extra/dns/server/server.factor +++ b/extra/dns/server/server.factor @@ -1,7 +1,7 @@ USING: kernel combinators sequences sets math threads namespaces continuations debugger io io.sockets unicode.case accessors destructors - combinators.cleave combinators.lib + combinators.cleave combinators.lib combinators.short-circuit newfx fry dns dns.util dns.misc ; diff --git a/extra/ftp/server/server.factor b/extra/ftp/server/server.factor index c71eadb72f..c5a5449b25 100644 --- a/extra/ftp/server/server.factor +++ b/extra/ftp/server/server.factor @@ -1,6 +1,6 @@ ! Copyright (C) 2008 Doug Coleman. ! See http://factorcode.org/license.txt for BSD license. -USING: accessors combinators io io.encodings.8-bit +USING: combinators.short-circuit accessors combinators io io.encodings.8-bit io.encodings io.encodings.binary io.encodings.utf8 io.files io.sockets kernel math.parser namespaces sequences ftp io.unix.launcher.parser unicode.case splitting assocs diff --git a/extra/inverse/inverse.factor b/extra/inverse/inverse.factor index ef1f575972..43507046d6 100755 --- a/extra/inverse/inverse.factor +++ b/extra/inverse/inverse.factor @@ -2,7 +2,7 @@ USING: kernel words inspector slots quotations sequences assocs math arrays inference effects shuffle continuations debugger classes.tuple namespaces vectors bit-arrays byte-arrays strings sbufs math.functions macros sequences.private combinators -mirrors combinators.lib ; +mirrors combinators.lib combinators.short-circuit ; IN: inverse TUPLE: fail ; diff --git a/extra/io/servers/connection/connection.factor b/extra/io/servers/connection/connection.factor index b062322142..0ff83261fb 100755 --- a/extra/io/servers/connection/connection.factor +++ b/extra/io/servers/connection/connection.factor @@ -6,7 +6,7 @@ quotations combinators combinators.lib logging calendar assocs fry accessors arrays io io.sockets io.encodings.ascii io.sockets.secure io.files io.streams.duplex io.timeouts io.encodings threads concurrency.combinators -concurrency.semaphores ; +concurrency.semaphores combinators.short-circuit ; IN: io.servers.connection TUPLE: threaded-server diff --git a/extra/lcs/lcs.factor b/extra/lcs/lcs.factor index 4b0fb53f5e..2fa0b6cc71 100755 --- a/extra/lcs/lcs.factor +++ b/extra/lcs/lcs.factor @@ -1,5 +1,6 @@ USING: sequences kernel math locals math.order math.ranges -accessors combinators.lib arrays namespaces combinators ; +accessors combinators.lib arrays namespaces combinators +combinators.short-circuit ; IN: lcs