Merge branch 'master' of git://factorcode.org/git/factor
commit
77ee6abe27
|
@ -29,7 +29,7 @@ SYMBOL: super-sent-messages
|
||||||
|
|
||||||
SYMBOL: frameworks
|
SYMBOL: frameworks
|
||||||
|
|
||||||
frameworks global [ V{ } clone or ] change-at
|
frameworks [ V{ } clone ] initialize
|
||||||
|
|
||||||
[ frameworks get [ load-framework ] each ] "cocoa.messages" add-init-hook
|
[ frameworks get [ load-framework ] each ] "cocoa.messages" add-init-hook
|
||||||
|
|
||||||
|
|
|
@ -19,8 +19,8 @@ IN: cocoa.messages
|
||||||
SYMBOL: message-senders
|
SYMBOL: message-senders
|
||||||
SYMBOL: super-message-senders
|
SYMBOL: super-message-senders
|
||||||
|
|
||||||
message-senders global [ H{ } assoc-like ] change-at
|
message-senders [ H{ } clone ] initialize
|
||||||
super-message-senders global [ H{ } assoc-like ] change-at
|
super-message-senders [ H{ } clone ] initialize
|
||||||
|
|
||||||
: cache-stub ( method function hash -- )
|
: cache-stub ( method function hash -- )
|
||||||
[
|
[
|
||||||
|
@ -53,7 +53,7 @@ MEMO: <selector> ( name -- sel ) f \ selector boa ;
|
||||||
|
|
||||||
SYMBOL: objc-methods
|
SYMBOL: objc-methods
|
||||||
|
|
||||||
objc-methods global [ H{ } assoc-like ] change-at
|
objc-methods [ H{ } clone ] initialize
|
||||||
|
|
||||||
: lookup-method ( selector -- method )
|
: lookup-method ( selector -- method )
|
||||||
dup objc-methods get at
|
dup objc-methods get at
|
||||||
|
@ -79,7 +79,7 @@ MACRO: (send) ( selector super? -- quot )
|
||||||
! Runtime introspection
|
! Runtime introspection
|
||||||
SYMBOL: class-init-hooks
|
SYMBOL: class-init-hooks
|
||||||
|
|
||||||
class-init-hooks global [ H{ } clone or ] change-at
|
class-init-hooks [ H{ } clone or ] initialize
|
||||||
|
|
||||||
: (objc-class) ( name word -- class )
|
: (objc-class) ( name word -- class )
|
||||||
2dup execute dup [ 2nip ] [
|
2dup execute dup [ 2nip ] [
|
||||||
|
|
|
@ -24,4 +24,4 @@ IN: compiler.utilities
|
||||||
|
|
||||||
SYMBOL: yield-hook
|
SYMBOL: yield-hook
|
||||||
|
|
||||||
yield-hook global [ [ ] or ] change-at
|
yield-hook [ [ ] ] initialize
|
||||||
|
|
|
@ -85,4 +85,4 @@ PRIVATE>
|
||||||
: get-process ( name -- process )
|
: get-process ( name -- process )
|
||||||
dup registered-processes at [ ] [ thread ] ?if ;
|
dup registered-processes at [ ] [ thread ] ?if ;
|
||||||
|
|
||||||
\ registered-processes global [ H{ } assoc-like ] change-at
|
\ registered-processes [ H{ } clone ] initialize
|
||||||
|
|
|
@ -118,7 +118,7 @@ M: word set-article-parent swap "help-parent" set-word-prop ;
|
||||||
|
|
||||||
SYMBOL: help-hook
|
SYMBOL: help-hook
|
||||||
|
|
||||||
help-hook global [ [ print-topic ] or ] change-at
|
help-hook [ [ print-topic ] ] initialize
|
||||||
|
|
||||||
: help ( topic -- )
|
: help ( topic -- )
|
||||||
help-hook get call ;
|
help-hook get call ;
|
||||||
|
|
|
@ -27,11 +27,11 @@ M: link summary
|
||||||
! Help articles
|
! Help articles
|
||||||
SYMBOL: articles
|
SYMBOL: articles
|
||||||
|
|
||||||
articles global [ H{ } assoc-like ] change-at
|
articles [ H{ } clone ] initialize
|
||||||
|
|
||||||
SYMBOL: article-xref
|
SYMBOL: article-xref
|
||||||
|
|
||||||
article-xref global [ H{ } assoc-like ] change-at
|
article-xref [ H{ } clone ] initialize
|
||||||
|
|
||||||
GENERIC: article-name ( topic -- string )
|
GENERIC: article-name ( topic -- string )
|
||||||
GENERIC: article-title ( topic -- string )
|
GENERIC: article-title ( topic -- string )
|
||||||
|
|
|
@ -11,7 +11,7 @@ html.templates ;
|
||||||
|
|
||||||
SYMBOL: tags
|
SYMBOL: tags
|
||||||
|
|
||||||
tags global [ H{ } clone or ] change-at
|
tags [ H{ } clone ] initialize
|
||||||
|
|
||||||
: define-chloe-tag ( name quot -- ) swap tags get set-at ;
|
: define-chloe-tag ( name quot -- ) swap tags get set-at ;
|
||||||
|
|
||||||
|
|
|
@ -161,7 +161,7 @@ C: <trivial-responder> trivial-responder
|
||||||
|
|
||||||
M: trivial-responder call-responder* nip response>> clone ;
|
M: trivial-responder call-responder* nip response>> clone ;
|
||||||
|
|
||||||
main-responder global [ <404> <trivial-responder> or ] change-at
|
main-responder [ <404> <trivial-responder> ] initialize
|
||||||
|
|
||||||
: invert-slice ( slice -- slice' )
|
: invert-slice ( slice -- slice' )
|
||||||
dup slice? [ [ seq>> ] [ from>> ] bi head-slice ] [ drop { } ] if ;
|
dup slice? [ [ seq>> ] [ from>> ] bi head-slice ] [ drop { } ] if ;
|
||||||
|
|
|
@ -47,8 +47,8 @@ PRIVATE>
|
||||||
"resource:basis/io/encodings/iana/character-sets"
|
"resource:basis/io/encodings/iana/character-sets"
|
||||||
utf8 <file-reader> make-aliases aliases set-global
|
utf8 <file-reader> make-aliases aliases set-global
|
||||||
|
|
||||||
n>e-table global [ initial-n>e or ] change-at
|
n>e-table [ initial-n>e ] initialize
|
||||||
e>n-table global [ initial-e>n or ] change-at
|
e>n-table [ initial-e>n ] initialize
|
||||||
|
|
||||||
: register-encoding ( descriptor name -- )
|
: register-encoding ( descriptor name -- )
|
||||||
[
|
[
|
||||||
|
|
|
@ -87,7 +87,7 @@ M: word annotate-methods
|
||||||
|
|
||||||
SYMBOL: word-timing
|
SYMBOL: word-timing
|
||||||
|
|
||||||
word-timing global [ H{ } clone or ] change-at
|
word-timing [ H{ } clone ] initialize
|
||||||
|
|
||||||
: reset-word-timing ( -- )
|
: reset-word-timing ( -- )
|
||||||
word-timing get clear-assoc ;
|
word-timing get clear-assoc ;
|
||||||
|
|
|
@ -141,9 +141,9 @@ CLASS: {
|
||||||
|
|
||||||
SYMBOL: cocoa-init-hook
|
SYMBOL: cocoa-init-hook
|
||||||
|
|
||||||
cocoa-init-hook global [
|
cocoa-init-hook [
|
||||||
[ "MiniFactor.nib" load-nib install-app-delegate ] or
|
[ "MiniFactor.nib" load-nib install-app-delegate ]
|
||||||
] change-at
|
] initialize
|
||||||
|
|
||||||
M: cocoa-ui-backend ui
|
M: cocoa-ui-backend ui
|
||||||
"UI" assert.app [
|
"UI" assert.app [
|
||||||
|
|
|
@ -81,7 +81,7 @@ SYMBOL: ui-error-hook
|
||||||
: ui-error ( error -- )
|
: ui-error ( error -- )
|
||||||
ui-error-hook get [ call ] [ die ] if* ;
|
ui-error-hook get [ call ] [ die ] if* ;
|
||||||
|
|
||||||
ui-error-hook global [ [ rethrow ] or ] change-at
|
ui-error-hook [ [ rethrow ] ] initialize
|
||||||
|
|
||||||
: draw-world ( world -- )
|
: draw-world ( world -- )
|
||||||
dup draw-world? [
|
dup draw-world? [
|
||||||
|
|
|
@ -51,7 +51,7 @@ M: alien equal?
|
||||||
|
|
||||||
SYMBOL: libraries
|
SYMBOL: libraries
|
||||||
|
|
||||||
libraries global [ H{ } assoc-like ] change-at
|
libraries [ H{ } clone ] initialize
|
||||||
|
|
||||||
TUPLE: library path abi dll ;
|
TUPLE: library path abi dll ;
|
||||||
|
|
||||||
|
|
|
@ -178,6 +178,4 @@ SYMBOL: remake-generics-hook
|
||||||
: default-recompile-hook ( words -- alist )
|
: default-recompile-hook ( words -- alist )
|
||||||
[ f ] { } map>assoc ;
|
[ f ] { } map>assoc ;
|
||||||
|
|
||||||
recompile-hook global
|
recompile-hook [ [ default-recompile-hook ] ] initialize
|
||||||
[ [ default-recompile-hook ] or ]
|
|
||||||
change-at
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ SYMBOL: io-backend
|
||||||
|
|
||||||
SINGLETON: c-io-backend
|
SINGLETON: c-io-backend
|
||||||
|
|
||||||
io-backend global [ c-io-backend or ] change-at
|
io-backend [ c-io-backend ] initialize
|
||||||
|
|
||||||
HOOK: init-io io-backend ( -- )
|
HOOK: init-io io-backend ( -- )
|
||||||
|
|
||||||
|
|
|
@ -200,7 +200,7 @@ SYMBOL: interactive-vocabs
|
||||||
|
|
||||||
SYMBOL: print-use-hook
|
SYMBOL: print-use-hook
|
||||||
|
|
||||||
print-use-hook global [ [ ] or ] change-at
|
print-use-hook [ [ ] ] initialize
|
||||||
|
|
||||||
: parse-fresh ( lines -- quot )
|
: parse-fresh ( lines -- quot )
|
||||||
[
|
[
|
||||||
|
|
|
@ -22,9 +22,9 @@ ERROR: bad-escape ;
|
||||||
|
|
||||||
SYMBOL: name>char-hook
|
SYMBOL: name>char-hook
|
||||||
|
|
||||||
name>char-hook global [
|
name>char-hook [
|
||||||
[ "Unicode support not available" throw ] or
|
[ "Unicode support not available" throw ]
|
||||||
] change-at
|
] initialize
|
||||||
|
|
||||||
: unicode-escape ( str -- ch str' )
|
: unicode-escape ( str -- ch str' )
|
||||||
"{" ?head-slice [
|
"{" ?head-slice [
|
||||||
|
|
|
@ -96,11 +96,11 @@ M: word uses ( word -- seq )
|
||||||
|
|
||||||
SYMBOL: compiled-crossref
|
SYMBOL: compiled-crossref
|
||||||
|
|
||||||
compiled-crossref global [ H{ } assoc-like ] change-at
|
compiled-crossref [ H{ } clone ] initialize
|
||||||
|
|
||||||
SYMBOL: compiled-generic-crossref
|
SYMBOL: compiled-generic-crossref
|
||||||
|
|
||||||
compiled-generic-crossref global [ H{ } assoc-like ] change-at
|
compiled-generic-crossref [ H{ } clone ] initialize
|
||||||
|
|
||||||
: (compiled-xref) ( word dependencies word-prop variable -- )
|
: (compiled-xref) ( word dependencies word-prop variable -- )
|
||||||
[ [ set-word-prop ] curry ]
|
[ [ set-word-prop ] curry ]
|
||||||
|
|
|
@ -81,7 +81,7 @@ SYMBOL: upload-directory
|
||||||
|
|
||||||
! Optional: override ssh and scp command names
|
! Optional: override ssh and scp command names
|
||||||
SYMBOL: scp-command
|
SYMBOL: scp-command
|
||||||
scp-command global [ "scp" or ] change-at
|
scp-command [ "scp" ] initialize
|
||||||
|
|
||||||
SYMBOL: ssh-command
|
SYMBOL: ssh-command
|
||||||
ssh-command global [ "ssh" or ] change-at
|
ssh-command [ "ssh" ] initialize
|
||||||
|
|
Loading…
Reference in New Issue