Updating code to use require-when rather than vocab [ require ] when
parent
9e602d213f
commit
eb060443db
|
@ -20,11 +20,11 @@ IN: bootstrap.compiler
|
|||
"alien.remote-control" require
|
||||
] unless
|
||||
|
||||
"prettyprint" vocab [
|
||||
"stack-checker.errors.prettyprint" require
|
||||
"alien.prettyprint" require
|
||||
"alien.debugger" require
|
||||
] when
|
||||
{
|
||||
"stack-checker.errors.prettyprint"
|
||||
"alien.prettyprint"
|
||||
"alien.debugger"
|
||||
} [ "prettyprint" swap require-when ] each
|
||||
|
||||
"cpu." cpu name>> append require
|
||||
|
||||
|
|
|
@ -1,11 +1,9 @@
|
|||
! Copyright (C) 2008, 2009 Slava Pestov.
|
||||
! See http://factorcode.org/license.txt for BSD license.
|
||||
USING: vocabs vocabs.loader kernel io.thread threads
|
||||
USING: vocabs.loader kernel io.thread threads
|
||||
compiler.utilities namespaces ;
|
||||
IN: bootstrap.threads
|
||||
|
||||
"debugger" vocab [
|
||||
"debugger.threads" require
|
||||
] when
|
||||
"debugger" "debugger.threads" require-when
|
||||
|
||||
[ yield ] yield-hook set-global
|
||||
[ yield ] yield-hook set-global
|
||||
|
|
|
@ -404,4 +404,4 @@ FUNCTOR-SYNTAX: STRUCT:
|
|||
|
||||
USING: vocabs vocabs.loader ;
|
||||
|
||||
"prettyprint" vocab [ "classes.struct.prettyprint" require ] when
|
||||
"prettyprint" "classes.struct.prettyprint" require-when
|
||||
|
|
|
@ -196,4 +196,4 @@ ERROR: download-failed response ;
|
|||
|
||||
USING: vocabs vocabs.loader ;
|
||||
|
||||
"debugger" vocab [ "http.client.debugger" require ] when
|
||||
"debugger" "http.client.debugger" require-when
|
||||
|
|
|
@ -26,7 +26,5 @@ SYNTAX: MEMO:: (::) define-memoized ;
|
|||
"locals.fry"
|
||||
} [ require ] each
|
||||
|
||||
"prettyprint" vocab [
|
||||
"locals.definitions" require
|
||||
"locals.prettyprint" require
|
||||
] when
|
||||
"prettyprint" "locals.definitions" require-when
|
||||
"prettyprint" "locals.prettyprint" require-when
|
||||
|
|
|
@ -62,6 +62,6 @@ M: rect contains-point?
|
|||
[ [ dim>> ] dip (>>dim) ]
|
||||
2bi ; inline
|
||||
|
||||
USING: vocabs vocabs.loader ;
|
||||
USE: vocabs.loader
|
||||
|
||||
"prettyprint" vocab [ "math.rectangles.prettyprint" require ] when
|
||||
"prettyprint" "math.rectangles.prettyprint" require-when
|
||||
|
|
|
@ -630,6 +630,4 @@ SYNTAX: PEG:
|
|||
|
||||
USING: vocabs vocabs.loader ;
|
||||
|
||||
"debugger" vocab [
|
||||
"peg.debugger" require
|
||||
] when
|
||||
"debugger" "peg.debugger" require-when
|
||||
|
|
|
@ -218,6 +218,4 @@ SYNTAX: R| CHAR: | parsing-regexp ;
|
|||
|
||||
USING: vocabs vocabs.loader ;
|
||||
|
||||
"prettyprint" vocab [
|
||||
"regexp.prettyprint" require
|
||||
] when
|
||||
"prettyprint" "regexp.prettyprint" require-when
|
||||
|
|
|
@ -173,10 +173,6 @@ SYNTAX: SPECIALIZED-ARRAYS:
|
|||
SYNTAX: SPECIALIZED-ARRAY:
|
||||
scan-c-type define-array-vocab use-vocab ;
|
||||
|
||||
"prettyprint" vocab [
|
||||
"specialized-arrays.prettyprint" require
|
||||
] when
|
||||
"prettyprint" "specialized-arrays.prettyprint" require-when
|
||||
|
||||
"mirrors" vocab [
|
||||
"specialized-arrays.mirrors" require
|
||||
] when
|
||||
"mirrors" "specialized-arrays.mirrors" require-when
|
||||
|
|
|
@ -166,4 +166,4 @@ SYNTAX: TYPED::
|
|||
|
||||
USING: vocabs vocabs.loader ;
|
||||
|
||||
"prettyprint" vocab [ "typed.prettyprint" require ] when
|
||||
"prettyprint" "typed.prettyprint" require-when
|
||||
|
|
|
@ -393,6 +393,6 @@ M: f request-focus-on 2drop ;
|
|||
: focus-path ( gadget -- seq )
|
||||
[ focus>> ] follow ;
|
||||
|
||||
USING: vocabs vocabs.loader ;
|
||||
USE: vocabs.loader
|
||||
|
||||
"prettyprint" vocab [ "ui.gadgets.prettyprint" require ] when
|
||||
"prettyprint" "ui.gadgets.prettyprint" require-when
|
||||
|
|
|
@ -74,8 +74,6 @@ M: unix open-file [ open ] unix-system-call ;
|
|||
|
||||
<<
|
||||
|
||||
"debugger" vocab [
|
||||
"unix.debugger" require
|
||||
] when
|
||||
"debugger" "unix.debugger" require-when
|
||||
|
||||
>>
|
||||
|
|
|
@ -183,8 +183,6 @@ PRIVATE>
|
|||
! Literal syntax
|
||||
SYNTAX: URL" lexer get skip-blank parse-string >url suffix! ;
|
||||
|
||||
USING: vocabs vocabs.loader ;
|
||||
USE: vocabs.loader
|
||||
|
||||
"prettyprint" vocab [
|
||||
"urls.prettyprint" require
|
||||
] when
|
||||
"prettyprint" "urls.prettyprint" require-when
|
||||
|
|
|
@ -94,8 +94,6 @@ SYNTAX: COM-INTERFACE:
|
|||
|
||||
SYNTAX: GUID: scan string>guid suffix! ;
|
||||
|
||||
USING: vocabs vocabs.loader ;
|
||||
USE: vocabs.loader
|
||||
|
||||
"prettyprint" vocab [
|
||||
"windows.com.prettyprint" require
|
||||
] when
|
||||
"prettyprint" "windows.com.prettyprint" require-when
|
||||
|
|
|
@ -114,4 +114,4 @@ M: game-loop dispose
|
|||
|
||||
USING: vocabs vocabs.loader ;
|
||||
|
||||
"prettyprint" vocab [ "game.loop.prettyprint" require ] when
|
||||
"prettyprint" "game.loop.prettyprint" require-when
|
||||
|
|
|
@ -575,4 +575,4 @@ M: program-instance dispose
|
|||
[ world>> ] [ program>> instances>> ] [ ] tri ?delete-at
|
||||
reset-memos ;
|
||||
|
||||
"prettyprint" vocab [ "gpu.shaders.prettyprint" require ] when
|
||||
"prettyprint" "gpu.shaders.prettyprint" require-when
|
||||
|
|
Loading…
Reference in New Issue