update some more MACRO: effects.

db4
John Benediktsson 2015-07-19 11:42:46 -07:00
parent aa4ed0b4f4
commit c25fb5f55e
8 changed files with 8 additions and 8 deletions

View File

@ -3,7 +3,7 @@ IN: compiler.tests.redefine13
: breakage-word ( a b -- c ) + ;
<< MACRO: breakage-macro ( a -- ) '[ _ breakage-word ] ; >>
<< MACRO: breakage-macro ( a -- quot ) '[ _ breakage-word ] ; >>
GENERIC: breakage-caller ( a -- c )

View File

@ -54,7 +54,7 @@ M: float-4-rep copy-register* drop MOVAPS ;
M: double-2-rep copy-register* drop MOVAPS ;
M: vector-rep copy-register* drop MOVDQA ;
MACRO: available-reps ( alist -- )
MACRO: available-reps ( alist -- quot )
! Each SSE version adds new representations and supports
! all old ones
unzip { } [ append ] accumulate rest swap suffix

View File

@ -107,7 +107,7 @@ MACRO: printf ( format-string -- quot )
@ output-stream get [ stream-write ] curry _ napply
] ;
MACRO: sprintf ( format-string -- result )
MACRO: sprintf ( format-string -- quot )
printf-quot '[
@ _ "" nappend-as
] ;

View File

@ -15,7 +15,7 @@ xinput-game-input-backend game-input-backend set-global
255 /f ; inline
: >vibration ( float -- short )
65535 * >fixnum 0 65535 clamp ; inline
MACRO: map-index-compose ( seq quot -- seq )
MACRO: map-index-compose ( seq quot -- quot' )
'[ '[ _ execute _ ] _ compose ] map-index 1quotation ;
: fill-buttons ( button-bitmap -- button-array )

View File

@ -281,7 +281,7 @@ DEFER: __
: [matches?] ( quot -- undoes?-quot )
[undo] dup infer [ true-out ] [ false-recover ] bi curry ;
MACRO: matches? ( quot -- ? ) [matches?] ;
MACRO: matches? ( quot -- quot' ) [matches?] ;
ERROR: no-match ;
M: no-match summary drop "Fall through in switch" ;

View File

@ -8,7 +8,7 @@ IN: windows.com.syntax
<PRIVATE
MACRO: com-invoke ( n return parameters -- )
MACRO: com-invoke ( n return parameters -- quot )
[ 2nip length ] 3keep
'[
_ npick void* deref _ cell * alien-cell _ _

View File

@ -169,7 +169,7 @@ M: tag like
rot dup [ V{ } like ] when <tag>
] if ;
MACRO: clone-slots ( class -- tuple )
MACRO: clone-slots ( class -- quot )
[
"slots" word-prop
[ name>> reader-word '[ _ execute clone ] ] map

View File

@ -37,7 +37,7 @@ CONSTANT: data
{ "heth" f }
}
MACRO: case-probas ( data -- case-probas )
MACRO: case-probas ( data -- quot )
[ first2 [ swap 1quotation 2array ] [ 1quotation ] if* ] map 1quotation ;
: expected ( name data -- float )