]> gitweb.factorcode.org Git - factor.git/commitdiff
factor: Rename MACRO: and MACRO: to have quot as the output in stack effects.
authorDoug Coleman <doug.coleman@gmail.com>
Sun, 19 Jul 2015 05:16:11 +0000 (22:16 -0700)
committerDoug Coleman <doug.coleman@gmail.com>
Sun, 19 Jul 2015 05:16:11 +0000 (22:16 -0700)
38 files changed:
basis/alien/enums/enums.factor
basis/calendar/format/macros/macros.factor
basis/checksums/md5/md5.factor
basis/classes/struct/struct.factor
basis/combinators/random/random.factor
basis/compiler/cfg/intrinsics/simd/backend/backend.factor
basis/compiler/tree/debugger/debugger.factor
basis/concurrency/combinators/combinators.factor
basis/formatting/formatting.factor
basis/generalizations/generalizations.factor
basis/interpolate/interpolate.factor
basis/inverse/inverse.factor
basis/match/match.factor
basis/math/bitwise/bitwise.factor
basis/math/polynomials/polynomials.factor
basis/math/vectors/conversion/conversion-tests.factor
basis/math/vectors/conversion/conversion.factor
basis/nmake/nmake.factor
basis/opengl/opengl.factor
basis/sequences/generalizations/generalizations.factor
basis/shuffle/shuffle.factor
basis/stack-checker/transforms/transforms-tests.factor
basis/tools/test/test.factor
basis/unix/unix.factor
basis/xmode/utilities/utilities.factor
extra/alien/data/map/map.factor
extra/alien/fortran/fortran.factor
extra/brainfuck/brainfuck.factor
extra/bunny/outlined/outlined.factor
extra/combinators/extras/extras.factor
extra/combinators/tuple/tuple.factor
extra/cuda/libraries/libraries.factor
extra/cursors/cursors.factor
extra/gml/macros/macros.factor
extra/mason/child/child.factor
extra/math/dual/dual.factor
extra/twitter/twitter.factor
extra/variants/variants.factor

index d833e96e4d85ee11cae8718a05792a99a33f4cfb..10ca2ba07008a0a209590b8a46609aa12d036880 100644 (file)
@@ -21,7 +21,7 @@ M: word enum>number "enum-value" word-prop ;
     { } map-as [ ] suffix '[ _ case ] ;
 PRIVATE>
 
-MACRO: number>enum ( enum-c-type -- )
+MACRO: number>enum ( enum-c-type -- quot )
     lookup-c-type members>> enum-boxer ;
 
 M: enum-c-type c-type-boxed-class drop object ;
index 6d6dd3ae235e02c43b6913d8a92291409019e7a6..901fe2267c439a08fdf407527d2ca1302a6cee47 100644 (file)
@@ -2,7 +2,7 @@ USING: macros kernel words quotations io sequences combinators
 continuations ;
 IN: calendar.format.macros
 
-MACRO: formatted ( spec -- )
+MACRO: formatted ( spec -- quot )
     [
         {
             { [ dup word? ] [ 1quotation ] }
@@ -11,7 +11,7 @@ MACRO: formatted ( spec -- )
         } cond
     ] map [ cleave ] curry ;
 
-MACRO: attempt-all-quots ( quots -- )
+MACRO: attempt-all-quots ( quots -- quot )
     dup length 1 = [ first ] [
         unclip swap
         [ nip attempt-all-quots ] curry
index 13edf0ed5049f4b945236e55e5b9f8c7a58b7ece..45412109549d0634cc1ceacf7fd84ff4f39855a9 100644 (file)
@@ -84,7 +84,7 @@ CONSTANT: d 3
         b state nth-unsafe w+
     ] change-nth-unsafe ; inline
 
-MACRO: with-md5-round ( ops quot -- )
+MACRO: with-md5-round ( ops quot -- quot )
     '[ [ _ (ABCD) ] compose ] map '[ _ 2cleave ] ;
 
 : (process-md5-block-F) ( block state -- )
index b7a68163c6e9f7aa81baf9e70ee72da2ce5d8254..07ad7df82dc86d6fb538597d270cbe6d0dffbe89 100644 (file)
@@ -138,11 +138,11 @@ M: struct-bit-slot-spec (writer-quot)
 : (unboxer-quot) ( class -- quot )
     drop [ >c-ptr ] ;
 
-MACRO: read-struct-slot ( slot -- )
+MACRO: read-struct-slot ( slot -- quot )
     dup type>> add-depends-on-c-type
     (reader-quot) ;
 
-MACRO: write-struct-slot ( slot -- )
+MACRO: write-struct-slot ( slot -- quot )
     dup type>> add-depends-on-c-type
     (writer-quot) ;
 PRIVATE>
index 5a66b878cf40de5b76b23b43e78b0da26f8a8ede..661ed3f08dbd0d8e992bc2f1bbb55cf802fb5bbb 100644 (file)
@@ -37,7 +37,7 @@ M: bad-probabilities summary
         cond>quot
     ] [ bad-probabilities ] if ;
 
