From 7c7bb93c55ce5dc4f6411c83ead3eea1fc726d3a Mon Sep 17 00:00:00 2001 From: Doug Coleman Date: Thu, 1 Jun 2017 13:58:58 -0500 Subject: [PATCH] factor: Rename GENERIC# to GENERIC#:. Fixes #1670. --- basis/calendar/calendar.factor | 2 +- basis/compiler/cfg/gc-checks/gc-checks.factor | 2 +- .../intrinsics/simd/backend/backend.factor | 2 +- .../coalescing/coalescing.factor | 2 +- basis/compiler/tests/redefine16.factor | 4 ++-- basis/concurrency/mailboxes/mailboxes.factor | 2 +- basis/cpu/x86/assembler/assembler.factor | 6 ++--- basis/db/db.factor | 4 ++-- basis/delegate/delegate-tests.factor | 2 +- basis/delegate/delegate.factor | 2 +- basis/images/loader/loader.factor | 2 +- basis/io/files/info/unix/unix.factor | 2 +- basis/io/sockets/sockets.factor | 2 +- basis/io/streams/limited/limited.factor | 2 +- basis/json/writer/writer.factor | 2 +- basis/listener/listener.factor | 2 +- basis/locals/locals-tests.factor | 4 ++-- basis/math/floats/env/env.factor | 8 +++---- basis/math/functions/functions.factor | 4 ++-- basis/math/vectors/vectors.factor | 24 +++++++++---------- basis/random/random.factor | 4 ++-- basis/regexp/classes/classes.factor | 4 ++-- basis/tools/annotations/annotations.factor | 4 ++-- basis/tools/crossref/crossref.factor | 2 +- basis/ui/gadgets/worlds/worlds.factor | 2 +- basis/ui/pixel-formats/pixel-formats.factor | 2 +- .../listener/completion/completion.factor | 2 +- basis/ui/traverse/traverse.factor | 2 +- basis/unix/linux/proc/proc.factor | 2 +- core/alien/strings/strings.factor | 4 ++-- core/bootstrap/syntax.factor | 2 +- core/checksums/checksums.factor | 2 +- core/classes/tuple/parser/parser.factor | 2 +- core/classes/tuple/tuple-tests.factor | 4 ++-- core/classes/tuple/tuple.factor | 2 +- core/generic/generic-docs.factor | 6 ++--- core/generic/generic.factor | 2 +- core/generic/standard/standard-docs.factor | 2 +- core/generic/standard/standard-tests.factor | 8 +++---- core/generic/standard/standard.factor | 2 +- core/io/encodings/encodings.factor | 4 ++-- core/io/encodings/utf16/utf16.factor | 4 ++-- core/io/encodings/utf8/utf8.factor | 2 +- core/math/math.factor | 4 ++-- core/math/parser/parser.factor | 2 +- core/parser/parser-tests.factor | 2 +- core/sequences/sequences.factor | 2 +- core/slots/slots.factor | 4 ++-- core/syntax/syntax-docs.factor | 6 ++--- core/syntax/syntax.factor | 2 +- extra/cpu/arm/assembler/assembler.factor | 6 ++--- extra/cursors/cursors.factor | 6 ++--- extra/game/loop/loop.factor | 2 +- extra/game/models/loader/loader.factor | 2 +- extra/gml/types/types.factor | 4 ++-- extra/gpu/framebuffers/framebuffers.factor | 2 +- extra/gpu/render/render.factor | 14 +++++------ extra/gpu/textures/textures.factor | 10 ++++---- extra/graphviz/notation/notation.factor | 2 +- extra/monads/monads.factor | 6 ++--- extra/mongodb/driver/driver.factor | 2 +- extra/project-euler/215/215.factor | 4 ++-- extra/tools/dns/dns.factor | 2 +- extra/variants/variants.factor | 2 +- extra/zeromq/zeromq.factor | 4 ++-- unmaintained/ui/gadgets/layout/layout.factor | 4 ++-- 66 files changed, 122 insertions(+), 122 deletions(-) diff --git a/basis/calendar/calendar.factor b/basis/calendar/calendar.factor index 540b7f1940..7875712de6 100644 --- a/basis/calendar/calendar.factor +++ b/basis/calendar/calendar.factor @@ -228,7 +228,7 @@ M: number +second ( timestamp n -- timestamp ) PRIVATE> -GENERIC# time+ 1 ( time1 time2 -- time3 ) +GENERIC#: time+ 1 ( time1 time2 -- time3 ) M: timestamp time+ [ clone ] dip (time+) drop ; diff --git a/basis/compiler/cfg/gc-checks/gc-checks.factor b/basis/compiler/cfg/gc-checks/gc-checks.factor index 1bed3c2bea..db4f73e5fb 100644 --- a/basis/compiler/cfg/gc-checks/gc-checks.factor +++ b/basis/compiler/cfg/gc-checks/gc-checks.factor @@ -16,7 +16,7 @@ IN: compiler.cfg.gc-checks : blocks-with-gc ( cfg -- bbs ) post-order [ insert-gc-check? ] filter ; -GENERIC# gc-check-offsets* 1 ( call-index seen-allocation? insn n -- call-index seen-allocation? ) +GENERIC#: gc-check-offsets* 1 ( call-index seen-allocation? insn n -- call-index seen-allocation? ) :: gc-check-here ( call-index seen-allocation? insn insn-index -- call-index seen-allocation? ) seen-allocation? [ call-index , ] when diff --git a/basis/compiler/cfg/intrinsics/simd/backend/backend.factor b/basis/compiler/cfg/intrinsics/simd/backend/backend.factor index 9233e26885..89823fd15b 100644 --- a/basis/compiler/cfg/intrinsics/simd/backend/backend.factor +++ b/basis/compiler/cfg/intrinsics/simd/backend/backend.factor @@ -71,7 +71,7 @@ M: ##horizontal-shr-vector-imm insn-available? rep>> %horizontal-shr-vector-imm- : [vector-op-checked] ( #dup quot -- quot ) '[ _ ndup [ @ ] { } make dup [ insn-available? ] all? ] ; -GENERIC# >vector-op-cond 2 ( quot #pick #dup -- quotpair ) +GENERIC#: >vector-op-cond 2 ( quot #pick #dup -- quotpair ) M:: callable >vector-op-cond ( quot #pick #dup -- quotpair ) #dup quot [vector-op-checked] '[ 2drop @ ] #dup '[ % _ nnip ] diff --git a/basis/compiler/cfg/representations/coalescing/coalescing.factor b/basis/compiler/cfg/representations/coalescing/coalescing.factor index 2caa485045..3639c570c9 100644 --- a/basis/compiler/cfg/representations/coalescing/coalescing.factor +++ b/basis/compiler/cfg/representations/coalescing/coalescing.factor @@ -16,7 +16,7 @@ SYMBOL: components ] each ] simple-analysis ; -GENERIC# visit-insn 1 ( insn disjoint-set -- ) +GENERIC#: visit-insn 1 ( insn disjoint-set -- ) M: ##copy visit-insn [ [ dst>> ] [ src>> ] bi ] dip equate ; diff --git a/basis/compiler/tests/redefine16.factor b/basis/compiler/tests/redefine16.factor index 9bf1de3e32..effe18433e 100644 --- a/basis/compiler/tests/redefine16.factor +++ b/basis/compiler/tests/redefine16.factor @@ -4,8 +4,8 @@ IN: compiler.tests.redefine16 [ ] [ [ "blah" "compiler.tests.redefine16" lookup-word forget ] with-compilation-unit ] unit-test -[ ] [ "IN: compiler.tests.redefine16 GENERIC# blah 2 ( foo bar baz -- )" eval( -- ) ] unit-test +[ ] [ "IN: compiler.tests.redefine16 GENERIC#: blah 2 ( foo bar baz -- )" eval( -- ) ] unit-test [ ] [ "IN: compiler.tests.redefine16 USING: strings math arrays prettyprint ; M: string blah 1 + 3array . ;" eval( -- ) ] unit-test -[ ] [ "IN: compiler.tests.redefine16 GENERIC# blah 2 ( foo bar baz -- x )" eval( -- ) ] unit-test +[ ] [ "IN: compiler.tests.redefine16 GENERIC#: blah 2 ( foo bar baz -- x )" eval( -- ) ] unit-test [ ] [ [ "blah" "compiler.tests.redefine16" lookup-word forget ] with-compilation-unit ] unit-test diff --git a/basis/concurrency/mailboxes/mailboxes.factor b/basis/concurrency/mailboxes/mailboxes.factor index 5bd8d8719b..82ebe86318 100755 --- a/basis/concurrency/mailboxes/mailboxes.factor +++ b/basis/concurrency/mailboxes/mailboxes.factor @@ -40,7 +40,7 @@ M: mailbox mailbox-put : mailbox-peek ( mailbox -- obj ) data>> peek-back ; -GENERIC# mailbox-get-timeout 1 ( mailbox timeout -- obj ) +GENERIC#: mailbox-get-timeout 1 ( mailbox timeout -- obj ) M: mailbox mailbox-get-timeout block-if-empty data>> pop-back ; diff --git a/basis/cpu/x86/assembler/assembler.factor b/basis/cpu/x86/assembler/assembler.factor index 84ff473567..2d5b77fd73 100644 --- a/basis/cpu/x86/assembler/assembler.factor +++ b/basis/cpu/x86/assembler/assembler.factor @@ -61,7 +61,7 @@ M: indirect modifier M: register modifier drop 0b11 ; -GENERIC# n, 1 ( value n -- ) +GENERIC#: n, 1 ( value n -- ) M: integer n, >le % ; M: byte n, [ value>> ] dip n, ; @@ -214,7 +214,7 @@ M: operand POP { 0b000 f 0x8f } 1-operand ; : maybe-zero-extend ( reg imm -- reg' imm ) dup zero-extendable? [ [ 32-bit-version-of ] dip ] when ; -GENERIC# (MOV-I) 1 ( dst src -- ) +GENERIC#: (MOV-I) 1 ( dst src -- ) M: register (MOV-I) { @@ -273,7 +273,7 @@ M: operand CALL { 0b010 t 0xff } 1-operand ; goodbye GENERIC: foo ( x -- y ) GENERIC: bar ( a -- b ) -GENERIC# whoa 1 ( s t -- w ) +GENERIC#: whoa 1 ( s t -- w ) PROTOCOL: baz foo { bar 0 } { whoa 1 } ; : hello-test ( hello/goodbye -- array ) diff --git a/basis/delegate/delegate.factor b/basis/delegate/delegate.factor index e1c44d1efa..06d5283224 100644 --- a/basis/delegate/delegate.factor +++ b/basis/delegate/delegate.factor @@ -62,7 +62,7 @@ PREDICATE: consult-method < method M: consult-method reset-word [ call-next-method ] [ f "consultation" set-word-prop ] bi ; -GENERIC# (consult-method-quot) 2 ( consultation quot word -- object ) +GENERIC#: (consult-method-quot) 2 ( consultation quot word -- object ) M: consultation (consult-method-quot) '[ _ call _ execute ] nip ; diff --git a/basis/images/loader/loader.factor b/basis/images/loader/loader.factor index 1496ae00ae..00a501f810 100644 --- a/basis/images/loader/loader.factor +++ b/basis/images/loader/loader.factor @@ -22,7 +22,7 @@ PRIVATE> ! Image Decode -GENERIC# load-image* 1 ( obj class -- image ) +GENERIC#: load-image* 1 ( obj class -- image ) GENERIC: stream>image* ( stream class -- image ) diff --git a/basis/io/files/info/unix/unix.factor b/basis/io/files/info/unix/unix.factor index c0466cf3ba..a6e8a34561 100644 --- a/basis/io/files/info/unix/unix.factor +++ b/basis/io/files/info/unix/unix.factor @@ -111,7 +111,7 @@ M: unix stat>type ( stat -- type ) [ dup stat-mode ] 2dip [ bitor ] [ unmask ] if [ chmod ] unix-system-call drop ; -GENERIC# file-mode? 1 ( obj mask -- ? ) +GENERIC#: file-mode? 1 ( obj mask -- ? ) M: integer file-mode? mask? ; M: string file-mode? [ stat-mode ] dip mask? ; diff --git a/basis/io/sockets/sockets.factor b/basis/io/sockets/sockets.factor index 4cee6fb3a4..2654acf76d 100644 --- a/basis/io/sockets/sockets.factor +++ b/basis/io/sockets/sockets.factor @@ -16,7 +16,7 @@ IN: io.sockets { [ os unix? ] [ "unix.ffi" ] } } cond use-vocab >> -GENERIC# with-port 1 ( addrspec port -- addrspec ) +GENERIC#: with-port 1 ( addrspec port -- addrspec ) ! Addressing > ] 2bi ; -GENERIC# limit-stream 1 ( stream limit -- stream' ) +GENERIC#: limit-stream 1 ( stream limit -- stream' ) M: decoder limit-stream ( stream limit -- stream' ) '[ stream>> _ limit-stream ] [ code>> ] [ cr>> ] tri diff --git a/basis/json/writer/writer.factor b/basis/json/writer/writer.factor index 8e6e1784cf..4f91e7eb6a 100644 --- a/basis/json/writer/writer.factor +++ b/basis/json/writer/writer.factor @@ -22,7 +22,7 @@ SYMBOL: json-escape-unicode? f json-escape-unicode? set-global ! Writes the object out to a stream in JSON format -GENERIC# stream-json-print 1 ( obj stream -- ) +GENERIC#: stream-json-print 1 ( obj stream -- ) : json-print ( obj -- ) output-stream get stream-json-print ; diff --git a/basis/listener/listener.factor b/basis/listener/listener.factor index 12e8b1ebf5..46806b5404 100644 --- a/basis/listener/listener.factor +++ b/basis/listener/listener.factor @@ -8,7 +8,7 @@ vocabs.parser ; IN: listener GENERIC: stream-read-quot ( stream -- quot/f ) -GENERIC# prompt. 1 ( stream prompt -- ) +GENERIC#: prompt. 1 ( stream prompt -- ) : prompt ( -- str ) manifest get current-vocab>> [ name>> "IN: " prepend ] [ "" ] if* diff --git a/basis/locals/locals-tests.factor b/basis/locals/locals-tests.factor index 228638b5b7..d9edb6bf0a 100644 --- a/basis/locals/locals-tests.factor +++ b/basis/locals/locals-tests.factor @@ -103,7 +103,7 @@ write-test-2 "q" set GENERIC: lambda-generic ( a b -- c ) -GENERIC# lambda-generic-1 1 ( a b -- c ) +GENERIC#: lambda-generic-1 1 ( a b -- c ) M:: integer lambda-generic-1 ( a b -- c ) a b * ; @@ -112,7 +112,7 @@ M:: string lambda-generic-1 ( a b -- c ) M:: integer lambda-generic ( a b -- c ) a b lambda-generic-1 ; -GENERIC# lambda-generic-2 1 ( a b -- c ) +GENERIC#: lambda-generic-2 1 ( a b -- c ) M:: integer lambda-generic-2 ( a b -- c ) a CHAR: x b lambda-generic ; diff --git a/basis/math/floats/env/env.factor b/basis/math/floats/env/env.factor index 3d281b06c8..4f8d01a460 100644 --- a/basis/math/floats/env/env.factor +++ b/basis/math/floats/env/env.factor @@ -67,16 +67,16 @@ HOOK: (fp-env-registers) cpu ( -- registers ) GENERIC: (set-fp-env-register) ( fp-env -- ) GENERIC: (get-exception-flags) ( fp-env -- exceptions ) -GENERIC# (set-exception-flags) 1 ( fp-env exceptions -- fp-env ) +GENERIC#: (set-exception-flags) 1 ( fp-env exceptions -- fp-env ) GENERIC: (get-fp-traps) ( fp-env -- exceptions ) -GENERIC# (set-fp-traps) 1 ( fp-env exceptions -- fp-env ) +GENERIC#: (set-fp-traps) 1 ( fp-env exceptions -- fp-env ) GENERIC: (get-rounding-mode) ( fp-env -- mode ) -GENERIC# (set-rounding-mode) 1 ( fp-env mode -- fp-env ) +GENERIC#: (set-rounding-mode) 1 ( fp-env mode -- fp-env ) GENERIC: (get-denormal-mode) ( fp-env -- mode ) -GENERIC# (set-denormal-mode) 1 ( fp-env mode -- fp-env ) +GENERIC#: (set-denormal-mode) 1 ( fp-env mode -- fp-env ) : change-fp-env-registers ( quot -- ) (fp-env-registers) swap [ (set-fp-env-register) ] compose each ; inline diff --git a/basis/math/functions/functions.factor b/basis/math/functions/functions.factor index ba51876d15..ce061ae4dc 100644 --- a/basis/math/functions/functions.factor +++ b/basis/math/functions/functions.factor @@ -32,7 +32,7 @@ M: real sqrt : (^n) ( z w -- z^w ) dup fixnum? [ (^fixnum) ] [ (^bignum) ] if ; inline -GENERIC# ^n 1 ( z w -- z^w ) foldable +GENERIC#: ^n 1 ( z w -- z^w ) foldable M: fixnum ^n (^n) ; @@ -168,7 +168,7 @@ M: integer frexp DEFER: copysign -GENERIC# ldexp 1 ( x exp -- y ) +GENERIC#: ldexp 1 ( x exp -- y ) M: float ldexp over fp-special? [ over zero? ] unless* [ drop ] [ diff --git a/basis/math/vectors/vectors.factor b/basis/math/vectors/vectors.factor index b4df541505..8ae3cc4fbf 100644 --- a/basis/math/vectors/vectors.factor +++ b/basis/math/vectors/vectors.factor @@ -9,25 +9,25 @@ IN: math.vectors GENERIC: vneg ( v -- w ) M: object vneg [ neg ] map ; inline -GENERIC# v+n 1 ( v n -- w ) +GENERIC#: v+n 1 ( v n -- w ) M: object v+n [ + ] curry map ; inline GENERIC: n+v ( n v -- w ) M: object n+v [ + ] with map ; inline -GENERIC# v-n 1 ( v n -- w ) +GENERIC#: v-n 1 ( v n -- w ) M: object v-n [ - ] curry map ; inline GENERIC: n-v ( n v -- w ) M: object n-v [ - ] with map ; inline -GENERIC# v*n 1 ( v n -- w ) +GENERIC#: v*n 1 ( v n -- w ) M: object v*n [ * ] curry map ; inline GENERIC: n*v ( n v -- w ) M: object n*v [ * ] with map ; inline -GENERIC# v/n 1 ( v n -- w ) +GENERIC#: v/n 1 ( v n -- w ) M: object v/n [ / ] curry map ; inline GENERIC: n/v ( n v -- w ) @@ -116,31 +116,31 @@ M: object vbitxor [ bitxor ] 2map ; inline GENERIC: vbitnot ( v -- w ) M: object vbitnot [ bitnot ] map ; inline -GENERIC# vbroadcast 1 ( u n -- v ) +GENERIC#: vbroadcast 1 ( u n -- v ) M:: object vbroadcast ( u n -- v ) u length n u nth u like ; inline -GENERIC# vshuffle-elements 1 ( v perm -- w ) +GENERIC#: vshuffle-elements 1 ( v perm -- w ) M: object vshuffle-elements over length 0 pad-tail swap [ '[ _ nth ] ] keep map-as ; inline -GENERIC# vshuffle2-elements 1 ( u v perm -- w ) +GENERIC#: vshuffle2-elements 1 ( u v perm -- w ) M: object vshuffle2-elements [ append ] dip vshuffle-elements ; inline -GENERIC# vshuffle-bytes 1 ( v perm -- w ) +GENERIC#: vshuffle-bytes 1 ( v perm -- w ) GENERIC: vshuffle ( v perm -- w ) M: array vshuffle ( v perm -- w ) vshuffle-elements ; inline -GENERIC# vlshift 1 ( v n -- w ) +GENERIC#: vlshift 1 ( v n -- w ) M: object vlshift '[ _ shift ] map ; inline -GENERIC# vrshift 1 ( v n -- w ) +GENERIC#: vrshift 1 ( v n -- w ) M: object vrshift neg '[ _ shift ] map ; inline -GENERIC# hlshift 1 ( v n -- w ) -GENERIC# hrshift 1 ( v n -- w ) +GENERIC#: hlshift 1 ( v n -- w ) +GENERIC#: hrshift 1 ( v n -- w ) GENERIC: (vmerge-head) ( u v -- h ) M: object (vmerge-head) over length 2 /i '[ _ head-slice ] bi@ [ zip ] keep concat-as ; inline diff --git a/basis/random/random.factor b/basis/random/random.factor index d1ee076a1f..37e05bb6aa 100644 --- a/basis/random/random.factor +++ b/basis/random/random.factor @@ -14,7 +14,7 @@ SYMBOL: system-random-generator SYMBOL: secure-random-generator SYMBOL: random-generator -GENERIC# seed-random 1 ( obj seed -- obj ) +GENERIC#: seed-random 1 ( obj seed -- obj ) GENERIC: random-32* ( obj -- n ) GENERIC: random-bytes* ( n obj -- byte-array ) @@ -76,7 +76,7 @@ PRIVATE> [ 32 shift obj random-32* + ] [ 32 + ] [ 32 - ] tri* ] while drop [ m * ] [ neg shift ] bi* ; inline -GENERIC# (random-integer) 1 ( m obj -- n ) +GENERIC#: (random-integer) 1 ( m obj -- n ) M: fixnum (random-integer) ( m obj -- n ) random-integer-loop ; M: bignum (random-integer) ( m obj -- n ) random-integer-loop ; diff --git a/basis/regexp/classes/classes.factor b/basis/regexp/classes/classes.factor index e50d7bfccb..515747dbe6 100644 --- a/basis/regexp/classes/classes.factor +++ b/basis/regexp/classes/classes.factor @@ -274,7 +274,7 @@ M: primitive-class class-member? TUPLE: condition question yes no ; C: condition -GENERIC# answer 2 ( class from to -- new-class ) +GENERIC#: answer 2 ( class from to -- new-class ) M:: object answer ( class from to -- new-class ) class from = to class ? ; @@ -291,7 +291,7 @@ M: or-class answer M: not-class answer [ class>> ] 2dip answer ; -GENERIC# substitute 1 ( class from to -- new-class ) +GENERIC#: substitute 1 ( class from to -- new-class ) M: object substitute answer ; M: not-class substitute [ ] bi@ answer ; diff --git a/basis/tools/annotations/annotations.factor b/basis/tools/annotations/annotations.factor index dd71e63ffb..56636e2417 100644 --- a/basis/tools/annotations/annotations.factor +++ b/basis/tools/annotations/annotations.factor @@ -42,7 +42,7 @@ PREDICATE: annotated < word "unannotated-def" word-prop >boolean ; [ check-annotate-twice ] dip [ dup def>> 2dup "unannotated-def" set-word-prop ] dip ; -GENERIC# (annotate) 1 ( word quot -- ) +GENERIC#: (annotate) 1 ( word quot -- ) M: generic (annotate) '[ _ (annotate) ] annotate-generic ; @@ -51,7 +51,7 @@ M: word (annotate) prepare-annotate call( old -- new ) define ; -GENERIC# (deep-annotate) 1 ( word quot -- ) +GENERIC#: (deep-annotate) 1 ( word quot -- ) M: generic (deep-annotate) '[ _ (deep-annotate) ] annotate-generic ; diff --git a/basis/tools/crossref/crossref.factor b/basis/tools/crossref/crossref.factor index bddfd77c43..c7098fc366 100644 --- a/basis/tools/crossref/crossref.factor +++ b/basis/tools/crossref/crossref.factor @@ -15,7 +15,7 @@ GENERIC: uses ( defspec -- seq ) SYMBOL: visited -GENERIC# quot-uses 1 ( obj set -- ) +GENERIC#: quot-uses 1 ( obj set -- ) M: object quot-uses 2drop ; diff --git a/basis/ui/gadgets/worlds/worlds.factor b/basis/ui/gadgets/worlds/worlds.factor index 908adb0e23..a4d092f0aa 100644 --- a/basis/ui/gadgets/worlds/worlds.factor +++ b/basis/ui/gadgets/worlds/worlds.factor @@ -129,7 +129,7 @@ M: world request-focus-on ( child gadget -- ) [ T{ rgba f 0.0 0.0 0.0 0.0 } ] [ T{ rgba f 1.0 1.0 1.0 1.0 } ] if ; -GENERIC# apply-world-attributes 1 ( world attributes -- world ) +GENERIC#: apply-world-attributes 1 ( world attributes -- world ) M: world apply-world-attributes { diff --git a/basis/ui/pixel-formats/pixel-formats.factor b/basis/ui/pixel-formats/pixel-formats.factor index a0aedc09f1..a67786eb35 100644 --- a/basis/ui/pixel-formats/pixel-formats.factor +++ b/basis/ui/pixel-formats/pixel-formats.factor @@ -64,4 +64,4 @@ M: pixel-format dispose* GENERIC: world-pixel-format-attributes ( world -- attributes ) -GENERIC# check-world-pixel-format 1 ( world pixel-format -- ) +GENERIC#: check-world-pixel-format 1 ( world pixel-format -- ) diff --git a/basis/ui/tools/listener/completion/completion.factor b/basis/ui/tools/listener/completion/completion.factor index 8b623f04b1..8054ed75e5 100644 --- a/basis/ui/tools/listener/completion/completion.factor +++ b/basis/ui/tools/listener/completion/completion.factor @@ -126,7 +126,7 @@ M: object completion-string present ; M: method completion-string method-completion-string ; -GENERIC# accept-completion-hook 1 ( item popup -- ) +GENERIC#: accept-completion-hook 1 ( item popup -- ) : insert-completion ( item popup -- ) [ completion-string ] [ completion-loc/doc/elt ] bi* set-elt-string ; diff --git a/basis/ui/traverse/traverse.factor b/basis/ui/traverse/traverse.factor index d5e51d5804..5e7c8e7cf7 100644 --- a/basis/ui/traverse/traverse.factor +++ b/basis/ui/traverse/traverse.factor @@ -89,7 +89,7 @@ M: node gadget-text* : gadget-at-path ( parent path -- gadget ) [ swap nth-gadget ] each ; -GENERIC# leaves* 1 ( tree set -- ) +GENERIC#: leaves* 1 ( tree set -- ) M: node leaves* [ children>> ] dip leaves* ; diff --git a/basis/unix/linux/proc/proc.factor b/basis/unix/linux/proc/proc.factor index e05eb37744..f952982601 100644 --- a/basis/unix/linux/proc/proc.factor +++ b/basis/unix/linux/proc/proc.factor @@ -278,7 +278,7 @@ TUPLE: proc-uptime up idle ; ! /proc/pid/* -GENERIC# proc-pid-path 1 ( object string -- path ) +GENERIC#: proc-pid-path 1 ( object string -- path ) M: integer proc-pid-path ( pid string -- path ) [ "/proc/" ] 2dip diff --git a/core/alien/strings/strings.factor b/core/alien/strings/strings.factor index b5d92e02a0..74fdfb5637 100644 --- a/core/alien/strings/strings.factor +++ b/core/alien/strings/strings.factor @@ -7,7 +7,7 @@ namespaces sequences sequences.private strings strings.private system system.private ; IN: alien.strings -GENERIC# alien>string 1 ( c-ptr encoding -- string/f ) +GENERIC#: alien>string 1 ( c-ptr encoding -- string/f ) M: c-ptr alien>string [ ] [ ] bi* @@ -24,7 +24,7 @@ ERROR: invalid-c-string string ; : check-string ( string -- ) 0 over member-eq? [ invalid-c-string ] [ drop ] if ; -GENERIC# string>alien 1 ( string encoding -- byte-array ) +GENERIC#: string>alien 1 ( string encoding -- byte-array ) M: c-ptr string>alien drop ; diff --git a/core/bootstrap/syntax.factor b/core/bootstrap/syntax.factor index f2fef33f7b..b5e2fcf8d4 100644 --- a/core/bootstrap/syntax.factor +++ b/core/bootstrap/syntax.factor @@ -20,7 +20,7 @@ IN: bootstrap.syntax "DEFER:" "ERROR:" "FORGET:" - "GENERIC#" + "GENERIC#:" "GENERIC:" "HOOK:" "H{" diff --git a/core/checksums/checksums.factor b/core/checksums/checksums.factor index ca849e1b87..c5fc5f7058 100644 --- a/core/checksums/checksums.factor +++ b/core/checksums/checksums.factor @@ -35,7 +35,7 @@ M: checksum-state clone new BV{ } clone >>bytes ; GENERIC: initialize-checksum-state ( checksum -- checksum-state ) -GENERIC# add-checksum-bytes 1 ( checksum-state data -- checksum-state ) +GENERIC#: add-checksum-bytes 1 ( checksum-state data -- checksum-state ) GENERIC: get-checksum ( checksum-state -- value ) : with-checksum-state ( ..a checksum quot: ( ..a checksum-state -- ..b ) -- ..b ) diff --git a/core/classes/tuple/parser/parser.factor b/core/classes/tuple/parser/parser.factor index 90a34ae860..08b57a747b 100644 --- a/core/classes/tuple/parser/parser.factor +++ b/core/classes/tuple/parser/parser.factor @@ -91,7 +91,7 @@ ERROR: bad-slot-name class slot ; : parse-slot-values ( class slots -- values ) [ (parse-slot-values) ] { } make ; -GENERIC# boa>object 1 ( class slots -- tuple ) +GENERIC#: boa>object 1 ( class slots -- tuple ) M: tuple-class boa>object swap slots>tuple ; diff --git a/core/classes/tuple/tuple-tests.factor b/core/classes/tuple/tuple-tests.factor index 0c1719c55d..50a608ed1d 100644 --- a/core/classes/tuple/tuple-tests.factor +++ b/core/classes/tuple/tuple-tests.factor @@ -139,8 +139,8 @@ M: integer forget-robustness-generic ; ] with-compilation-unit ! rapido found this one -GENERIC# m1 0 ( s n -- n ) -GENERIC# m2 1 ( s n -- v ) +GENERIC#: m1 0 ( s n -- n ) +GENERIC#: m2 1 ( s n -- v ) TUPLE: t1 ; diff --git a/core/classes/tuple/tuple.factor b/core/classes/tuple/tuple.factor index 1f5ce09bcb..9c84375ceb 100644 --- a/core/classes/tuple/tuple.factor +++ b/core/classes/tuple/tuple.factor @@ -277,7 +277,7 @@ M: tuple-class update-class dup final-class? [ bad-superclass ] when dup class? [ bad-superclass ] unless drop ; -GENERIC# (define-tuple-class) 2 ( class superclass slots -- ) +GENERIC#: (define-tuple-class) 2 ( class superclass slots -- ) : thrower-effect ( slots -- effect ) [ name>> ] map { "*" } ; diff --git a/core/generic/generic-docs.factor b/core/generic/generic-docs.factor index 0dc143d6d1..be247856bc 100644 --- a/core/generic/generic-docs.factor +++ b/core/generic/generic-docs.factor @@ -61,7 +61,7 @@ ARTICLE: "method-combination" "Custom method combination" "A table of built-in method combination defining words, and the method combinations themselves:" { $table { { $link POSTPONE: GENERIC: } { $link standard-combination } } - { { $link POSTPONE: GENERIC# } { $link standard-combination } } + { { $link POSTPONE: GENERIC#: } { $link standard-combination } } { { $link POSTPONE: HOOK: } { $link hook-combination } } { { $link POSTPONE: MATH: } { $link math-combination } } } @@ -93,7 +93,7 @@ $nl "Generic words which dispatch on the object at the top of the stack:" { $subsections POSTPONE: GENERIC: } "A method combination which dispatches on a specified stack position:" -{ $subsections POSTPONE: GENERIC# } +{ $subsections POSTPONE: GENERIC#: } "A method combination which dispatches on the value of a variable at the time the generic word is called:" { $subsections POSTPONE: HOOK: } "A method combination which dispatches on a pair of stack values, which must be numbers, and upgrades both to the same type of number:" @@ -114,7 +114,7 @@ ABOUT: "generic" HELP: generic { $class-description "The class of generic words, documented in " { $link "generic" } "." } ; -{ generic define-generic define-simple-generic POSTPONE: GENERIC: POSTPONE: GENERIC# POSTPONE: MATH: POSTPONE: HOOK: } related-words +{ generic define-generic define-simple-generic POSTPONE: GENERIC: POSTPONE: GENERIC#: POSTPONE: MATH: POSTPONE: HOOK: } related-words HELP: make-generic { $values { "word" generic } } diff --git a/core/generic/generic.factor b/core/generic/generic.factor index c861f7c54b..65fbb300f4 100644 --- a/core/generic/generic.factor +++ b/core/generic/generic.factor @@ -186,7 +186,7 @@ M: method forget* [ call-next-method ] bi ] if ; -GENERIC# check-combination-effect 1 ( combination effect -- ) +GENERIC#: check-combination-effect 1 ( combination effect -- ) M: object check-combination-effect 2drop ; diff --git a/core/generic/standard/standard-docs.factor b/core/generic/standard/standard-docs.factor index 13e4554b5a..b69543f1c5 100644 --- a/core/generic/standard/standard-docs.factor +++ b/core/generic/standard/standard-docs.factor @@ -10,7 +10,7 @@ HELP: standard-combination { $examples "A generic word for append strings and characters to a sequence, dispatching on the object underneath the top of the stack:" { $code - "GENERIC# build-string 1 ( elt str -- )" + "GENERIC#: build-string 1 ( elt str -- )" "M: string build-string swap push-all ;" "M: integer build-string push ;" } diff --git a/core/generic/standard/standard-tests.factor b/core/generic/standard/standard-tests.factor index ac9f0efe09..bc48c2f2bd 100644 --- a/core/generic/standard/standard-tests.factor +++ b/core/generic/standard/standard-tests.factor @@ -194,7 +194,7 @@ M: byte-array small-lo-tag drop "byte-array" ; ] must-fail { } [ "IN: generic.standard.tests GENERIC: unhappy ( x -- x )" eval( -- ) ] unit-test -GENERIC# complex-combination 1 ( a b -- c ) +GENERIC#: complex-combination 1 ( a b -- c ) M: string complex-combination drop ; M: object complex-combination nip ; @@ -368,13 +368,13 @@ M: c funky* "c" , call-next-method ; [ "IN: generic.standard.tests GENERIC: broken-generic ( -- )" eval( -- ) ] [ error>> bad-dispatch-position? ] must-fail-with -[ "IN: generic.standard.tests GENERIC# broken-generic# -1 ( a -- b )" eval( -- ) ] +[ "IN: generic.standard.tests GENERIC#: broken-generic# -1 ( a -- b )" eval( -- ) ] [ error>> bad-dispatch-position? ] must-fail-with -[ "IN: generic.standard.tests GENERIC# broken-generic# 1 ( a -- b )" eval( -- ) ] +[ "IN: generic.standard.tests GENERIC#: broken-generic# 1 ( a -- b )" eval( -- ) ] [ error>> bad-dispatch-position? ] must-fail-with -[ "IN: generic.standard.tests GENERIC# broken-generic# 2/3 ( a b c -- )" eval( -- ) ] +[ "IN: generic.standard.tests GENERIC#: broken-generic# 2/3 ( a b c -- )" eval( -- ) ] [ error>> bad-dispatch-position? ] must-fail-with diff --git a/core/generic/standard/standard.factor b/core/generic/standard/standard.factor index e097b2a552..45cac2fa12 100644 --- a/core/generic/standard/standard.factor +++ b/core/generic/standard/standard.factor @@ -63,6 +63,6 @@ M: standard-combination inline-cache-quots M: standard-combination mega-cache-quot combination get #>> make-empty-cache \ mega-cache-lookup [ ] 4sequence ; -M: standard-generic definer drop \ GENERIC# f ; +M: standard-generic definer drop \ GENERIC#: f ; M: simple-generic definer drop \ GENERIC: f ; diff --git a/core/io/encodings/encodings.factor b/core/io/encodings/encodings.factor index 054fa5915f..fc1d24375e 100644 --- a/core/io/encodings/encodings.factor +++ b/core/io/encodings/encodings.factor @@ -205,7 +205,7 @@ INSTANCE: encoder plain-writer PRIVATE> -GENERIC# re-encode 1 ( stream encoding -- newstream ) +GENERIC#: re-encode 1 ( stream encoding -- newstream ) M: object re-encode ; @@ -218,7 +218,7 @@ M: encoder re-encode [ stream>> ] dip re-encode ; [ [ output-stream get ] dip re-encode ] dip with-output-stream* ; inline -GENERIC# re-decode 1 ( stream encoding -- newstream ) +GENERIC#: re-decode 1 ( stream encoding -- newstream ) M: object re-decode ; diff --git a/core/io/encodings/utf16/utf16.factor b/core/io/encodings/utf16/utf16.factor index 2e1b2f5605..b18db487b2 100644 --- a/core/io/encodings/utf16/utf16.factor +++ b/core/io/encodings/utf16/utf16.factor @@ -114,7 +114,7 @@ M: utf16le encode-char ( char stream encoding -- ) : ascii-string>utf16be ( string stream -- ) [ 1 swap ascii-string>utf16-byte-array ] dip stream-write ; inline -GENERIC# encode-string-utf16le 1 ( string stream -- ) +GENERIC#: encode-string-utf16le 1 ( string stream -- ) M: object encode-string-utf16le [ char>utf16le ] curry each ; inline @@ -126,7 +126,7 @@ M: string encode-string-utf16le M: utf16le encode-string drop encode-string-utf16le ; -GENERIC# encode-string-utf16be 1 ( string stream -- ) +GENERIC#: encode-string-utf16be 1 ( string stream -- ) M: object encode-string-utf16be [ char>utf16be ] curry each ; inline diff --git a/core/io/encodings/utf8/utf8.factor b/core/io/encodings/utf8/utf8.factor index 4979daad15..0ac41b5812 100644 --- a/core/io/encodings/utf8/utf8.factor +++ b/core/io/encodings/utf8/utf8.factor @@ -84,7 +84,7 @@ M: utf8 decode-until (decode-until) ; M: utf8 encode-char drop char>utf8 ; -GENERIC# encode-string-utf8 1 ( string stream -- ) +GENERIC#: encode-string-utf8 1 ( string stream -- ) M: object encode-string-utf8 [ char>utf8 ] curry each ; inline diff --git a/core/math/math.factor b/core/math/math.factor index 0e556d6109..c70a165673 100644 --- a/core/math/math.factor +++ b/core/math/math.factor @@ -119,9 +119,9 @@ MATH: /mod ( x y -- z w ) foldable MATH: bitand ( x y -- z ) foldable MATH: bitor ( x y -- z ) foldable MATH: bitxor ( x y -- z ) foldable -GENERIC# shift 1 ( x n -- y ) foldable +GENERIC#: shift 1 ( x n -- y ) foldable GENERIC: bitnot ( x -- y ) foldable -GENERIC# bit? 1 ( x n -- ? ) foldable +GENERIC#: bit? 1 ( x n -- ? ) foldable GENERIC: abs ( x -- y ) foldable diff --git a/core/math/parser/parser.factor b/core/math/parser/parser.factor index 49ebf8383b..5a683d921d 100644 --- a/core/math/parser/parser.factor +++ b/core/math/parser/parser.factor @@ -464,7 +464,7 @@ M: fixnum (positive>dec) PRIVATE> -GENERIC# >base 1 ( n radix -- str ) +GENERIC#: >base 1 ( n radix -- str ) : number>string ( n -- str ) 10 >base ; inline diff --git a/core/parser/parser-tests.factor b/core/parser/parser-tests.factor index 3245608ab7..58ea85917b 100644 --- a/core/parser/parser-tests.factor +++ b/core/parser/parser-tests.factor @@ -438,7 +438,7 @@ DEFER: foo { "IN: parser.tests" "USING: math arrays kernel ;" - "GENERIC# change-combination 1 ( obj a -- b )" + "GENERIC#: change-combination 1 ( obj a -- b )" "M: integer change-combination 2drop 1 ;" "M: array change-combination 2drop 2 ;" } "\n" join "change-combination-test" parse-stream drop diff --git a/core/sequences/sequences.factor b/core/sequences/sequences.factor index 392ed174e6..055392e882 100644 --- a/core/sequences/sequences.factor +++ b/core/sequences/sequences.factor @@ -51,7 +51,7 @@ M: sequence shorten 2dup length < [ set-length ] [ 2drop ] if ; inline ERROR: bounds-error index seq ; -GENERIC# bounds-check? 1 ( n seq -- ? ) +GENERIC#: bounds-check? 1 ( n seq -- ? ) M: integer bounds-check? ( n seq -- ? ) dupd length < [ 0 >= ] [ drop f ] if ; inline diff --git a/core/slots/slots.factor b/core/slots/slots.factor index 5488f03bd6..d0a9459af8 100644 --- a/core/slots/slots.factor +++ b/core/slots/slots.factor @@ -33,7 +33,7 @@ PREDICATE: writer-method < method "writing" word-prop >boolean ; [ 2drop make-inline ] 3tri ; -GENERIC# reader-quot 1 ( class slot-spec -- quot ) +GENERIC#: reader-quot 1 ( class slot-spec -- quot ) M: object reader-quot nip [ @@ -87,7 +87,7 @@ M: object instance-check-quot \ unless , ] [ ] make ; -GENERIC# writer-quot 1 ( class slot-spec -- quot ) +GENERIC#: writer-quot 1 ( class slot-spec -- quot ) M: object writer-quot nip diff --git a/core/syntax/syntax-docs.factor b/core/syntax/syntax-docs.factor index a4f93aea50..a61fd1c4d0 100644 --- a/core/syntax/syntax-docs.factor +++ b/core/syntax/syntax-docs.factor @@ -669,14 +669,14 @@ HELP: GENERIC: { $values { "word" "a new word to define" } } { $description "Defines a new generic word in the current vocabulary. Initially, it contains no methods, and thus will throw a " { $link no-method } " error when called." } ; -HELP: GENERIC# -{ $syntax "GENERIC# word n ( stack -- effect )" } +HELP: GENERIC#: +{ $syntax "GENERIC#: word n ( stack -- effect )" } { $values { "word" "a new word to define" } { "n" "the stack position to dispatch on" } } { $description "Defines a new generic word which dispatches on the " { $snippet "n" } "th most element from the top of the stack in the current vocabulary. Initially, it contains no methods, and thus will throw a " { $link no-method } " error when called." } { $notes "The following two definitions are equivalent:" { $code "GENERIC: foo ( obj -- )" } - { $code "GENERIC# foo 0 ( obj -- )" } + { $code "GENERIC#: foo 0 ( obj -- )" } } ; HELP: MATH: diff --git a/core/syntax/syntax.factor b/core/syntax/syntax.factor index bd5baa3c40..0e21d311a5 100644 --- a/core/syntax/syntax.factor +++ b/core/syntax/syntax.factor @@ -164,7 +164,7 @@ IN: bootstrap.syntax [ simple-combination ] (GENERIC:) ] define-core-syntax - "GENERIC#" [ + "GENERIC#:" [ [ scan-number ] (GENERIC:) ] define-core-syntax diff --git a/extra/cpu/arm/assembler/assembler.factor b/extra/cpu/arm/assembler/assembler.factor index cd04754387..cd4f77ada4 100644 --- a/extra/cpu/arm/assembler/assembler.factor +++ b/extra/cpu/arm/assembler/assembler.factor @@ -84,7 +84,7 @@ SYMBOL: cond-code : insn ( bitspec -- ) bitfield (insn) ; inline ! Branching instructions -GENERIC# (B) 1 ( target l -- ) +GENERIC#: (B) 1 ( target l -- ) M: integer (B) { 24 { 1 25 } { 0 26 } { 1 27 } 0 } insn ; @@ -109,7 +109,7 @@ PRIVATE> : sinsn ( bitspec -- ) bitfield S> [ 20 2^ bitor ] when (insn) ; inline -GENERIC# shift-imm/reg 2 ( shift-imm/Rs Rm shift -- n ) +GENERIC#: shift-imm/reg 2 ( shift-imm/Rs Rm shift -- n ) M: integer shift-imm/reg ( shift-imm Rm shift -- n ) { { 0 4 } 5 { register 0 } 7 } bitfield ; @@ -294,7 +294,7 @@ SYMBOL: have-BLX? ( cursor cursor -- ? ) @@ -391,7 +391,7 @@ M: pusher-cursor set-cursor-value growable>> push ; inline : new-growable-cursor ( begin end exemplar -- cursor result ) [ swap cursor-distance-hint ] dip new-resizable [ ] keep ; inline -GENERIC# new-sequence-cursor 1 ( begin end exemplar -- cursor result ) +GENERIC#: new-sequence-cursor 1 ( begin end exemplar -- cursor result ) M: random-access-cursor new-sequence-cursor [ swap cursor-distance ] dip new-sequence [ begin-cursor ] keep ; inline diff --git a/extra/game/loop/loop.factor b/extra/game/loop/loop.factor index 29e649f6f3..5b2dceeadb 100755 --- a/extra/game/loop/loop.factor +++ b/extra/game/loop/loop.factor @@ -38,7 +38,7 @@ TUPLE: game-loop-error-state error game-loop ; [ draw-timer>> iteration-start-nanos>> nano-count swap - ] [ tick-interval-nanos>> ] bi /f 1.0 min ; -GENERIC# record-benchmarking 1 ( loop quot -- ) +GENERIC#: record-benchmarking 1 ( loop quot -- ) M: object record-benchmarking call( loop -- ) ; diff --git a/extra/game/models/loader/loader.factor b/extra/game/models/loader/loader.factor index b065bd843d..2589f0b6f4 100644 --- a/extra/game/models/loader/loader.factor +++ b/extra/game/models/loader/loader.factor @@ -26,7 +26,7 @@ types [ H{ } clone ] initialize PRIVATE> -GENERIC# load-models* 2 ( obj encoding class -- models ) +GENERIC#: load-models* 2 ( obj encoding class -- models ) GENERIC: stream>models ( stream class -- models ) diff --git a/extra/gml/types/types.factor b/extra/gml/types/types.factor index a4de9d3aef..b5660311b8 100644 --- a/extra/gml/types/types.factor +++ b/extra/gml/types/types.factor @@ -23,12 +23,12 @@ INSTANCE: proc sequence : wrap ( n seq -- n seq ) [ length rem ] keep ; inline -GENERIC# (gml-get) 1 ( collection key -- elt ) +GENERIC#: (gml-get) 1 ( collection key -- elt ) M: sequence (gml-get) swap wrap nth ; M: hashtable (gml-get) of ; -GENERIC# (gml-put) 2 ( collection key elt -- ) +GENERIC#: (gml-put) 2 ( collection key elt -- ) M:: sequence (gml-put) ( collection key elt -- ) elt key collection wrap set-nth ; diff --git a/extra/gpu/framebuffers/framebuffers.factor b/extra/gpu/framebuffers/framebuffers.factor index 41f3f44413..e5617f5118 100644 --- a/extra/gpu/framebuffers/framebuffers.factor +++ b/extra/gpu/framebuffers/framebuffers.factor @@ -141,7 +141,7 @@ GENERIC: framebuffer-handle ( framebuffer -- handle ) M: system-framebuffer framebuffer-handle drop 0 ; M: framebuffer framebuffer-handle handle>> ; -GENERIC# allocate-framebuffer-attachment 1 ( framebuffer-attachment dim -- ) +GENERIC#: allocate-framebuffer-attachment 1 ( framebuffer-attachment dim -- ) M: texture-attachment allocate-framebuffer-attachment [ [ texture>> ] [ level>> ] bi ] dip f allocate-texture ; diff --git a/extra/gpu/render/render.factor b/extra/gpu/render/render.factor index 6e4564e06c..81143ecdd7 100755 --- a/extra/gpu/render/render.factor +++ b/extra/gpu/render/render.factor @@ -139,7 +139,7 @@ ERROR: invalid-uniform-type uniform ; GENERIC: render-vertex-indexes ( primitive-mode vertex-indexes -- ) -GENERIC# render-vertex-indexes-instanced 1 ( primitive-mode vertex-indexes instances -- ) +GENERIC#: render-vertex-indexes-instanced 1 ( primitive-mode vertex-indexes instances -- ) GENERIC: gl-array-element-type ( array -- type ) M: uchar-array gl-array-element-type drop GL_UNSIGNED_BYTE ; inline @@ -264,14 +264,14 @@ GENERIC: >uniform-int-array ( sequence -- c-array ) GENERIC: >uniform-uint-array ( sequence -- c-array ) GENERIC: >uniform-float-array ( sequence -- c-array ) -GENERIC# >uniform-bvec-array 1 ( sequence dim -- c-array ) -GENERIC# >uniform-ivec-array 1 ( sequence dim -- c-array ) -GENERIC# >uniform-uvec-array 1 ( sequence dim -- c-array ) -GENERIC# >uniform-vec-array 1 ( sequence dim -- c-array ) +GENERIC#: >uniform-bvec-array 1 ( sequence dim -- c-array ) +GENERIC#: >uniform-ivec-array 1 ( sequence dim -- c-array ) +GENERIC#: >uniform-uvec-array 1 ( sequence dim -- c-array ) +GENERIC#: >uniform-vec-array 1 ( sequence dim -- c-array ) -GENERIC# >uniform-matrix 2 ( sequence cols rows -- c-array ) +GENERIC#: >uniform-matrix 2 ( sequence cols rows -- c-array ) -GENERIC# >uniform-matrix-array 2 ( sequence cols rows -- c-array ) +GENERIC#: >uniform-matrix-array 2 ( sequence cols rows -- c-array ) GENERIC: bind-uniform-bvec2 ( index sequence -- ) GENERIC: bind-uniform-bvec3 ( index sequence -- ) diff --git a/extra/gpu/textures/textures.factor b/extra/gpu/textures/textures.factor index 9d3b66df0c..9e171d604b 100644 --- a/extra/gpu/textures/textures.factor +++ b/extra/gpu/textures/textures.factor @@ -203,7 +203,7 @@ M: cube-map-face texture-data-gl-target PRIVATE> -GENERIC# allocate-texture 3 ( tdt level dim data -- ) +GENERIC#: allocate-texture 3 ( tdt level dim data -- ) M: texture-1d-data-target allocate-texture ( tdt level dim data -- ) [ ] [ glTexImage1D ] (allocate-texture) ; @@ -214,7 +214,7 @@ M: texture-2d-data-target allocate-texture ( tdt level dim data -- ) M: texture-3d-data-target allocate-texture ( tdt level dim data -- ) [ first3 ] [ glTexImage3D ] (allocate-texture) ; -GENERIC# allocate-compressed-texture 3 ( tdt level dim compressed-data -- ) +GENERIC#: allocate-compressed-texture 3 ( tdt level dim compressed-data -- ) M: texture-1d-data-target allocate-compressed-texture ( tdt level dim compressed-data -- ) [ ] [ glCompressedTexImage1D ] (allocate-compressed-texture) ; @@ -225,7 +225,7 @@ M: texture-2d-data-target allocate-compressed-texture ( tdt level dim compressed M: texture-3d-data-target allocate-compressed-texture ( tdt level dim compressed-data -- ) [ first3 ] [ glCompressedTexImage3D ] (allocate-compressed-texture) ; -GENERIC# update-texture 4 ( tdt level loc dim data -- ) +GENERIC#: update-texture 4 ( tdt level loc dim data -- ) M: texture-1d-data-target update-texture ( tdt level loc dim data -- ) [ ] [ glTexSubImage1D ] (update-texture) ; @@ -236,7 +236,7 @@ M: texture-2d-data-target update-texture ( tdt level loc dim data -- ) M: texture-3d-data-target update-texture ( tdt level loc dim data -- ) [ first3 ] [ glTexSubImage3D ] (update-texture) ; -GENERIC# update-compressed-texture 4 ( tdt level loc dim compressed-data -- ) +GENERIC#: update-compressed-texture 4 ( tdt level loc dim compressed-data -- ) M: texture-1d-data-target update-compressed-texture ( tdt level loc dim compressed-data -- ) [ ] [ glCompressedTexSubImage1D ] (update-compressed-texture) ; @@ -251,7 +251,7 @@ M: texture-3d-data-target update-compressed-texture ( tdt level loc dim compress { [ dim>> ] [ bitmap>> ] [ component-order>> ] [ component-type>> ] } cleave ; inline -GENERIC# texture-dim 1 ( tdt level -- dim ) +GENERIC#: texture-dim 1 ( tdt level -- dim ) M:: texture-1d-data-target texture-dim ( tdt level -- dim ) tdt bind-tdt :> texture diff --git a/extra/graphviz/notation/notation.factor b/extra/graphviz/notation/notation.factor index 6361c519c5..53e2e56a57 100644 --- a/extra/graphviz/notation/notation.factor +++ b/extra/graphviz/notation/notation.factor @@ -11,7 +11,7 @@ IN: graphviz.notation > attr<< ; ! M: sub/graph =attr diff --git a/extra/monads/monads.factor b/extra/monads/monads.factor index d8d4e35a35..485e543160 100644 --- a/extra/monads/monads.factor +++ b/extra/monads/monads.factor @@ -6,9 +6,9 @@ shuffle ; IN: monads ! Functors -GENERIC# fmap 1 ( functor quot -- functor' ) -GENERIC# <$ 1 ( functor quot -- functor' ) -GENERIC# $> 1 ( functor quot -- functor' ) +GENERIC#: fmap 1 ( functor quot -- functor' ) +GENERIC#: <$ 1 ( functor quot -- functor' ) +GENERIC#: $> 1 ( functor quot -- functor' ) ! Monads diff --git a/extra/mongodb/driver/driver.factor b/extra/mongodb/driver/driver.factor index bfad87b739..cd9fb587f7 100644 --- a/extra/mongodb/driver/driver.factor +++ b/extra/mongodb/driver/driver.factor @@ -214,7 +214,7 @@ PRIVATE> : key-spec ( spec-quot -- spec-assoc ) output>array >hashtable ; inline -GENERIC# hint 1 ( mdb-query-msg index-hint -- mdb-query-msg ) +GENERIC#: hint 1 ( mdb-query-msg index-hint -- mdb-query-msg ) M: mdb-query-msg hint >>hint ; diff --git a/extra/project-euler/215/215.factor b/extra/project-euler/215/215.factor index 1006b7a4cf..c1e26a71ec 100644 --- a/extra/project-euler/215/215.factor +++ b/extra/project-euler/215/215.factor @@ -42,8 +42,8 @@ C: end [ [ two>> ] [ three>> ] bi ] 2dip bi* ; inline GENERIC: merge ( t t -- t ) -GENERIC# block-merge 1 ( t t -- t ) -GENERIC# end-merge 1 ( t t -- t ) +GENERIC#: block-merge 1 ( t t -- t ) +GENERIC#: end-merge 1 ( t t -- t ) M: block merge block-merge ; M: end merge end-merge ; M: block block-merge [ [ two>> ] bi@ merge ] diff --git a/extra/tools/dns/dns.factor b/extra/tools/dns/dns.factor index fe72417dd0..56127b3d5a 100644 --- a/extra/tools/dns/dns.factor +++ b/extra/tools/dns/dns.factor @@ -34,7 +34,7 @@ IN: tools.dns [ dns-AAAA-query aaaa-message. ] [ dns-MX-query mx-message. ] tri ; -GENERIC# dns-host 1 ( servers domain -- ) +GENERIC#: dns-host 1 ( servers domain -- ) M: sequence dns-host ( servers domain -- ) '[ _ host ] with-dns-servers ; diff --git a/extra/variants/variants.factor b/extra/variants/variants.factor index 998fc19c85..b153e649aa 100644 --- a/extra/variants/variants.factor +++ b/extra/variants/variants.factor @@ -55,7 +55,7 @@ SYNTAX: VARIANT-MEMBER: MACRO: unboa ( class -- quot ) \ boa [ ] 2sequence [undo] ; -GENERIC# (match-branch) 1 ( class quot -- class quot' ) +GENERIC#: (match-branch) 1 ( class quot -- class quot' ) M: singleton-class (match-branch) \ drop prefix ; diff --git a/extra/zeromq/zeromq.factor b/extra/zeromq/zeromq.factor index 61e29c60c3..e49b0901b1 100644 --- a/extra/zeromq/zeromq.factor +++ b/extra/zeromq/zeromq.factor @@ -34,8 +34,8 @@ MEMO: zmq-msg-size ( -- x ) : ( -- byte-array ) zmq-msg-size (byte-array) ; -GENERIC# zmq-setopt 2 ( obj name value -- ) -GENERIC# zmq-getopt 1 ( obj name -- value ) +GENERIC#: zmq-setopt 2 ( obj name value -- ) +GENERIC#: zmq-getopt 1 ( obj name -- value ) TUPLE: zmq-message underlying ; diff --git a/unmaintained/ui/gadgets/layout/layout.factor b/unmaintained/ui/gadgets/layout/layout.factor index c187b01946..06ec26cede 100644 --- a/unmaintained/ui/gadgets/layout/layout.factor +++ b/unmaintained/ui/gadgets/layout/layout.factor @@ -66,11 +66,11 @@ GENERIC: >layout ( gadget -- layout ) M: gadget >layout f ; M: layout >layout ; -GENERIC# (add-gadget-at) 2 ( parent item n -- ) +GENERIC#: (add-gadget-at) 2 ( parent item n -- ) M: gadget (add-gadget-at) -rot [ add-gadget ] keep insert-gadget ; M: track (add-gadget-at) -rot >layout [ add-layout ] keep [ gadget>> insert-gadget ] [ size>> insert-size ] 3bi ; -GENERIC# add-gadget-at 1 ( item location -- ) +GENERIC#: add-gadget-at 1 ( item location -- ) M: object add-gadget-at insertion-point -rot (add-gadget-at) ; M: model add-gadget-at parent>> dup book:book? [ "No models in books" throw ] [ dup model>> dup collection? [ nip swap add-connection ] [ drop [ 1array ] dip model<< ] if ] if ; -- 2.34.1