Merge commit 'erg/master'

release
Slava Pestov 2007-11-24 23:58:00 -05:00
commit ba3febd728
3 changed files with 6 additions and 5 deletions

View File

@ -1,5 +1,5 @@
USING: editors io.launcher math.parser namespaces ;
IN: notepadpp
IN: editors.notepadpp
: notepadpp ( file line -- )
[

View File

@ -13,7 +13,7 @@ SYMBOL: def-hash-keys
2dup at -rot >r >r ?push r> r> set-at ;
: add-word-def ( word quot -- )
dup quotation? [
dup callable? [
def-hash get-global set-hash-vector
] [
2drop
@ -33,6 +33,7 @@ SYMBOL: def-hash-keys
{ [ drop drop drop ] 3drop }
{ [ 0 = ] zero? }
{ [ pop drop ] pop* }
{ [ [ ] if ] when }
} [ first2 swap add-word-def ] each ;
: accessor-words ( -- seq )
@ -108,13 +109,13 @@ M: object lint ( obj -- seq )
: subseq/member? ( subseq/member seq -- ? )
{ [ 2dup start ] [ 2dup member? ] } || 2nip ;
M: quotation lint ( quot -- seq )
M: callable lint ( quot -- seq )
def-hash-keys get [
swap subseq/member?
] curry* subset ;
M: word lint ( word -- seq )
word-def dup quotation? [ lint ] [ drop f ] if ;
word-def dup callable? [ lint ] [ drop f ] if ;
: word-path. ( word -- )
[ word-vocabulary ":" ] keep unparse 3append write nl ;

View File

@ -148,7 +148,7 @@ set_build_info() {
MAKE_TARGET=$OS-$ARCH-$WORD
BOOT_IMAGE=boot.$ARCH.$WORD.image
if [[ $OS == macosx && $ARCH=ppc ]] ; then
if [[ $OS == macosx && $ARCH == ppc ]] ; then
MAKE_TARGET=$OS-$ARCH
BOOT_IMAGE=boot.macosx-ppc.image
fi