-MACRO: (casep) ( assoc -- ) (casep>quot) ;
+MACRO: (casep) ( assoc -- quot ) (casep>quot) ;
 
 : casep>quot ( assoc -- quot )
     (casep>quot) [ random-unit ] prepend ;
@@ -62,11 +62,11 @@ MACRO: (casep) ( assoc -- ) (casep>quot) ;
 
 PRIVATE>
 
-MACRO: casep ( assoc -- ) casep>quot ;
+MACRO: casep ( assoc -- quot ) casep>quot ;
 
-MACRO: casep* ( assoc -- ) direct>conditional casep>quot ;
+MACRO: casep* ( assoc -- quot ) direct>conditional casep>quot ;
 
-MACRO: call-random ( seq -- ) call-random>casep casep>quot ;
+MACRO: call-random ( seq -- quot ) call-random>casep casep>quot ;
 
-MACRO: execute-random ( seq -- )
+MACRO: execute-random ( seq -- quot )
     [ 1quotation ] map call-random>casep casep>quot ;
index 5a526ec579d18b7d74e16033da825da6d0b65589..94fa2778f26cab2cc990acf966cc7335f2c03793 100644 (file)
@@ -84,22 +84,22 @@ M:: pair >vector-op-cond ( pair #pick #dup -- quotpair )
     #dup '[ % _ nnip ]
     2array ;
 
-MACRO: v-vector-op ( trials -- )
+MACRO: v-vector-op ( trials -- quot )
     [ 1 2 >vector-op-cond ] map '[ f f _ cond ] ;
-MACRO: vl-vector-op ( trials -- )
+MACRO: vl-vector-op ( trials -- quot )
     [ 1 3 >vector-op-cond ] map '[ f f _ cond ] ;
-MACRO: vvl-vector-op ( trials -- )
+MACRO: vvl-vector-op ( trials -- quot )
     [ 1 4 >vector-op-cond ] map '[ f f _ cond ] ;
-MACRO: vv-vector-op ( trials -- )
+MACRO: vv-vector-op ( trials -- quot )
     [ 1 3 >vector-op-cond ] map '[ f f _ cond ] ;
-MACRO: vv-cc-vector-op ( trials -- )
+MACRO: vv-cc-vector-op ( trials -- quot )
     [ 2 4 >vector-op-cond ] map '[ f f _ cond ] ;
-MACRO: vvvv-vector-op ( trials -- )
+MACRO: vvvv-vector-op ( trials -- quot )
     [ 1 5 >vector-op-cond ] map '[ f f _ cond ] ;
 
 ! Intrinsic code emission
 
-MACRO: check-elements ( quots -- )
+MACRO: check-elements ( quots -- quot )
     [ length '[ _ firstn ] ]
     [ '[ _ spread ] ]
     [ length 1 - \ and <repetition> [ ] like ]
@@ -107,7 +107,7 @@ MACRO: check-elements ( quots -- )
 
 ERROR: bad-simd-intrinsic node ;
 
-MACRO: if-literals-match ( quots -- )
+MACRO: if-literals-match ( quots -- quot )
     [ length ] [ ] [ length ] tri
     ! n quots n
     '[
@@ -142,18 +142,18 @@ CONSTANT: [quaternary]
     params-quot trials op-quot literal-preds
     '[ [ _ dip _ @ ds-push ] _ if-literals-match ] ;
 
-MACRO: emit-v-vector-op ( trials -- )
+MACRO: emit-v-vector-op ( trials -- quot )
     [unary] [ v-vector-op ] { [ representation? ] } [emit-vector-op] ;
-MACRO: emit-vl-vector-op ( trials literal-pred -- )
+MACRO: emit-vl-vector-op ( trials literal-pred -- quot )
     [ [unary/param] [ vl-vector-op ] { [ representation? ] } ] dip prefix [emit-vector-op] ;
-MACRO: emit-vv-vector-op ( trials -- )
+MACRO: emit-vv-vector-op ( trials -- quot )
     [binary] [ vv-vector-op ] { [ representation? ] } [emit-vector-op] ;
-MACRO: emit-vvl-vector-op ( trials literal-pred -- )
+MACRO: emit-vvl-vector-op ( trials literal-pred -- quot )
     [ [binary/param] [ vvl-vector-op ] { [ representation? ] } ] dip prefix [emit-vector-op] ;
-MACRO: emit-vvvv-vector-op ( trials -- )
+MACRO: emit-vvvv-vector-op ( trials -- quot )
     [quaternary] [ vvvv-vector-op ] { [ representation? ] } [emit-vector-op] ;
 
-MACRO:: emit-vv-or-vl-vector-op ( var-trials imm-trials literal-pred -- )
+MACRO:: emit-vv-or-vl-vector-op ( var-trials imm-trials literal-pred -- quot )
     literal-pred imm-trials literal-pred var-trials
     '[
         dup node-input-infos 2 tail-slice* first literal>> @
index a57c2c276ccbf112eaed04f9a1db59cb0b1bccfb..e8a7716334ad565d76a134f917f66dea6da98d37 100644 (file)
@@ -23,7 +23,7 @@ IN: compiler.tree.debugger
 
 GENERIC: node>quot ( node -- )
 
-MACRO: match-choose ( alist -- )
+MACRO: match-choose ( alist -- quot )
     [ '[ _ ] ] assoc-map '[ _ match-cond ] ;
 
 MATCH-VARS: ?a ?b ?c ;
index e7c42bc64472039aee955939c431fce02be90fd2..c0be95b2774ed3ca0066fb2df25a1af96bcb983e 100644 (file)
@@ -70,11 +70,11 @@ PRIVATE>
 
 PRIVATE>
 
-MACRO: parallel-cleave ( quots -- )
+MACRO: parallel-cleave ( quots -- quot )
     (parallel-cleave) '[ _ cleave _ spread ] ;
 
-MACRO: parallel-spread ( quots -- )
+MACRO: parallel-spread ( quots -- quot )
     (parallel-cleave) '[ _ spread _ spread ] ;
 
-MACRO: parallel-napply ( quot n -- )
+MACRO: parallel-napply ( quot n -- quot )
     [ [future] ] dip dup (parallel-spread) '[ _ _ napply _ spread ] ;
index e166708673766f4717df78ece8ec9af9d46cb676..708480aed4f9553cf34641eab76b294d29b0de6f 100644 (file)
@@ -102,7 +102,7 @@ text      = (formats|plain-text)* => [[ ]]
 
 PRIVATE>
 
-MACRO: printf ( format-string -- )
+MACRO: printf ( format-string -- quot )
     printf-quot '[
         @ output-stream get [ stream-write ] curry _ napply
     ] ;
@@ -197,7 +197,7 @@ text      = (formats|plain-text)* => [[ ]]
 
 PRIVATE>
 
-MACRO: strftime ( format-string -- )
+MACRO: strftime ( format-string -- quot )
     parse-strftime [
         dup string? [
             '[ _ swap push-all ]
index 5f3c16029068ee2813193b9f44abfa409101d5a7..91b42d5a833611f2d7ee7ad411a9349f3607e862 100644 (file)
@@ -14,39 +14,39 @@ IN: generalizations
 
 ALIAS: n*quot (n*quot)
 
-MACRO: call-n ( n -- )
+MACRO: call-n ( n -- quot )
     [ call ] <repetition> '[ _ cleave ] ;
 
 : repeat ( n obj quot -- ) swapd times ; inline
 
 >>
 
-MACRO: nsum ( n -- )
+MACRO: nsum ( n -- quot )
     1 - [ + ] n*quot ;
 
 ERROR: nonpositive-npick n ;
 
-MACRO: npick ( n -- )
+MACRO: npick ( n -- quot )
     {
         { [ dup 0 <= ] [ nonpositive-npick ] }
         { [ dup 1 = ] [ drop [ dup ] ] }
         [ 1 - [ dup ] [ '[ _ dip swap ] ] repeat ]
     } cond ;
 
-MACRO: nover ( n -- )
+MACRO: nover ( n -- quot )
     dup 1 + '[ _ npick ] n*quot ;
 
 : ndup ( n -- )
     [ '[ _ npick ] ] keep call-n ; inline
 
-MACRO: dupn ( n -- )
+MACRO: dupn ( n -- quot )
     [ [ drop ] ]
     [ 1 - [ dup ] n*quot ] if-zero ;
 
-MACRO: nrot ( n -- )
+MACRO: nrot ( n -- quot )
     1 - [ ] [ '[ _ dip swap ] ] repeat ;
 
-MACRO: -nrot ( n -- )
+MACRO: -nrot ( n -- quot )
     1 - [ ] [ '[ swap _ dip ] ] repeat ;
 
 : ndrop ( n -- )
@@ -70,11 +70,11 @@ MACRO: -nrot ( n -- )
 : nbi ( quot1 quot2 n -- )
     [ nip nkeep ] [ drop nip call ] 3bi ; inline
 
-MACRO: ncleave ( quots n -- )
+MACRO: ncleave ( quots n -- quot )
     [ '[ _ '[ _ _ nkeep ] ] map [ ] join ] [ '[ _ ndrop ] ] bi
     compose ;
 
-MACRO: nspread ( quots n -- )
+MACRO: nspread ( quots n -- quot )
     over empty? [ 2drop [ ] ] [
         [ [ but-last ] dip ]
         [ [ last ] dip ] 2bi
@@ -82,13 +82,13 @@ MACRO: nspread ( quots n -- )
         '[ [ _ _ nspread ] _ ndip @ ]
     ] if ;
 
-MACRO: spread* ( n -- )
+MACRO: spread* ( n -- quot )
     [ [ ] ] [
         [1,b) [ '[ [ [ _ ndip ] curry ] dip compose ] ] map [ ] concat-as
         [ call ] compose
     ] if-zero ;
 
-MACRO: nspread* ( m n -- )
+MACRO: nspread* ( m n -- quot )
     [ drop [ ] ] [
         [ * 0 ] [ drop neg ] 2bi
         <range> rest >array dup length iota <reversed>
@@ -98,7 +98,7 @@ MACRO: nspread* ( m n -- )
         [ ] concat-as [ call ] compose
     ] if-zero ;
 
-MACRO: cleave* ( n -- )
+MACRO: cleave* ( n -- quot )
     [ [ ] ]
     [ 1 - [ [ [ keep ] curry ] dip compose ] n*quot [ call ] compose ]
     if-zero ;
@@ -118,10 +118,10 @@ MACRO: cleave* ( n -- )
 : spread-curry ( a... quot... n -- )
     [ [curry] ] swap [ napply ] [ spread* ] bi ; inline
 
-MACRO: mnswap ( m n -- )
+MACRO: mnswap ( m n -- quot )
     1 + '[ _ -nrot ] swap '[ _ _ napply ] ;
 
-MACRO: nweave ( n -- )
+MACRO: nweave ( n -- quot )
     [ dup iota <reversed> [ '[ _ _ mnswap ] ] with map ] keep
     '[ _ _ ncleave ] ;
 
index b9a83afa5ed3ef39aa06aac3d42b986af7bae32c..135b2fd81680fcc69c1bbb77b85a5eac815fa664 100644 (file)
@@ -67,7 +67,7 @@ TUPLE: anon-var ;
 
 PRIVATE>
 
-MACRO: interpolate ( str -- )
+MACRO: interpolate ( str -- quot )
     [ [ get ] ] interpolate-quot ;
 
 : interpolate>string ( str -- newstr )
index 15b2b33218faaa941632832b8aa89b3fc9d65768..21a4df0f84be45350fb4b51a7f739130ed9ed45d 100644 (file)
@@ -132,7 +132,7 @@ M: pop-inverse inverse
 : [undo] ( quot -- undo )
     flatten fold reverse [ (undo) ] [ ] make ;
 
-MACRO: undo ( quot -- ) [undo] ;
+MACRO: undo ( quot -- quot ) [undo] ;
 
 ! Inverse of selected words
 
@@ -294,4 +294,4 @@ M: no-match summary drop "Fall through in switch" ;
     reverse [ [ [undo] ] dip compose ] { } assoc>map
     recover-chain ;
 
-MACRO: switch ( quot-alist -- ) [switch] ;
+MACRO: switch ( quot-alist -- quot ) [switch] ;
index 341d967c081bb02e4d078929f79f9797be469e95..0b61389fd2215d63f94cd39f526c91ce0ad93c5c 100644 (file)
@@ -42,7 +42,7 @@ SYNTAX: MATCH-VARS: ! vars ...
 : match ( value1 value2 -- bindings )
     [ (match) ] H{ } make swap [ drop f ] unless ;
 
-MACRO: match-cond ( assoc -- )
+MACRO: match-cond ( assoc -- quot )
     <reversed>
     [ "Fall-through in match-cond" throw ]
     [
index 3658fa5d593bcce7d0d5a0a388a88812e8257169..658d3586e005c9b7cb20e33c2e21ad4b2aac8912 100644 (file)
@@ -70,7 +70,7 @@ M: pair (bitfield-quot) ( spec -- quot )
 
 PRIVATE>
 
-MACRO: bitfield ( bitspec -- )
+MACRO: bitfield ( bitspec -- quot )
     [ [ 0 ] ] [
         [ (bitfield-quot) ] [ '[ @ _ dip bitor ] ] map-reduce
     ] if-empty ;
index 9ce47d942acc1cc82e95629394248c02401036b4..b2ce6945f2e71aa14aad830885587ae2d41460e5 100644 (file)
@@ -94,7 +94,7 @@ PRIVATE>
     [ drop ] 2bi
     '[ [ _ * ] dip + ] each ;
 
-MACRO: polyval* ( p -- )
+MACRO: polyval* ( p -- quot )
     reverse
     [ rest [ \ * swap \ + [ ] 3sequence ] map ]
     [ first \ drop swap [ ] 2sequence ] bi
index aa61f4485321e2af96a80b388f0e0c9d128d5bb9..85416f294ee27a04fc62222f53e513d75a53ae15 100644 (file)
@@ -9,7 +9,7 @@ ERROR: optimized-vconvert-inconsistent
     unoptimized-result
     optimized-result ;
 
-MACRO:: test-vconvert ( from-type to-type -- )
+MACRO:: test-vconvert ( from-type to-type -- quot )
     [ from-type to-type vconvert ] :> quot
     quot infer :> effect
     effect in>> length :> inputs
index 2cc6bdb2b92d08eacc1da60c355d563e39c86aa9..bb9c0d1d48f05eb6fbf6fbecba98579cfd8773ee 100644 (file)
@@ -92,7 +92,7 @@ ERROR: bad-vconvert-input value expected-type ;
 
 PRIVATE>
 
-MACRO:: vconvert ( from-type to-type -- )
+MACRO:: vconvert ( from-type to-type -- quot )
     from-type new [ simd-element-type ] [ byte-length ] bi :> ( from-element from-length )
     to-type   new [ simd-element-type ] [ byte-length ] bi :> ( to-element   to-length   )
     from-element heap-size :> from-size
index b4dc3871d4ed2dab5391d8d9d69a2061fffbea90..8050d2d3fe773e5121722024f56413496f64a683 100644 (file)
@@ -28,7 +28,7 @@ SYMBOL: building-seq
 : 4% ( seq -- ) 4 n% ;
 : 4# ( num -- ) 4 n# ;
 
-MACRO: finish-nmake ( exemplars -- )
+MACRO: finish-nmake ( exemplars -- quot )
     length [ firstn ] curry ;
 
 :: nmake ( quot exemplars -- )
index 80f72b9f3a7e2705bc9ec97ac6efa5edbb22be6c..55c2b766cde1d2abcbbbbdad4f56deb9de7b241a 100644 (file)
@@ -65,10 +65,10 @@ TUPLE: gl-error-tuple function code string ;
     dip
     [ glDisableClientState ] each ; inline
 
-MACRO: all-enabled ( seq quot -- )
+MACRO: all-enabled ( seq quot -- quot )
     [ words>values ] dip '[ _ _ (all-enabled) ] ;
 
-MACRO: all-enabled-client-state ( seq quot -- )
+MACRO: all-enabled-client-state ( seq quot -- quot )
     [ words>values ] dip '[ _ _ (all-enabled-client-state) ] ;
 
 : do-matrix ( quot -- )
@@ -187,7 +187,7 @@ MACRO: all-enabled-client-state ( seq quot -- )
 : (set-draw-buffers) ( buffers -- )
     [ length ] [ uint >c-array ] bi glDrawBuffers ;
 
-MACRO: set-draw-buffers ( buffers -- )
+MACRO: set-draw-buffers ( buffers -- quot )
     words>values '[ _ (set-draw-buffers) ] ;
 
 : gen-dlist ( -- id ) 1 glGenLists ;
index 5c4a18e12488089617b000b127379142d53aa246..c05d667e2f60a25f1faef893fd7a7816251ebc27 100644 (file)
@@ -4,28 +4,28 @@ combinators macros math.order math.ranges quotations fry effects
 memoize.private generalizations ;
 IN: sequences.generalizations
 
-MACRO: nsequence ( n seq -- )
+MACRO: nsequence ( n seq -- quot )
     [ [nsequence] ] keep '[ @ _ like ] ;
 
-MACRO: narray ( n -- )
+MACRO: narray ( n -- quot )
     '[ _ { } nsequence ] ;
 
-MACRO: firstn-unsafe ( n -- )
+MACRO: firstn-unsafe ( n -- quot )
     [firstn] ;
 
-MACRO: firstn ( n -- )
+MACRO: firstn ( n -- quot )
     [ [ drop ] ] [
         [ 1 - swap bounds-check 2drop ]
         [ firstn-unsafe ]
         bi-curry '[ _ _ bi ]
     ] if-zero ;
 
-MACRO: set-firstn-unsafe ( n -- )
+MACRO: set-firstn-unsafe ( n -- quot )
     [ 1 + ]
     [ iota [ '[ _ rot [ set-nth-unsafe ] keep ] ] map ] bi
     '[ _ -nrot _ spread drop ] ;
 
-MACRO: set-firstn ( n -- )
+MACRO: set-firstn ( n -- quot )
     [ [ drop ] ] [
         [ 1 - swap bounds-check 2drop ]
         [ set-firstn-unsafe ]
@@ -37,7 +37,7 @@ MACRO: set-firstn ( n -- )
 : nappend-as ( n exemplar -- seq )
     [ narray ] [ concat-as ] bi* ; inline
 
-MACRO: nmin-length ( n -- )
+MACRO: nmin-length ( n -- quot )
     dup 1 - [ min ] n*quot
     '[ [ length ] _ napply @ ] ;
 
@@ -47,7 +47,7 @@ MACRO: nmin-length ( n -- )
 : nnth-unsafe ( n seq... n -- )
     [ nth-unsafe ] swap [ apply-curry ] [ cleave* ] bi ; inline
 
-MACRO: nset-nth-unsafe ( n -- )
+MACRO: nset-nth-unsafe ( n -- quot )
     [ [ drop ] ]
     [ '[ [ set-nth-unsafe ] _ [ apply-curry ] [ cleave-curry ] [ spread* ] tri ] ]
     if-zero ;
@@ -65,7 +65,7 @@ MACRO: nset-nth-unsafe ( n -- )
 : nmap ( seq... quot n -- result )
     dup '[ [ _ npick ] dip swap ] dip nmap-as ; inline
 
-MACRO: nnew-sequence ( n -- )
+MACRO: nnew-sequence ( n -- quot )
     [ [ drop ] ]
     [ dup '[ [ new-sequence ] _ apply-curry _ cleave* ] ] if-zero ;
 
@@ -78,7 +78,7 @@ MACRO: nnew-sequence ( n -- )
         _ spread*
     ] call ; inline
 
-MACRO: (ncollect) ( n -- )
+MACRO: (ncollect) ( n -- quot )
     3 dupn 1 +
     '[ [ [ keep ] _ ndip _ nset-nth-unsafe ] _ ncurry ] ;
 
index 0bab3c7a1bbc114b7e6c6d6a8de6fd3841d16035..03d3caed8be1f3233392bcd69eeb2e976330d088 100644 (file)
@@ -5,7 +5,7 @@ generalizations kernel macros make sequences
 sequences.generalizations ;
 IN: shuffle
 
-MACRO: shuffle-effect ( effect -- )
+MACRO: shuffle-effect ( effect -- quot )
     [ in>> H{ } zip-index-as ] [ out>> ] bi
     [ drop assoc-size '[ _ narray ] ]
     [ [ of '[ _ swap nth ] ] with map ] 2bi
index 2a0b5bfcb2e0547cf4ac8c3e1b648da54780ecfe..204d42f310ea8e29d6ceb20b6b8916dd224f50a3 100644 (file)
@@ -58,7 +58,7 @@ DEFER: smart-combo
 [ [ [ "a" "b" ] very-smart-combo "c" ] very-smart-combo ] must-infer
 
 ! Caveat found by Doug
-MACRO: curry-folding-test ( quot -- )
+MACRO: curry-folding-test ( quot -- quot )
     length \ drop <repetition> >quotation ;
 
 { 3 0 } [ [ 1 2 3 ] curry-folding-test ] must-infer-as
index 762ce061764d7d1d37cd92cab9920fa5fd795b9d..24eb41f4f182701effc8da3d9545eb6559b03774 100644 (file)
@@ -79,7 +79,7 @@ M: did-not-fail summary drop "Did not fail" ;
     "(" ?head drop ")" ?tail drop
     H{ { CHAR: - CHAR: \s } } substitute >title ;
 
-MACRO: <experiment> ( word -- )
+MACRO: <experiment> ( word -- quot )
     [ stack-effect in>> length dup ]
     [ name>> experiment-title ] bi
     '[ _ ndup _ narray _ prefix ] ;
index 6108cd457e3d0bb18a2359b0a059f577a688b92d..0fb4de728de93290d3ca791b5a9b7511b05a322b 100644 (file)
@@ -17,7 +17,7 @@ ERROR: unix-system-call-error args errno message word ;
         [ not ]
     } 1|| ;
 
-MACRO:: unix-system-call ( quot -- )
+MACRO:: unix-system-call ( quot -- quot )
     quot inputs :> n
     quot first :> word
     0 :> ret!
@@ -40,7 +40,7 @@ MACRO:: unix-system-call ( quot -- )
         ] if
     ] ;
 
-MACRO:: unix-system-call-allow-eintr ( quot -- )
+MACRO:: unix-system-call-allow-eintr ( quot -- quot )
     quot inputs :> n
     quot first :> word
     0 :> ret!
index a7e42877aa2db5ed769d8e63a9343678755e90ff..3fbce8e7cfbd0a5f90a1f4a66a73587307196c4b 100644 (file)
@@ -25,7 +25,7 @@ IN: xmode.utilities
 : with-tag-initializer ( tag obj quot -- )
     [ object set tag set ] prepose with-scope ; inline
 
-MACRO: (init-from-tag) ( specs -- )
+MACRO: (init-from-tag) ( specs -- quot )
     [ tag-init-form ] map concat [ ] like
     [ with-tag-initializer ] curry ;
 
index 7a7311b0e9186099584fa0591c78e7b947843722..1abb3a76ef3f7e6e4f9812af3a7a08c26ec7e367 100644 (file)
@@ -80,10 +80,10 @@ MACRO: >param ( in -- quot: ( array -- param ) )
 MACRO: alloc-param ( out -- quot: ( len -- param ) )
     [alloc-param] ;
 
-MACRO: unpack-params ( ins -- )
+MACRO: unpack-params ( ins -- quot )
     [ c-type-count nip '[ _ firstn-unsafe ] ] map '[ _ spread ] ;
 
-MACRO: pack-params ( outs -- )
+MACRO: pack-params ( outs -- quot )
     [ ] [ c-type-count nip dup [ [ ndip _ ] dip set-firstn ] 3curry ] reduce
     fry [ call ] compose ;
 
@@ -104,7 +104,7 @@ MACRO: pack-params ( outs -- )
         [ orig>> ] , #outs , \ napply ,
     ] [ ] make fry \ call suffix ;
 
-MACRO: data-map ( ins outs -- )
+MACRO: data-map ( ins outs -- quot )
     2dup
     [
         [ [ '[ _ >param ] ] map '[ _ spread ] ]
@@ -113,7 +113,7 @@ MACRO: data-map ( ins outs -- )
     [ [ '[ _ alloc-param ] ] map '[ _ cleave ] ] bi* compose
     [data-map] ;
 
-MACRO: data-map! ( ins outs -- )
+MACRO: data-map! ( ins outs -- quot )
     2dup append [ '[ _ >param ] ] map '[ _ spread ] [data-map] ;
 
 : parse-data-map-effect ( accum -- accum )
index 6f9bae57acfbd7fce40f56d0076a90943a0cebbc..b2584b18406b6aaad10b0751a88e98c6311fbbc6 100755 (executable)
@@ -101,7 +101,7 @@ CONSTANT: fortran>c-types H{
 : append-dimensions ( base-c-type type -- c-type )
     dims>> [ product 2array ] when* ;
 
-MACRO: size-case-type ( cases -- )
+MACRO: size-case-type ( cases -- quot )
     [ invalid-fortran-type ] suffix
     '[ [ size>> _ case ] [ append-dimensions ] bi ] ;
 
@@ -424,7 +424,7 @@ PRIVATE>
     [ '[ _ throw ] ]
     [ drop return library function parameters ((fortran-invoke)) ] if ;
 
-MACRO: fortran-invoke ( return library function parameters -- )
+MACRO: fortran-invoke ( return library function parameters -- quot )
     { [ 2drop nip set-fortran-abi ] [ (fortran-invoke) ] } 4 ncleave ;
 
 : parse-arglist ( parameters return -- types effect )
index e082e511b36a284368874ce72b91530937465a03..b164a669c0894eef0bb7a9656e5371c2afd16403 100644 (file)
@@ -70,7 +70,7 @@ code  = (loop|ops|unknown)*  => [[ compose-all ]]
 
 PRIVATE>
 
-MACRO: run-brainfuck ( code -- )
+MACRO: run-brainfuck ( code -- quot )
     parse-brainfuck '[ <brainfuck> @ drop flush ] ;
 
 : get-brainfuck ( code -- result )
index 4f280b56b8dee869322e7bc276a05c9c273ecd89..ac13f54286484fef1171bace251073d557ba7d3e 100644 (file)
@@ -175,7 +175,7 @@ TUPLE: bunny-outlined
         } cleave
     ] [ drop ] if ;
 
-MACRO: (framebuffer-texture>>draw) ( iformat xformat setter -- )
+MACRO: (framebuffer-texture>>draw) ( iformat xformat setter -- quot )
     '[ _ _ (framebuffer-texture) [ @ drop ] keep ] ;
 
 : (make-framebuffer-textures) ( draw dim -- draw color normal depth )
index c30788fbbe72d6c290c47846cf2c87677389639a..afc7296f7eb2c7982b64b278d2f2b52fe658bdc8 100644 (file)
@@ -10,7 +10,7 @@ IN: combinators.extras
 : thrice ( quot -- ) dup dup [ call ] 2dip [ call ] dip call ; inline
 : forever ( quot -- ) [ t ] compose loop ; inline
 
-MACRO: cond-case ( assoc -- )
+MACRO: cond-case ( assoc -- quot )
     [
         dup callable? not [
             [ first [ dup ] prepose ]
@@ -18,7 +18,7 @@ MACRO: cond-case ( assoc -- )
         ] when
     ] map [ cond ] curry ;
 
-MACRO: cleave-array ( quots -- )
+MACRO: cleave-array ( quots -- quot )
     [ '[ _ cleave ] ] [ length '[ _ narray ] ] bi compose ;
 
 : 3bi* ( u v w x y z p q -- )
@@ -45,7 +45,7 @@ MACRO: cleave-array ( quots -- )
 : plox ( ... x/f quot: ( ... x -- ... ) -- ... )
     dupd when ; inline
 
-MACRO: smart-plox ( true -- )
+MACRO: smart-plox ( true -- quot )
     [ inputs [ 1 - [ and ] n*quot ] keep ] keep swap
     '[ _ _ [ _ ndrop f ] smart-if ] ;
 
index 8a8dd9eda58492b74612a79d36ef1b4242060a54..af95d9abb1e9fa270f4cd036145bb0bf446807c8 100644 (file)
@@ -13,7 +13,7 @@ IN: combinators.tuple
 
 PRIVATE>
 
-MACRO:: nmake-tuple ( class assoc n -- )
+MACRO:: nmake-tuple ( class assoc n -- quot )
     class all-slots [ assoc n (tuple-slot-quot) ] map :> quots
     class <wrapper> :> \class
     { quots n ncleave \class boa } >quotation ;
index 2e5c36bff640ce099b5e8293fbeacc0546437657..f899d4430d303af4a3b6e68e7cd52a78888dd1c1 100644 (file)
@@ -162,7 +162,7 @@ MACRO: cuda-arguments ( c-types abi -- quot: ( args... function -- ) )
     [ cached-module ] dip
     2array cuda-functions get [ first2 get-function-ptr ] cache ;
 
-MACRO: cuda-invoke ( module-name function-name arguments -- )
+MACRO: cuda-invoke ( module-name function-name arguments -- quot )
     pick lookup-cuda-library abi>> '[
         _ _ cached-function
         [ nip _ _ cuda-arguments ]
index c03940e654d9c2137e73838976da0f40be576a09..7efa7cca2dd94dbb1f7be319f0e3ab5c9dd40373 100644 (file)
@@ -547,13 +547,13 @@ ALIAS: -2in- -assoc-
 : -unzip- ( quot -- quot' )
     '[ [ keys>> cursor-value-unsafe ] [ values>> ] bi @ ] ; inline
 
-MACRO: nzip-cursors ( n -- ) 1 - [ zip-cursors ] n*quot ;
+MACRO: nzip-cursors ( n -- quot ) 1 - [ zip-cursors ] n*quot ;
 
 : nall ( seqs... n -- begin end ) [ [ all ] swap napply ] [ nzip-cursors ] bi ; inline
 
 : nall- ( seqs... quot n -- begin end quot ) swap [ nall ] dip ; inline
 
-MACRO: -nin- ( n -- )
+MACRO: -nin- ( n -- quot )
     1 - [ -unzip- ] n*quot [ -in- ] prepend ;
 
 : nin- ( seqs... quot n -- begin end quot ) [ nall- ] [ -nin- ] bi ; inline
@@ -574,5 +574,5 @@ MACRO: -nin- ( n -- )
 : -2with- ( invariant invariant begin end quot -- begin end quot' )
     -with- -with- ; inline
 
-MACRO: -nwith- ( n -- )
+MACRO: -nwith- ( n -- quot )
     [ -with- ] n*quot ;
index ca635a3fbdfdc92234de412f8e84b49f02218767..0f79d0d1d0f0cdb7d5390a0b931d9ed1532d07ba 100644 (file)
@@ -24,7 +24,7 @@ SYMBOL: current-macro
 
 : save-euler-op ( euler-op -- ) current-macro get log>> push ;
 
-MACRO:: log-euler-op ( class def inputs -- )
+MACRO:: log-euler-op ( class def inputs -- quot )
     class inputs def inputs '[ [ current-macro get [ _ boa save-euler-op ] [ _ ndrop ] if ] _ _ nbi ] ;
 
 SYNTAX: LOG-GML:
index a3cba430719850f159e58c3005efcfb4f0e05d0c..9bef56f5eb22e91b3ebf714859744fc1cd858010 100644 (file)
@@ -78,7 +78,7 @@ IN: mason.child
 : recover-else ( try catch else -- )
     [ [ '[ @ f t ] ] [ '[ @ f ] ] bi* recover ] dip '[ drop @ ] when ; inline
 
-MACRO: recover-cond ( alist -- )
+MACRO: recover-cond ( alist -- quot )
     dup { [ length 1 = ] [ first callable? ] } 1&&
     [ first ] [
         [ first first2 ] [ rest ] bi
index 640c776b8a6608513ed7fead0fd286714f3a1aa9..4512eb8f76567ab0e59b28d1be9ddd6274231143 100644 (file)
@@ -33,7 +33,7 @@ MACRO: ordinary-op ( word -- o )
 ! e1 o1 o2 ... oN e2 o1 o2 ... oN ... eN o1 o2 ... oN
 ! This allows a set of partial derivatives each to be evaluated
 ! at the same point.
-MACRO: duals>nweave ( n -- )
+MACRO: duals>nweave ( n -- quot )
    dup dup dup
    '[
        [ [ epsilon-part>> ] _ napply ]
@@ -64,7 +64,7 @@ MACRO: chain-rule ( word -- e )
 
 PRIVATE>
 
-MACRO: dual-op ( word -- )
+MACRO: dual-op ( word -- quot )
     [ '[ _ ordinary-op ] ]
     [ input-length '[ _ nkeep ] ]
     [ '[ _ chain-rule ] ]
index b27122df4f8b793b128c1347167b57f678ca88f0..40b44878d5014f6c321039aea5712e27386138cc 100644 (file)
@@ -49,7 +49,7 @@ PRIVATE>
 <PRIVATE
 
 ! Utilities
-MACRO: keys-boa ( keys class -- )
+MACRO: keys-boa ( keys class -- quot )
     [ [ '[ _ of ] ] map ] dip '[ _ cleave _ boa ] ;
 
 ! Twitter requests
index e8b50ebffc63a26ed72a530e9f7839bf08621c08..48da55cd25631a09cacb657691d9ba8e06d9224b 100644 (file)
@@ -52,7 +52,7 @@ SYNTAX: VARIANT-MEMBER:
     scan-token parse-variant-member
     define-variant-class-member ;
 
-MACRO: unboa ( class -- )
+MACRO: unboa ( class -- quot )
     <wrapper> \ boa [ ] 2sequence [undo] ;
 
 GENERIC# (match-branch) 1 ( class quot -- class quot' )
@@ -65,6 +65,6 @@ M: object (match-branch)
 : ?class ( object -- class )
     dup word? [ class-of ] unless ;
 
-MACRO: match ( branches -- )
+MACRO: match ( branches -- quot )
     [ dup callable? [ first2 (match-branch) 2array ] unless ] map
     [ \ dup \ ?class ] dip \ case [ ] 4sequence ;