]> gitweb.factorcode.org Git - factor.git/commitdiff
basis: removing unnecessary method stack effects.
authorJohn Benediktsson <mrjbq7@gmail.com>
Wed, 9 Sep 2020 21:41:17 +0000 (14:41 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Wed, 9 Sep 2020 22:00:54 +0000 (15:00 -0700)
217 files changed:
basis/bitstreams/bitstreams.factor
basis/channels/channels.factor
basis/channels/remote/remote.factor
basis/checksums/adler-32/adler-32.factor
basis/checksums/bsd/bsd.factor
basis/checksums/fnv1/fnv1.factor
basis/checksums/murmur/murmur.factor
basis/checksums/openssl/openssl.factor
basis/classes/struct/prettyprint/prettyprint.factor
basis/colors/gray/gray.factor
basis/colors/hsv/hsv.factor
basis/colors/ryb/ryb.factor
basis/compiler/cfg/builder/alien/alien.factor
basis/compiler/cfg/builder/alien/boxing/boxing.factor
basis/compiler/cfg/builder/alien/params/params.factor
basis/compiler/cfg/builder/builder.factor
basis/compiler/cfg/liveness/liveness.factor
basis/concurrency/distributed/distributed.factor
basis/concurrency/messaging/messaging.factor
basis/couchdb/couchdb.factor
basis/cpu/architecture/architecture.factor
basis/cpu/ppc/32/linux/linux.factor
basis/cpu/ppc/64/linux/linux.factor
basis/cpu/ppc/assembler/assembler.factor
basis/cpu/ppc/ppc.factor
basis/cpu/x86/32/32.factor
basis/cpu/x86/64/64.factor
basis/cpu/x86/64/unix/unix.factor
basis/cpu/x86/64/windows/windows.factor
basis/cpu/x86/assembler/assembler.factor
basis/cpu/x86/sse/sse.factor
basis/cpu/x86/x86.factor
basis/cpu/x86/x87/x87.factor
basis/db/db.factor
basis/db/pools/pools.factor
basis/db/postgresql/lib/lib.factor
basis/db/postgresql/postgresql.factor
basis/db/queries/queries.factor
basis/db/sqlite/sqlite.factor
basis/debugger/unix/unix.factor
basis/editors/atom/atom.factor
basis/editors/bbedit/bbedit.factor
basis/editors/brackets/brackets.factor
basis/editors/coteditor/coteditor.factor
basis/editors/editpadpro/editpadpro.factor
basis/editors/editplus/editplus.factor
basis/editors/emacs/emacs.factor
basis/editors/emeditor/emeditor.factor
basis/editors/etexteditor/etexteditor.factor
basis/editors/gedit/gedit.factor
basis/editors/jedit/jedit.factor
basis/editors/notepad++/notepad++.factor
basis/editors/notepad/notepad.factor
basis/editors/notepad2/notepad2.factor
basis/editors/scite/scite.factor
basis/editors/sublime/sublime.factor
basis/editors/ted-notepad/ted-notepad.factor
basis/editors/textadept/textadept.factor
basis/editors/textedit/textedit.factor
basis/editors/textmate/textmate.factor
basis/editors/textpad/textpad.factor
basis/editors/ultraedit/ultraedit.factor
basis/editors/vim/vim.factor
basis/editors/visual-studio-code/visual-studio-code.factor
basis/editors/wordpad/wordpad.factor
basis/editors/xcode/xcode.factor
basis/environment/unix/unix.factor
basis/environment/windows/windows.factor
basis/fry/fry.factor
basis/ftp/server/server.factor
basis/furnace/actions/actions.factor
basis/furnace/asides/asides.factor
basis/furnace/auth/auth.factor
basis/furnace/auth/basic/basic.factor
basis/furnace/auth/login/login.factor
basis/furnace/auth/providers/assoc/assoc.factor
basis/furnace/auth/providers/couchdb/couchdb.factor
basis/furnace/conversations/conversations.factor
basis/furnace/sessions/sessions.factor
basis/game/input/iokit/iokit.factor
basis/heaps/heaps.factor
basis/html/templates/chloe/components/components.factor
basis/html/templates/fhtml/fhtml.factor
basis/http/server/dispatchers/dispatchers.factor
basis/http/server/server.factor
basis/http/server/static/static.factor
basis/images/loader/gdiplus/gdiplus.factor
basis/io/backend/unix/bsd/bsd.factor
basis/io/backend/unix/freebsd/freebsd.factor
basis/io/backend/unix/linux/linux.factor
basis/io/backend/unix/macosx/macosx.factor
basis/io/backend/unix/multiplexers/epoll/epoll.factor
basis/io/backend/unix/multiplexers/kqueue/kqueue.factor
basis/io/backend/unix/multiplexers/run-loop/run-loop.factor
basis/io/backend/unix/unix.factor
basis/io/directories/unix/linux/linux.factor
basis/io/directories/unix/unix.factor
basis/io/directories/windows/windows.factor
basis/io/encodings/euc/euc.factor
basis/io/encodings/gb18030/gb18030.factor
basis/io/encodings/utf32/utf32.factor
basis/io/encodings/utf7/utf7.factor
basis/io/files/info/unix/bsd/bsd.factor
basis/io/files/info/unix/freebsd/freebsd.factor
basis/io/files/info/unix/linux/linux.factor
basis/io/files/info/unix/macosx/macosx.factor
basis/io/files/info/unix/unix.factor
basis/io/files/info/windows/windows.factor
basis/io/files/links/unix/unix.factor
basis/io/files/unique/unix/unix.factor
basis/io/files/unique/windows/windows.factor
basis/io/files/unix/unix.factor
basis/io/files/windows/windows.factor
basis/io/launcher/unix/unix.factor
basis/io/launcher/windows/windows.factor
basis/io/mmap/mmap.factor
basis/io/mmap/unix/unix.factor
basis/io/mmap/windows/windows.factor
basis/io/monitors/linux/linux.factor
basis/io/pipes/pipes.factor
basis/io/pipes/unix/unix.factor
basis/io/pipes/windows/windows.factor
basis/io/sockets/secure/debug/debug.factor
basis/io/sockets/secure/openssl/openssl.factor
basis/io/sockets/secure/secure.factor
basis/io/sockets/secure/unix/unix.factor
basis/io/sockets/secure/windows/windows.factor
basis/io/sockets/sockets.factor
basis/io/sockets/windows/windows.factor
basis/io/streams/limited/limited.factor
basis/libc/freebsd/freebsd.factor
basis/libc/linux/linux.factor
basis/libc/macosx/macosx.factor
basis/libc/windows/windows.factor
basis/lists/lists.factor
basis/locals/parser/parser.factor
basis/macros/expander/expander.factor
basis/math/bitwise/bitwise.factor
basis/math/floats/env/ppc/ppc.factor
basis/math/floats/env/x86/x86.factor
basis/math/functions/integer-logs/integer-logs.factor
basis/math/hashcodes/hashcodes.factor
basis/math/quaternions/quaternions.factor
basis/math/ranges/ranges.factor
basis/math/vectors/simd/simd.factor
basis/math/vectors/vectors.factor
basis/mirrors/mirrors.factor
basis/pack/pack.factor
basis/peg/ebnf/ebnf.factor
basis/peg/parsers/parsers.factor
basis/peg/peg.factor
basis/persistent/hashtables/nodes/bitmap/bitmap.factor
basis/persistent/vectors/vectors.factor
basis/present/present.factor
basis/prettyprint/backend/backend.factor
basis/prettyprint/sections/sections.factor
basis/random/random.factor
basis/random/sfmt/sfmt.factor
basis/random/unix/unix.factor
basis/random/windows/windows.factor
basis/refs/refs.factor
basis/regexp/classes/classes.factor
basis/regexp/negation/negation.factor
basis/regexp/nfa/nfa.factor
basis/regexp/regexp.factor
basis/see/see.factor
basis/sequences/merged/merged.factor
basis/serialize/serialize.factor
basis/system-info/macosx/macosx.factor
basis/system-info/windows/windows.factor
basis/tools/coverage/coverage.factor
basis/tools/crossref/crossref.factor
basis/tools/disassembler/udis/udis.factor
basis/tools/files/files.factor
basis/tools/files/unix/unix.factor
basis/tools/files/windows/windows.factor
basis/tools/ps/linux/linux.factor
basis/tools/ps/macosx/macosx.factor
basis/tools/ps/windows/windows.factor
basis/tools/scaffold/scaffold.factor
basis/ui/backend/cocoa/cocoa.factor
basis/ui/backend/gtk/gtk.factor
basis/ui/backend/x11/x11.factor
basis/ui/commands/commands.factor
basis/ui/gadgets/books/books.factor
basis/ui/gadgets/editors/editors.factor
basis/ui/gadgets/gadgets.factor
basis/ui/gadgets/grids/grids.factor
basis/ui/gadgets/labels/labels.factor
basis/ui/gadgets/packs/packs.factor
basis/ui/gadgets/panes/panes.factor
basis/ui/gadgets/tables/tables.factor
basis/ui/gadgets/tracks/tracks.factor
basis/ui/gadgets/worlds/worlds.factor
basis/ui/gestures/gestures.factor
basis/ui/operations/operations.factor
basis/ui/pens/gradient/gradient.factor
basis/ui/pens/tile/tile.factor
basis/ui/text/core-text/core-text.factor
basis/ui/text/pango/pango.factor
basis/ui/text/uniscribe/uniscribe.factor
basis/ui/tools/browser/browser.factor
basis/ui/tools/listener/listener.factor
basis/unix/groups/groups.factor
basis/unix/linux/proc/proc.factor
basis/unix/signals/signals.factor
basis/unix/users/macosx/macosx.factor
basis/unix/users/users.factor
basis/unix/utmpx/linux/linux.factor
basis/unix/utmpx/macosx/macosx.factor
basis/vocabs/prettyprint/prettyprint.factor
basis/webbrowser/freebsd/freebsd.factor
basis/webbrowser/linux/linux.factor
basis/webbrowser/macosx/macosx.factor
basis/webbrowser/windows/windows.factor
basis/windows/handles/handles.factor
basis/windows/winsock/winsock.factor

index ee6ad00e83ebd2cb255ef181d401a5a27474df00..d9656b407748bb2a6fde61f076cb68b3c6434c73 100644 (file)
@@ -166,10 +166,10 @@ ERROR: not-enough-bits n bit-reader ;
     bs bytes>> subseq endian> execute( seq -- x )
     n bs subseq-endian execute( bignum n bs -- bits ) ;
 
-M: lsb0-bit-reader peek ( n bs -- bits )
+M: lsb0-bit-reader peek
     \ le> \ subseq>bits-le (peek) ;
 
-M: msb0-bit-reader peek ( n bs -- bits )
+M: msb0-bit-reader peek
     \ be> \ subseq>bits-be (peek) ;
 
 :: bit-writer-bytes ( writer -- bytes )
index 870085f77afbee1540475f5d3293a5d6892212b0..7c278d597722db82fda0b65ea8f54fb6d802680b 100644 (file)
@@ -31,11 +31,11 @@ GENERIC: from ( channel -- value )
 
 PRIVATE>
 
-M: channel to ( value channel -- )
+M: channel to
     dup receivers>>
     [ dup wait to ] [ nip (to) ] if-empty ;
 
-M: channel from ( channel -- value )
+M: channel from
     [ self ] dip
     notify senders>>
     [ (from) ] unless-empty
index 8b30a5236c6b5ffde5a9cf68679ee37133e90f25..a1c90dc6e86888a1eab45bfa9941c6919fc294fe 100644 (file)
@@ -60,10 +60,10 @@ C: <remote-channel> remote-channel
 
 PRIVATE>
 
-M: remote-channel to ( value remote-channel -- )
+M: remote-channel to
     [ id>> swap to-message boa ] keep send-message drop ;
 
-M: remote-channel from ( remote-channel -- value )
+M: remote-channel from
     [ id>> from-message boa ] keep send-message ;
 
 [
index 67c2842b74b5bf0f863c4308dae441c76d3eb37b..0fc9985d607f63ca6762df87eadd7a51b09d077e 100644 (file)
@@ -8,7 +8,7 @@ SINGLETON: adler-32
 
 CONSTANT: adler-32-modulus 65521
 
-M: adler-32 checksum-bytes ( bytes checksum -- value )
+M: adler-32 checksum-bytes
     drop
     [ sum 1 + ]
     [ [ dup length [1,b] <reversed> vdot ] [ length ] bi + ] bi
index 0b61551a5085ebdec6eb6aa223cefcc9ef5f4cde..86d1cc2e1691082de0af6a2b5668d0c8b0422c99 100644 (file)
@@ -5,7 +5,7 @@ IN: checksums.bsd
 
 SINGLETON: bsd
 
-M: bsd checksum-bytes ( bytes checksum -- value )
+M: bsd checksum-bytes
     drop 0 [
         [ [ -1 shift ] [ 1 bitand 15 shift ] bi + ] dip
         + 0xffff bitand
index b9f4d1830e163ccb754e99f1f32df6d61113c2c0..f60e97dbf49a8771e0195ab968e05dfcd100d1e2 100644 (file)
@@ -38,67 +38,67 @@ CONSTANT: fnv1-256-basis 0xdd268dbcaac550362d98c384c4e576ccc8b1536847b6bbb31023b
 CONSTANT: fnv1-512-basis 0xb86db0b1171f4416dca1e50f309990acac87d059c90000000000000000000d21e948f68a34c192f62ea79bc942dbe7ce182036415f56e34bac982aac4afe9fd9
 CONSTANT: fnv1-1024-basis 0x5f7a76758ecc4d32e56d5a591028b74b29fc4223fdada16c3bf34eda3674da9a21d9000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004c6d7eb6e73802734510a555f256cc005ae556bde8cc9c6a93b21aff4b16c71ee90b3
 
-M: fnv1-32 checksum-bytes ( bytes checksum -- value )
+M: fnv1-32 checksum-bytes
     drop
     fnv1-32-basis swap
     [ swap fnv1-32-prime * bitxor fnv1-32-mod bitand ] each ;
 
-M: fnv1a-32 checksum-bytes ( bytes checksum -- value )
+M: fnv1a-32 checksum-bytes
     drop
     fnv1-32-basis swap
     [ bitxor fnv1-32-prime * fnv1-32-mod bitand ] each ;
 
 
-M: fnv1-64 checksum-bytes ( bytes checksum -- value )
+M: fnv1-64 checksum-bytes
     drop
     fnv1-64-basis swap
     [ swap fnv1-64-prime * bitxor fnv1-64-mod bitand ] each ;
 
-M: fnv1a-64 checksum-bytes ( bytes checksum -- value )
+M: fnv1a-64 checksum-bytes
     drop
     fnv1-64-basis swap
     [ bitxor fnv1-64-prime * fnv1-64-mod bitand ] each ;
 
 
-M: fnv1-128 checksum-bytes ( bytes checksum -- value )
+M: fnv1-128 checksum-bytes
     drop
     fnv1-128-basis swap
     [ swap fnv1-128-prime * bitxor fnv1-128-mod bitand ] each ;
 
-M: fnv1a-128 checksum-bytes ( bytes checksum -- value )
+M: fnv1a-128 checksum-bytes
     drop
     fnv1-128-basis swap
     [ bitxor fnv1-128-prime * fnv1-128-mod bitand ] each ;
 
 
-M: fnv1-256 checksum-bytes ( bytes checksum -- value )
+M: fnv1-256 checksum-bytes
     drop
     fnv1-256-basis swap
     [ swap fnv1-256-prime * bitxor fnv1-256-mod bitand ] each ;
 
-M: fnv1a-256 checksum-bytes ( bytes checksum -- value )
+M: fnv1a-256 checksum-bytes
     drop
     fnv1-256-basis swap
     [ bitxor fnv1-256-prime * fnv1-256-mod bitand ] each ;
 
 
-M: fnv1-512 checksum-bytes ( bytes checksum -- value )
+M: fnv1-512 checksum-bytes
     drop
     fnv1-512-basis swap
     [ swap fnv1-512-prime * bitxor fnv1-512-mod bitand ] each ;
 
-M: fnv1a-512 checksum-bytes ( bytes checksum -- value )
+M: fnv1a-512 checksum-bytes
     drop
     fnv1-512-basis swap
     [ bitxor fnv1-512-prime * fnv1-512-mod bitand ] each ;
 
 
-M: fnv1-1024 checksum-bytes ( bytes checksum -- value )
+M: fnv1-1024 checksum-bytes
     drop
     fnv1-1024-basis swap
     [ swap fnv1-1024-prime * bitxor fnv1-1024-mod bitand ] each ;
 
-M: fnv1a-1024 checksum-bytes ( bytes checksum -- value )
+M: fnv1a-1024 checksum-bytes
     drop
     fnv1-1024-basis swap
     [ bitxor fnv1-1024-prime * fnv1-1024-mod bitand ] each ;
index 441a59eaeea24f945df7e9b5b9e0613d354e42b1..d18b1318a58b8629b4186a8bf50f46e91f0a6b3c 100644 (file)
@@ -47,7 +47,7 @@ CONSTANT: n 0xe6546b64
 
 PRIVATE>
 
-M: murmur3-32 checksum-bytes ( bytes checksum -- value )
+M: murmur3-32 checksum-bytes
     seed>> 32 bits main-loop end-case avalanche ;
 
 INSTANCE: murmur3-32 checksum
index ef10076fdab960e993f1e456aca120cf122c36d1..0bd00fcfd7a502834535604a061214633b5a4322 100644 (file)
@@ -38,13 +38,13 @@ M: evp-md-context dispose*
 : set-digest ( name ctx -- )
     handle>> swap digest-named f EVP_DigestInit_ex ssl-error ;
 
-M: openssl-checksum initialize-checksum-state ( checksum -- evp-md-context )
+M: openssl-checksum initialize-checksum-state
     maybe-init-ssl name>> <evp-md-context> [ set-digest ] keep ;
 
-M: evp-md-context add-checksum-bytes ( ctx bytes -- ctx' )
+M: evp-md-context add-checksum-bytes
     [ dup handle>> ] dip dup length EVP_DigestUpdate ssl-error ;
 
-M: evp-md-context get-checksum ( ctx -- value )
+M: evp-md-context get-checksum
     handle>>
     { { int EVP_MAX_MD_SIZE } int }
     [ EVP_DigestFinal_ex ssl-error ] with-out-parameters
index 175d2df2251d606b2968c5c980d101d001a4bc49..5b0a477857622c1be88483256c4807aefe54a66b 100644 (file)
@@ -116,7 +116,7 @@ M: struct-mirror delete-at
 M: struct-mirror clear-assoc
     object>> reset-struct-slots ;
 
-M: struct-mirror >alist ( mirror -- alist )
+M: struct-mirror >alist
     object>> [
         [ drop "underlying" ] [ >c-ptr ] bi 2array 1array
     ] [
index c6f576f58ceadef4501542935e309e145fe973ae..9b71b35837c8febada2cc1424e9d9755b389832a 100644 (file)
@@ -7,7 +7,7 @@ TUPLE: gray < color { gray read-only } { alpha read-only } ;
 
 C: <gray> gray
 
-M: gray >rgba ( gray -- rgba )
+M: gray >rgba
     [ gray>> dup dup ] [ alpha>> ] bi <rgba> ; inline
 
 M: gray red>> gray>> ;
index addc518e8921e093de0be8f8bc25f0f357ca49da..1f2528e880bb38f8930f06fe59999d141fbb8be8 100644 (file)
@@ -29,7 +29,7 @@ C: <hsva> hsva
 
 PRIVATE>
 
-M: hsva >rgba ( hsva -- rgba )
+M: hsva >rgba
     [
         dup Hi
         {
index d96cc15f6a11b20fa92736a2a07f84481adf5dcd..e8a6137b6442bff5e72112ba34f55ef4c0ac5b7c 100644 (file)
@@ -61,7 +61,7 @@ C: <ryba> ryba
 
 PRIVATE>
 
-M: ryba >rgba ( ryba -- rgba )
+M: ryba >rgba
     [
         [ red>> ] [ yellow>> ] [ blue>> ] tri
         [ ryb>rgb ] normalized
index 06b18597c826cf601f5290b510ebbb610c1bd7fb..d32cf013ac9762a44d90a8330ce17ddb47e716d2 100644 (file)
@@ -95,7 +95,7 @@ IN: compiler.cfg.builder.alien
         [ stack-params get [ caller-stack-cleanup ] keep ]
     } cleave ;
 
-M: #alien-invoke emit-node ( block node -- block' )
+M: #alien-invoke emit-node
     params>>
     [
         [ params>alien-insn-params ]
@@ -104,7 +104,7 @@ M: #alien-invoke emit-node ( block node -- block' )
     ]
     [ caller-return ] bi ;
 
-M: #alien-indirect emit-node ( block node -- block' )
+M: #alien-indirect emit-node
     params>>
     [
         [ ds-pop ^^unbox-any-c-ptr ] dip
@@ -113,7 +113,7 @@ M: #alien-indirect emit-node ( block node -- block' )
     ]
     [ caller-return ] bi ;
 
-M: #alien-assembly emit-node ( block node -- block' )
+M: #alien-assembly emit-node
     params>>
     [
         [ params>alien-insn-params ]
@@ -167,7 +167,7 @@ M: #alien-assembly emit-node ( block node -- block' )
 : emit-callback-outputs ( block params -- )
     [ emit-callback-return ] keep callback-stack-cleanup ;
 
-M: #alien-callback emit-node ( block node -- block' )
+M: #alien-callback emit-node
     dup params>> xt>> dup
     [
         t cfg get frame-pointer?<<
index 075a2df0847f3abc97763e8649224dcbd2bf6377..777c4ec8e6ef2df1631081dd94ac1d90df837008 100644 (file)
@@ -88,7 +88,7 @@ M: long-long-type unbox
     int-rep long-long-on-stack? long-long-odd-register? 3array
     int-rep long-long-on-stack? f 3array 2array record-reg-reps ;
 
-M: struct-c-type unbox ( src c-type -- vregs reps )
+M: struct-c-type unbox
     [ ^^unbox-any-c-ptr ] dip explode-struct ;
 
 : frob-struct ( c-type -- c-type )
index 0713115d09954a9643e9748b0f707abf50658674..609c7309bc38e7ba4ab57b0b09b73796aa893b16 100644 (file)
@@ -8,11 +8,11 @@ SYMBOL: stack-params
 
 GENERIC: alloc-stack-param ( rep -- n )
 
-M: object alloc-stack-param ( rep -- n )
+M: object alloc-stack-param
     stack-params get
     [ rep-size cell align stack-params +@ ] dip ;
 
-M: float-rep alloc-stack-param ( rep -- n )
+M: float-rep alloc-stack-param
     stack-params get swap rep-size
     [ cell align stack-params +@ ] keep
     float-right-align-on-stack? [ + ] [ drop ] if ;
index 453e01e93283addef67db280e9322f8a5bb2d1c4..b8402f452f136b0f35d72c184bc0bf829af56df7 100644 (file)
@@ -71,7 +71,7 @@ GENERIC: emit-node ( block node -- block' )
     ##branch, [ begin-basic-block ] dip
     [ label>> id>> loops get set-at ] [ child>> emit-nodes ] 2bi ;
 
-M: #recursive emit-node ( block node -- block' )
+M: #recursive emit-node
     dup label>> loop?>> [ emit-loop ] [ emit-recursive ] if ;
 
 ! #if
@@ -109,28 +109,28 @@ M: #recursive emit-node ( block node -- block' )
     ! loc>vreg sync
     ds-pop any-rep ^^copy f cc/= ##compare-imm-branch, emit-if ;
 
-M: #if emit-node ( block node -- block' )
+M: #if emit-node
     {
         { [ dup trivial-if? ] [ drop emit-trivial-if ] }
         { [ dup trivial-not-if? ] [ drop emit-trivial-not-if ] }
         [ emit-actual-if ]
     } cond ;
 
-M: #dispatch emit-node ( block node -- block' )
+M: #dispatch emit-node
     ! Inputs to the final instruction need to be copied because of
     ! loc>vreg sync. ^^offset>slot always returns a fresh vreg,
     ! though.
     ds-pop ^^offset>slot next-vreg ##dispatch, emit-if ;
 
-M: #call emit-node ( block node -- block' )
+M: #call emit-node
     dup word>> dup "intrinsic" word-prop [
         nip call( block #call -- block' )
     ] [ swap call-height emit-call ] if* ;
 
-M: #call-recursive emit-node ( block node -- block' )
+M: #call-recursive emit-node
     [ label>> id>> ] [ call-height ] bi emit-call ;
 
-M: #push emit-node ( block node -- block )
+M: #push emit-node
     literal>> ^^load-literal ds-push ;
 
 ! #shuffle
@@ -157,7 +157,7 @@ M: #push emit-node ( block node -- block )
     [ make-input-map ] [ mapping>> ] [ extract-outputs ] tri
     [ [ of of peek-loc ] 2with map ] 2with map ;
 
-M: #shuffle emit-node ( block node -- block )
+M: #shuffle emit-node
     [ out-vregs/stack ] keep store-height-changes
     first2 [ ds-loc store-vregs ] [ rs-loc store-vregs ] bi* ;
 
@@ -167,14 +167,14 @@ M: #shuffle emit-node ( block node -- block )
     t >>kill-block?
     ##safepoint, ##epilogue, ##return, ;
 
-M: #return emit-node ( block node -- block' )
+M: #return emit-node
     drop end-word ;
 
-M: #return-recursive emit-node ( block node -- block' )
+M: #return-recursive emit-node
     label>> id>> loops get key? [ ] [ end-word ] if ;
 
 ! #terminate
-M: #terminate emit-node ( block node -- block' )
+M: #terminate emit-node
     drop ##no-tco, end-basic-block f ;
 
 ! No-op nodes
index f78c336d6fa34c3415158249e8e7c52ac7c2cec0..e6009e0b42686fd1b11c8ab2f50748e06e977fb2 100644 (file)
@@ -35,7 +35,7 @@ GENERIC: visit-insn ( live-set insn -- )
 : gen-uses ( live-set insn -- )
     uses-vregs [ swap conjoin ] with each ; inline
 
-M: vreg-insn visit-insn ( live-set insn -- )
+M: vreg-insn visit-insn
     [ kill-defs ] [ gen-uses ] 2bi ;
 
 DEFER: lookup-base-pointer
@@ -98,7 +98,7 @@ M: vreg-insn lookup-base-pointer* 2drop f ;
 : fill-gc-map ( live-set gc-map -- )
     [ gc-roots ] dip [ gc-roots<< ] [ derived-roots<< ] bi ;
 
-M: gc-map-insn visit-insn ( live-set insn -- )
+M: gc-map-insn visit-insn
     [ kill-defs ] [ gc-map>> fill-gc-map ] [ gen-uses ] 2tri ;
 
 M: ##phi visit-insn kill-defs ;
index 7e59a4ef79c6938e644a32255cb94ff30639dd3e..d859691bfdb76096271ea6007139c1175fd5918c 100644 (file)
@@ -68,11 +68,11 @@ C: <connection> connection
 : send-to-connection ( message connection -- )
     stream>> [ serialize flush ] with-stream* ;
 
-M: remote-thread send ( message thread -- )
+M: remote-thread send
     [ id>> 2array ] [ node>> ] [ thread-connections at ] tri
     [ nip send-to-connection ] [ send-remote-message ] if* ;
 
-M: thread (serialize) ( obj -- )
+M: thread (serialize)
     id>> [ local-node get insecure>> ] dip <remote-thread> (serialize) ;
 
 : stop-node ( -- )
index 5f2a3fd5d852e88e9643e925325edf2e980853fb..8763c83ae16b9efebc89df1c18034ae10fad84a1 100644 (file)
@@ -13,7 +13,7 @@ M: thread mailbox-of
     [ { mailbox } declare ]
     [ <mailbox> [ >>mailbox drop ] keep ] ?if ; inline
 
-M: thread send ( message thread -- )
+M: thread send
     mailbox-of mailbox-put ;
 
 : my-mailbox ( -- mailbox ) self mailbox-of ; inline
index 15db1920e1d3934557a7f3a549b6110d3fa24bf9..93f57a07248354022bb5cc848e6a4c02913c0e57 100644 (file)
@@ -18,7 +18,7 @@ SYMBOL: couch
 TUPLE: couchdb-error { data assoc } ;
 C: <couchdb-error> couchdb-error
 
-M: couchdb-error error. ( error -- )
+M: couchdb-error error.
     "CouchDB Error: " write data>>
     "error" over at [ print ] when*
     "reason" of [ print ] when* ;
index 83de9fbf6b64f67bfc475b5dd793c4d4a9b6f531..901bc447970091d7300c7a940c38aee83f8120d1 100644 (file)
@@ -524,7 +524,7 @@ HOOK: immediate-bitwise? cpu ( n -- ? )
 HOOK: immediate-comparand? cpu ( n -- ? )
 HOOK: immediate-store? cpu ( n -- ? )
 
-M: object immediate-comparand? ( n -- ? )
+M: object immediate-comparand?
     {
         { [ dup fixnum? ] [ tag-fixnum immediate-arithmetic? ] }
         { [ dup not ] [ drop t ] }
index 187de4e7842d8d76fc17ae45c9e9188f47bfffae..18e7f5670a0a658fb1ab397b49ee758f043a9dd6 100644 (file)
@@ -5,13 +5,13 @@ compiler.cfg.builder.alien.boxing sequences arrays
 alien.c-types cpu.architecture cpu.ppc alien.complex ;
 IN: cpu.ppc.32.linux
 
-M: linux lr-save ( -- n ) 1 cells ;
+M: linux lr-save 1 cells ;
 
-M: linux has-toc ( -- ? ) f ;
+M: linux has-toc f ;
 
-M: linux reserved-area-size ( -- n ) 2 cells ;
+M: linux reserved-area-size 2 cells ;
 
-M: linux allows-null-dereference ( -- ? ) f ;
+M: linux allows-null-dereference f ;
 
 M: ppc param-regs
     drop {
@@ -35,7 +35,7 @@ M: ppc long-long-odd-register? t ;
 
 M: ppc float-right-align-on-stack? f ;
 
-M: ppc flatten-struct-type ( type -- seq )
+M: ppc flatten-struct-type
     {
         { [ dup lookup-c-type complex-double lookup-c-type = ]
           [ drop { { int-rep f f } { int-rep f f }
index 6b4df01173559fe3d385ab5be29494a6cb590e9c..d2f29a7d3a16b697382fdf51703b6f6648b23418 100644 (file)
@@ -7,11 +7,11 @@ IN: cpu.ppc.64.linux
 
 M: linux lr-save 2 cells ;
 
-M: linux has-toc ( -- ? ) t ;
+M: linux has-toc t ;
 
-M: linux reserved-area-size ( -- n ) 6 cells ;
+M: linux reserved-area-size 6 cells ;
 
-M: linux allows-null-dereference ( -- ? ) f ;
+M: linux allows-null-dereference f ;
 
 M: ppc param-regs
     drop {
@@ -33,7 +33,7 @@ M: ppc long-long-odd-register? f ;
 
 M: ppc float-right-align-on-stack? t ;
 
-M: ppc flatten-struct-type ( type -- seq )
+M: ppc flatten-struct-type
     {
         { [ dup lookup-c-type complex-double lookup-c-type = ]
           [ drop { { double-rep f f } { double-rep f f } } ] }
@@ -42,7 +42,7 @@ M: ppc flatten-struct-type ( type -- seq )
         [ heap-size cell align cell /i { int-rep f f } <repetition> ]
     } cond ;
 
-M: ppc flatten-struct-type-return ( type -- seq )
+M: ppc flatten-struct-type-return
     {
         { [ dup lookup-c-type complex-double lookup-c-type = ]
           [ drop { { double-rep f f } { double-rep f f } } ] }
index 9d37f1cdd6525feeb5bd691628bc7715dca5b311..6f083373d59b091e610b5991e3333129448e05b2 100644 (file)
@@ -115,16 +115,16 @@ IN: cpu.ppc.assembler
 
 ! 2.4 Branch Instructions
 GENERIC: B ( target_addr/label -- )
-M: integer B ( target_addr -- ) -2 shift 0 0 18 i-insn ;
+M: integer B -2 shift 0 0 18 i-insn ;
 
 GENERIC: BL ( target_addr/label -- )
-M: integer BL ( target_addr -- ) -2 shift 0 1 18 i-insn ;
+M: integer BL -2 shift 0 1 18 i-insn ;
 
 : BA  ( target_addr -- ) -2 shift 1 0 18 i-insn ;
 : BLA ( target_addr -- ) -2 shift 1 1 18 i-insn ;
 
 GENERIC: BC ( bo bi target_addr/label -- )
-M: integer BC ( bo bi target_addr -- ) -2 shift 0 0 16 b-insn ;
+M: integer BC -2 shift 0 0 16 b-insn ;
 
 : BCA  ( bo bi target_addr -- ) -2 shift 1 0 16 b-insn ;
 : BCL  ( bo bi target_addr -- ) -2 shift 0 1 16 b-insn ;
index f4a75c75cc56a56eee565595f16501ddfd499fdc..7a78d3d981556216f29445b41b3681e6f78299a4 100644 (file)
@@ -34,9 +34,9 @@ HOOK: has-toc os ( -- ? )
 HOOK: reserved-area-size os ( -- n )
 HOOK: allows-null-dereference os ( -- ? )
 
-M: label B  ( label -- )       [ 0 B  ] dip rc-relative-ppc-3-pc label-fixup ;
-M: label BL ( label -- )       [ 0 BL ] dip rc-relative-ppc-3-pc label-fixup ;
-M: label BC ( bo bi label -- ) [ 0 BC ] dip rc-relative-ppc-2-pc label-fixup ;
+M: label B  [ 0 B  ] dip rc-relative-ppc-3-pc label-fixup ;
+M: label BL [ 0 BL ] dip rc-relative-ppc-3-pc label-fixup ;
+M: label BC [ 0 BC ] dip rc-relative-ppc-2-pc label-fixup ;
 
 CONSTANT: scratch-reg    30
 CONSTANT: fp-scratch-reg 30
@@ -44,16 +44,16 @@ CONSTANT: ds-reg         14
 CONSTANT: rs-reg         15
 CONSTANT: vm-reg         16
 
-M: ppc machine-registers ( -- assoc )
+M: ppc machine-registers
     {
         { int-regs $[ 3 12 [a,b] 17 29 [a,b] append ] }
         { float-regs $[ 0 29 [a,b] ] }
     } ;
 
-M: ppc frame-reg ( -- reg ) 31 ;
-M: ppc.32 vm-stack-space ( -- n ) 16 ;
-M: ppc.64 vm-stack-space ( -- n ) 32 ;
-M: ppc complex-addressing? ( -- ? ) f ;
+M: ppc frame-reg 31 ;
+M: ppc.32 vm-stack-space 16 ;
+M: ppc.64 vm-stack-space 32 ;
+M: ppc complex-addressing? f ;
 
 ! PW1-PW8 parameter save slots
 : param-save-size ( -- n ) 8 cells ; foldable
@@ -67,7 +67,7 @@ M: ppc complex-addressing? ( -- ? ) f ;
 : param@ ( n -- offset )
     reserved-area-size + ;
 
-M: ppc gc-root-offset ( spill-slot -- n )
+M: ppc gc-root-offset
     n>> spill@ cell /i ;
 
 : LOAD32 ( r n -- )
@@ -129,12 +129,12 @@ HOOK: %load-cell-imm-rc cpu ( -- rel-class )
 M: ppc.32 %load-cell-imm-rc rc-absolute-ppc-2/2 ;
 M: ppc.64 %load-cell-imm-rc rc-absolute-ppc-2/2/2/2  ;
 
-M: ppc.32 %load-immediate ( reg val -- )
+M: ppc.32 %load-immediate
     dup -0x8000 0x7fff between? [ LI ] [ LOAD32 ] if ;
-M: ppc.64 %load-immediate ( reg val -- )
+M: ppc.64 %load-immediate
     dup -0x8000 0x7fff between? [ LI ] [ LOAD64 ] if ;
 
-M: ppc %load-reference ( reg obj -- )
+M: ppc %load-reference
     [ [ 0 %load-cell-imm ] [ %load-cell-imm-rc rel-literal ] bi* ]
     [ \ f type-number LI ]
     if* ;
@@ -156,11 +156,11 @@ M: ds-loc loc-reg drop ds-reg ;
 M: rs-loc loc-reg drop rs-reg ;
 
 ! Load value at stack location loc into vreg.
-M: ppc %peek ( vreg loc -- )
+M: ppc %peek
     [ loc-reg ] [ n>> cells neg ] bi %load-cell ;
 
 ! Replace value at stack location loc with value in vreg.
-M: ppc %replace ( vreg loc -- )
+M: ppc %replace
     [ loc-reg ] [ n>> cells neg ] bi %store-cell ;
 
 ! Replace value at stack location with an immediate value.
@@ -176,45 +176,45 @@ M:: ppc %replace-imm ( src loc -- )
     } cond
     scratch-reg reg offset %store-cell ;
 
-M: ppc %clear ( loc -- )
+M: ppc %clear
     297 swap %replace-imm ;
 
 ! Increment stack pointer by n cells.
-M: ppc %inc ( loc -- )
+M: ppc %inc
     [ ds-loc? [ ds-reg ds-reg ] [ rs-reg rs-reg ] if ] [ n>> ] bi cells ADDI ;
 
-M: ppc stack-frame-size ( stack-frame -- i )
+M: ppc stack-frame-size
     (stack-frame-size)
     reserved-area-size +
     param-save-size +
     factor-area-size +
     16 align ;
 
-M: ppc %call ( word -- )
+M: ppc %call
     0 BL rc-relative-ppc-3-pc rel-word-pic ;
 
 : instrs ( n -- b ) 4 * ; inline
 
-M: ppc %jump ( word -- )
+M: ppc %jump
     6 0 %load-cell-imm 1 instrs %load-cell-imm-rc rel-here
     0 B rc-relative-ppc-3-pc rel-word-pic-tail ;
 
-M: ppc %dispatch ( src temp -- )
+M: ppc %dispatch
     [ nip 0 %load-cell-imm 3 instrs %load-cell-imm-rc rel-here ]
     [ swap dupd %load-cell-x ]
     [ nip MTCTR ] 2tri BCTR ;
 
-M: ppc %slot ( dst obj slot scale tag -- )
+M: ppc %slot
     [ 0 assert= ] bi@ %load-cell-x ;
 
-M: ppc %slot-imm ( dst obj slot tag -- )
+M: ppc %slot-imm
     slot-offset scratch-reg swap LI
     scratch-reg %load-cell-x ;
 
-M: ppc %set-slot ( src obj slot scale tag -- )
+M: ppc %set-slot
     [ 0 assert= ] bi@ %store-cell-x ;
 
-M: ppc %set-slot-imm ( src obj slot tag -- )
+M: ppc %set-slot-imm
     slot-offset [ scratch-reg ] dip LI scratch-reg %store-cell-x ;
 
 M: ppc    %jump-label B     ;
@@ -255,7 +255,7 @@ M: ppc.64 %log2       [ CNTLZD ] [ drop dup NEG ] [ drop dup 63 ADDI ] 2tri ;
 M: ppc.32 %bit-count  POPCNTW ;
 M: ppc.64 %bit-count  POPCNTD ;
 
-M: ppc %copy ( dst src rep -- )
+M: ppc %copy
     2over eq? [ 3drop ] [
         {
             { tagged-rep [ MR ] }
@@ -276,15 +276,15 @@ M: ppc %copy ( dst src rep -- )
         { cc/o [ 0 label BNS ] }
     } case ; inline
 
-M: ppc %fixnum-add ( label dst src1 src2 cc -- )
+M: ppc %fixnum-add
     [ ADDO. ] overflow-template ;
 
-M: ppc %fixnum-sub ( label dst src1 src2 cc -- )
+M: ppc %fixnum-sub
     [ SUBFO. ] overflow-template ;
 
-M: ppc.32 %fixnum-mul ( label dst src1 src2 cc -- )
+M: ppc.32 %fixnum-mul
     [ MULLWO. ] overflow-template ;
-M: ppc.64 %fixnum-mul ( label dst src1 src2 cc -- )
+M: ppc.64 %fixnum-mul
     [ MULLDO. ] overflow-template ;
 
 M: ppc %add-float FADD ;
@@ -292,11 +292,11 @@ M: ppc %sub-float FSUB ;
 M: ppc %mul-float FMUL ;
 M: ppc %div-float FDIV ;
 
-M: ppc %min-float ( dst src1 src2 -- )
+M: ppc %min-float
     2dup [ scratch-reg ] 2dip FSUB
     [ scratch-reg ] 2dip FSEL ;
 
-M: ppc %max-float ( dst src1 src2 -- )
+M: ppc %max-float
     2dup [ scratch-reg ] 2dip FSUB
     [ scratch-reg ] 2dip FSEL ;
 
@@ -343,26 +343,26 @@ M:: ppc.64 %float>integer ( dst src -- )
     } ;
 
 ! Return values of this class go here
-M: ppc return-regs ( -- regs )
+M: ppc return-regs
     {
         { int-regs { 3 4 5 6 } }
         { float-regs { 1 2 3 4 } }
     } ;
 
 ! Is this structure small enough to be returned in registers?
-M: ppc return-struct-in-registers? ( c-type -- ? )
+M: ppc return-struct-in-registers?
     lookup-c-type return-in-registers?>> ;
 
 ! If t, the struct return pointer is never passed in a param reg
-M: ppc struct-return-on-stack? ( -- ? ) f ;
+M: ppc struct-return-on-stack? f ;
 
 GENERIC: load-param ( reg src -- )
-M: integer load-param ( reg src -- ) int-rep %copy ;
-M: spill-slot load-param ( reg src -- ) [ 1 ] dip n>> spill@ %load-cell ;
+M: integer load-param int-rep %copy ;
+M: spill-slot load-param [ 1 ] dip n>> spill@ %load-cell ;
 
 GENERIC: store-param ( reg dst -- )
-M: integer store-param ( reg dst -- ) swap int-rep %copy ;
-M: spill-slot store-param ( reg dst -- ) [ 1 ] dip n>> spill@ %store-cell ;
+M: integer store-param swap int-rep %copy ;
+M: spill-slot store-param [ 1 ] dip n>> spill@ %store-cell ;
 
 M:: ppc %unbox ( dst src func rep -- )
     3 src load-param
@@ -459,10 +459,7 @@ M:: ppc %c-invoke ( name dll gc-map -- )
     dead-outputs [ first2 discard-reg-param ] each
     ; inline
 
-M: ppc %alien-invoke ( varargs? reg-inputs stack-inputs
-                       reg-outputs dead-outputs
-                       cleanup stack-size
-                       symbols dll gc-map -- )
+M: ppc %alien-invoke
     '[ _ _ _ %c-invoke ] emit-alien-insn ;
 
 M:: ppc %alien-indirect ( src
@@ -483,36 +480,33 @@ M:: ppc %alien-indirect ( src
         gc-map gc-map-here
     ] emit-alien-insn ;
 
-M: ppc %alien-assembly ( varargs? reg-inputs stack-inputs
-                         reg-outputs dead-outputs
-                         cleanup stack-size
-                         quot -- )
+M: ppc %alien-assembly
     '[ _ call( -- ) ] emit-alien-insn ;
 
-M: ppc %callback-inputs ( reg-outputs stack-outputs -- )
+M: ppc %callback-inputs
     [ [ first3 load-reg-param ] each ]
     [ [ first3 load-stack-param ] each ] bi*
     3 vm-reg MR
     4 0 LI
     "begin_callback" f f %c-invoke ;
 
-M: ppc %callback-outputs ( reg-inputs -- )
+M: ppc %callback-outputs
     3 vm-reg MR
     "end_callback" f f %c-invoke
     [ first3 store-reg-param ] each ;
 
-M: ppc stack-cleanup ( stack-size return abi -- n )
+M: ppc stack-cleanup
     3drop 0 ;
 
 M: ppc fused-unboxing? f ;
 
-M: ppc %alien-global ( register symbol dll -- )
+M: ppc %alien-global
     [ 0 %load-cell-imm ] 2dip %load-cell-imm-rc rel-dlsym ;
 
-M: ppc %vm-field     ( dst field -- ) [ vm-reg ] dip %load-cell  ;
-M: ppc %set-vm-field ( src field -- ) [ vm-reg ] dip %store-cell ;
+M: ppc %vm-field     [ vm-reg ] dip %load-cell  ;
+M: ppc %set-vm-field [ vm-reg ] dip %store-cell ;
 
-M: ppc %unbox-alien ( dst src -- )
+M: ppc %unbox-alien
     scratch-reg alien-offset LI scratch-reg %load-cell-x ;
 
 ! Convert a c-ptr object to a raw C pointer.
@@ -706,7 +700,7 @@ M:: ppc.64 %convert-integer ( dst src c-type -- )
         { c:ulonglong [ ] }
     } case ;
 
-M: ppc.32 %load-memory-imm ( dst base offset rep c-type -- )
+M: ppc.32 %load-memory-imm
     [
         pick %trap-null
         {
@@ -725,7 +719,7 @@ M: ppc.32 %load-memory-imm ( dst base offset rep c-type -- )
         } case
     ] ?if ;
 
-M: ppc.64 %load-memory-imm ( dst base offset rep c-type -- )
+M: ppc.64 %load-memory-imm
     [
         pick %trap-null
         {
@@ -747,7 +741,7 @@ M: ppc.64 %load-memory-imm ( dst base offset rep c-type -- )
     ] ?if ;
 
 
-M: ppc.32 %load-memory ( dst base displacement scale offset rep c-type -- )
+M: ppc.32 %load-memory
     [ [ 0 assert= ] bi@ ] 2dip
     [
         pick %trap-null
@@ -767,7 +761,7 @@ M: ppc.32 %load-memory ( dst base displacement scale offset rep c-type -- )
         } case
     ] ?if ;
 
-M: ppc.64 %load-memory ( dst base displacement scale offset rep c-type -- )
+M: ppc.64 %load-memory
     [ [ 0 assert= ] bi@ ] 2dip
     [
         pick %trap-null
@@ -790,7 +784,7 @@ M: ppc.64 %load-memory ( dst base displacement scale offset rep c-type -- )
     ] ?if ;
 
 
-M: ppc.32 %store-memory-imm ( src base offset rep c-type -- )
+M: ppc.32 %store-memory-imm
     [
         {
             { c:char   [ STB ] }
@@ -808,7 +802,7 @@ M: ppc.32 %store-memory-imm ( src base offset rep c-type -- )
         } case
     ] ?if ;
 
-M: ppc.64 %store-memory-imm ( src base offset rep c-type -- )
+M: ppc.64 %store-memory-imm
     [
         {
             { c:char      [ STB ] }
@@ -828,7 +822,7 @@ M: ppc.64 %store-memory-imm ( src base offset rep c-type -- )
         } case
     ] ?if ;
 
-M: ppc.32 %store-memory ( src base displacement scale offset rep c-type -- )
+M: ppc.32 %store-memory
     [ [ 0 assert= ] bi@ ] 2dip
     [
         {
@@ -847,7 +841,7 @@ M: ppc.32 %store-memory ( src base displacement scale offset rep c-type -- )
         } case
     ] ?if ;
 
-M: ppc.64 %store-memory ( src base displacement scale offset rep c-type -- )
+M: ppc.64 %store-memory
     [ [ 0 assert= ] bi@ ] 2dip
     [
         {
@@ -914,7 +908,7 @@ M:: ppc %check-nursery-branch ( label size cc temp1 temp2 -- )
         { cc/<= [ 0 label BGT ] }
     } case ;
 
-M: ppc %call-gc ( gc-map -- )
+M: ppc %call-gc
     \ minor-gc %call gc-map-here ;
 
 M:: ppc %prologue ( stack-size -- )
@@ -1033,7 +1027,7 @@ M:: ppc %compare-float-unordered-branch ( label src1 src2 cc -- )
     src1 src2 cc \ (%compare-float-unordered) (%compare-float) :> ( branch1 branch2 )
     label branch1 branch2 (%branch) ;
 
-M: ppc %spill ( src rep dst -- )
+M: ppc %spill
     n>> spill@ swap  {
         { int-rep    [ [ 1 ] dip %store-cell ] }
         { tagged-rep [ [ 1 ] dip %store-cell ] }
@@ -1043,7 +1037,7 @@ M: ppc %spill ( src rep dst -- )
         { scalar-rep [ scratch-reg swap LI 1 scratch-reg STVX ] }
     } case ;
 
-M: ppc %reload ( dst rep src -- )
+M: ppc %reload
     n>> spill@ swap {
         { int-rep    [ [ 1 ] dip %load-cell ] }
         { tagged-rep [ [ 1 ] dip %load-cell ] }
@@ -1053,11 +1047,11 @@ M: ppc %reload ( dst rep src -- )
         { scalar-rep [ scratch-reg swap LI 1 scratch-reg LVX ] }
     } case ;
 
-M: ppc immediate-arithmetic? ( n -- ? ) -32768 32767 between? ;
-M: ppc immediate-bitwise?    ( n -- ? ) 0 65535 between? ;
-M: ppc immediate-store?      ( n -- ? ) immediate-comparand? ;
+M: ppc immediate-arithmetic? -32768 32767 between? ;
+M: ppc immediate-bitwise?    0 65535 between? ;
+M: ppc immediate-store?      immediate-comparand? ;
 
-M: ppc enable-cpu-features ( -- )
+M: ppc enable-cpu-features
     enable-float-intrinsics ;
 
 USE: vocabs
index 7dbf72cb74c45411030d34f6bb959b47c8dde267..8e7e7953be028804071c7e198062bd0ec3c5467b 100644 (file)
@@ -26,18 +26,18 @@ M: x86.32 rs-reg EDI ;
 M: x86.32 stack-reg ESP ;
 M: x86.32 frame-reg EBP ;
 
-M: x86.32 immediate-comparand? ( obj -- ? ) drop t ;
+M: x86.32 immediate-comparand? drop t ;
 
 M:: x86.32 %load-vector ( dst val rep -- )
     dst 0 [] rep copy-memory* val rc-absolute rel-binary-literal ;
 
-M: x86.32 %vm-field ( dst field -- )
+M: x86.32 %vm-field
     [ 0 [] MOV ] dip rc-absolute-cell rel-vm ;
 
-M: x86.32 %set-vm-field ( dst field -- )
+M: x86.32 %set-vm-field
     [ 0 [] swap MOV ] dip rc-absolute-cell rel-vm ;
 
-M: x86.32 %vm-field-ptr ( dst field -- )
+M: x86.32 %vm-field-ptr
     [ 0 MOV ] dip rc-absolute-cell rel-vm ;
 
 M: x86.32 %mark-card
@@ -61,7 +61,7 @@ M: x86.32 vm-stack-space 16 ;
 : save-vm-ptr ( n -- )
     stack@ 0 MOV 0 rc-absolute-cell rel-vm ;
 
-M: x86.32 return-struct-in-registers? ( c-type -- ? )
+M: x86.32 return-struct-in-registers?
     lookup-c-type
     [ return-in-registers?>> ]
     [ heap-size { 1 2 4 8 } member? ] bi
@@ -87,7 +87,7 @@ M: x86.32 return-regs
 M: x86.32 %prepare-jump
     pic-tail-reg 0 MOV xt-tail-pic-offset rc-absolute-cell rel-here ;
 
-M: x86.32 %load-stack-param ( dst rep n -- )
+M: x86.32 %load-stack-param
     next-stack@ swap pick register? [ %copy ] [
         {
             { int-rep [ [ EAX ] dip MOV ?spill-slot EAX MOV ] }
@@ -96,7 +96,7 @@ M: x86.32 %load-stack-param ( dst rep n -- )
         } case
     ] if ;
 
-M: x86.32 %store-stack-param ( src rep n -- )
+M: x86.32 %store-stack-param
     stack@ swap pick register? [ swapd %copy ] [
         {
             { int-rep [ [ [ EAX ] dip ?spill-slot MOV ] [ EAX MOV ] bi* ] }
@@ -115,7 +115,7 @@ M: x86.32 %store-stack-param ( src rep n -- )
         dst ?spill-slot x87-insn execute
     ] if ; inline
 
-M: x86.32 %load-reg-param ( vreg rep reg -- )
+M: x86.32 %load-reg-param
     swap {
         { int-rep [ int-rep %copy ] }
         { float-rep [ drop \ FSTPS float-rep load-float-return ] }
@@ -132,14 +132,14 @@ M: x86.32 %load-reg-param ( vreg rep reg -- )
         src ?spill-slot x87-insn execute
     ] if ; inline
 
-M: x86.32 %store-reg-param ( vreg rep reg -- )
+M: x86.32 %store-reg-param
     swap {
         { int-rep [ swap int-rep %copy ] }
         { float-rep [ drop \ FLDS float-rep store-float-return ] }
         { double-rep [ drop \ FLDL double-rep store-float-return ] }
     } case ;
 
-M: x86.32 %discard-reg-param ( rep reg -- )
+M: x86.32 %discard-reg-param
     drop {
         { int-rep [ ] }
         { float-rep [ ST0 FSTP ] }
@@ -179,12 +179,12 @@ M:: x86.32 %box-long-long ( dst src1 src2 func gc-map -- )
 M: x86.32 %c-invoke
     [ 0 CALL rc-relative rel-dlsym ] dip gc-map-here ;
 
-M: x86.32 %begin-callback ( -- )
+M: x86.32 %begin-callback
     0 save-vm-ptr
     4 stack@ 0 MOV
     "begin_callback" f f %c-invoke ;
 
-M: x86.32 %end-callback ( -- )
+M: x86.32 %end-callback
     0 save-vm-ptr
     "end_callback" f f %c-invoke ;
 
@@ -192,7 +192,7 @@ M: x86.32 %end-callback ( -- )
     ! MINGW ABI incompatibility disaster
     [ large-struct? ] [ mingw eq? os windows? not or ] bi* and ;
 
-M: x86.32 %prepare-var-args ( reg-inputs -- ) drop ;
+M: x86.32 %prepare-var-args drop ;
 
 M:: x86.32 stack-cleanup ( stack-size return abi -- n )
     ! a) Functions which are stdcall/fastcall/thiscall have to
@@ -205,7 +205,7 @@ M:: x86.32 stack-cleanup ( stack-size return abi -- n )
         [ 0 ]
     } cond ;
 
-M: x86.32 %cleanup ( n -- )
+M: x86.32 %cleanup
     [ ESP swap SUB ] unless-zero ;
 
 M: x86.32 %safepoint
@@ -224,7 +224,7 @@ M: x86.32 flatten-struct-type
 
 M: x86.32 struct-return-on-stack? os linux? not ;
 
-M: x86.32 (cpuid) ( eax ecx regs -- )
+M: x86.32 (cpuid)
     void { uint uint void* } cdecl [
         ! Save ds-reg, rs-reg
         EDI PUSH
index f098b6339ca420d39344056d8133f940db7f6bbe..1e19b39fd75755c23488d2d55106667aeac106d0 100644 (file)
@@ -40,16 +40,16 @@ M: x86.64 machine-registers
 : vm-reg ( -- reg ) R13 ; inline
 : nv-reg ( -- reg ) RBX ; inline
 
-M: x86.64 %vm-field ( dst offset -- )
+M: x86.64 %vm-field
     [ vm-reg ] dip [+] MOV ;
 
 M:: x86.64 %load-vector ( dst val rep -- )
     dst 0 [RIP+] rep copy-memory* val rc-relative rel-binary-literal ;
 
-M: x86.64 %set-vm-field ( src offset -- )
+M: x86.64 %set-vm-field
     [ vm-reg ] dip [+] swap MOV ;
 
-M: x86.64 %vm-field-ptr ( dst offset -- )
+M: x86.64 %vm-field-ptr
     [ vm-reg ] dip [+] LEA ;
 
 M: x86.64 %prepare-jump
@@ -83,7 +83,7 @@ M:: x86.64 %load-reg-param ( vreg rep reg -- )
 M:: x86.64 %store-reg-param ( vreg rep reg -- )
     reg vreg rep %copy ;
 
-M: x86.64 %discard-reg-param ( rep reg -- )
+M: x86.64 %discard-reg-param
     2drop ;
 
 M:: x86.64 %unbox ( dst src func rep -- )
@@ -102,12 +102,12 @@ M: x86.64 %c-invoke
     [ R11 0 MOV rc-absolute-cell rel-dlsym R11 CALL ] dip
     gc-map-here ;
 
-M: x86.64 %begin-callback ( -- )
+M: x86.64 %begin-callback
     param-reg-0 vm-reg MOV
     param-reg-1 0 MOV
     "begin_callback" f f %c-invoke ;
 
-M: x86.64 %end-callback ( -- )
+M: x86.64 %end-callback
     param-reg-0 vm-reg MOV
     "end_callback" f f %c-invoke ;
 
@@ -122,7 +122,7 @@ M: x86.64 long-long-on-stack? f ;
 
 M: x86.64 struct-return-on-stack? f ;
 
-M: x86.64 (cpuid) ( rax rcx regs -- )
+M: x86.64 (cpuid)
     void { uint uint void* } cdecl [
         RAX param-reg-0 MOV
         RCX param-reg-1 MOV
index f5df862848f6e3e1b013465edcc352da6fd53776..336bca03cca5c2c1fc1f171514ad9d8115619012 100644 (file)
@@ -38,14 +38,14 @@ M: x86.64 reserved-stack-space 0 ;
         ] [ reps ] if
     ] [ reps ] if ;
 
-M: x86.64 flatten-struct-type ( c-type -- seq )
+M: x86.64 flatten-struct-type
     dup heap-size 16 <=
     [ flatten-small-struct record-reg-reps ] [
         call-next-method unrecord-reg-reps
         [ first t f 3array ] map
     ] if ;
 
-M: x86.64 return-struct-in-registers? ( c-type -- ? )
+M: x86.64 return-struct-in-registers?
     heap-size 2 cells <= ;
 
 M: x86.64 dummy-stack-params? f ;
@@ -54,6 +54,6 @@ M: x86.64 dummy-int-params? f ;
 
 M: x86.64 dummy-fp-params? f ;
 
-M: x86.64 %prepare-var-args ( reg-inputs -- )
+M: x86.64 %prepare-var-args
     [ second reg-class-of float-regs? ] count 8 min
     [ EAX EAX XOR ] [ <byte> AL swap MOV ] if-zero ;
index 14ca118f7c267f07ab91daabff5cdf1d66dc8d1c..a6738b2d12739019ae3a1c64b2de741df48c7d83 100644 (file)
@@ -13,7 +13,7 @@ M: x86.64 param-regs
 
 M: x86.64 reserved-stack-space 4 cells ;
 
-M: x86.64 return-struct-in-registers? ( c-type -- ? )
+M: x86.64 return-struct-in-registers?
     heap-size { 1 2 4 8 } member? ;
 
 M: x86.64 value-struct? heap-size { 1 2 4 8 } member? ;
@@ -24,5 +24,4 @@ M: x86.64 dummy-int-params? t ;
 
 M: x86.64 dummy-fp-params? t ;
 
-M: x86.64 %prepare-var-args ( reg-inputs -- )
-    drop ;
+M: x86.64 %prepare-var-args drop ;
index 1670db2f59f0d9e0e487cb7d7cca8b2b42b29b47..46baef612180a4e23baaa5ae62ca2e4c1c637afd 100644 (file)
@@ -338,7 +338,7 @@ M: immediate SBB { 0b011 t 0x80 } immediate-1/4 ;
 M: operand SBB 0o030 2-operand ;
 
 GENERIC: AND ( dst src -- )
-M: immediate AND ( dst src -- )
+M: immediate AND
     maybe-zero-extend { 0b100 t 0x80 } immediate-1/4 ;
 M: operand AND 0o040 2-operand ;
 
@@ -357,13 +357,11 @@ M: immediate XOR { 0b110 t 0x80 } immediate-1/4 ;
 M: operand XOR 0o060 2-operand ;
 
 GENERIC: CMP ( dst src -- )
-M: immediate CMP ( dst src -- )
-    { 0b111 t 0x80 } immediate-1/4 ;
+M: immediate CMP { 0b111 t 0x80 } immediate-1/4 ;
 M: operand CMP 0o070 2-operand ;
 
 GENERIC: TEST ( dst src -- )
-M: immediate TEST ( dst src -- )
-    maybe-zero-extend { 0b0 t 0xf7 } immediate-4 ;
+M: immediate TEST maybe-zero-extend { 0b0 t 0xf7 } immediate-4 ;
 M: operand TEST 0o204 2-operand ;
 
 : XCHG ( dst src -- ) 0o207 2-operand ;
@@ -371,20 +369,20 @@ M: operand TEST 0o204 2-operand ;
 : BSR ( dst src -- ) { 0x0f 0xbd } (2-operand) ;
 
 GENERIC: BT ( value n -- )
-M: immediate BT ( value n -- ) { 0b100 t { 0x0f 0xba } } immediate-1* ;
-M: operand   BT ( value n -- ) swap { 0x0f 0xa3 } (2-operand) ;
+M: immediate BT { 0b100 t { 0x0f 0xba } } immediate-1* ;
+M: operand   BT swap { 0x0f 0xa3 } (2-operand) ;
 
 GENERIC: BTC ( value n -- )
-M: immediate BTC ( value n -- ) { 0b111 t { 0x0f 0xba } } immediate-1* ;
-M: operand   BTC ( value n -- ) swap { 0x0f 0xbb } (2-operand) ;
+M: immediate BTC { 0b111 t { 0x0f 0xba } } immediate-1* ;
+M: operand   BTC swap { 0x0f 0xbb } (2-operand) ;
 
 GENERIC: BTR ( value n -- )
-M: immediate BTR ( value n -- ) { 0b110 t { 0x0f 0xba } } immediate-1* ;
-M: operand   BTR ( value n -- ) swap { 0x0f 0xb3 } (2-operand) ;
+M: immediate BTR { 0b110 t { 0x0f 0xba } } immediate-1* ;
+M: operand   BTR swap { 0x0f 0xb3 } (2-operand) ;
 
 GENERIC: BTS ( value n -- )
-M: immediate BTS ( value n -- ) { 0b101 t { 0x0f 0xba } } immediate-1* ;
-M: operand   BTS ( value n -- ) swap { 0x0f 0xab } (2-operand) ;
+M: immediate BTS { 0b101 t { 0x0f 0xba } } immediate-1* ;
+M: operand   BTS swap { 0x0f 0xab } (2-operand) ;
 
 : NOT  ( dst -- ) { 0b010 t 0xf7 } 1-operand ;
 : NEG  ( dst -- ) { 0b011 t 0xf7 } 1-operand ;
index dfdd19efc304f2396003925c82de66ab24f7be53..c7c618790482d193d80a17e7faff78f9291c45d2 100644 (file)
@@ -35,16 +35,16 @@ M: x86 integer-float-needs-stack-frame? f ;
 M: x86 %integer>float [ drop dup XORPS ] [ CVTSI2SD ] 2bi ;
 M: x86 %float>integer CVTTSD2SI ;
 
-M: x86 %compare-float-ordered ( dst src1 src2 cc temp -- )
+M: x86 %compare-float-ordered
     [ COMISD ] (%compare-float) ;
 
-M: x86 %compare-float-unordered ( dst src1 src2 cc temp -- )
+M: x86 %compare-float-unordered
     [ UCOMISD ] (%compare-float) ;
 
-M: x86 %compare-float-ordered-branch ( label src1 src2 cc -- )
+M: x86 %compare-float-ordered-branch
     [ COMISD ] (%compare-float-branch) ;
 
-M: x86 %compare-float-unordered-branch ( label src1 src2 cc -- )
+M: x86 %compare-float-unordered-branch
     [ UCOMISD ] (%compare-float-branch) ;
 
 ! SIMD
@@ -262,7 +262,7 @@ M: x86 %shuffle-vector-halves-imm-reps
         { sse2? { double-2-rep } }
     } available-reps ;
 
-M: x86 %shuffle-vector ( dst src shuffle rep -- )
+M: x86 %shuffle-vector
     two-operand PSHUFB ;
 
 M: x86 %shuffle-vector-reps
@@ -331,14 +331,14 @@ M: x86 %unsigned-pack-vector-reps
         { sse4.1? { int-4-rep } }
     } available-reps ;
 
-M: x86 %tail>head-vector ( dst src rep -- )
+M: x86 %tail>head-vector
     dup {
         { float-4-rep [ drop UNPCKHPD ] }
         { double-2-rep [ drop UNPCKHPD ] }
         [ drop [ %copy ] [ drop PUNPCKHQDQ ] 3bi ]
     } case ;
 
-M: x86 %unpack-vector-head ( dst src rep -- )
+M: x86 %unpack-vector-head
     {
         { char-16-rep  [ PMOVSXBW ] }
         { uchar-16-rep [ PMOVZXBW ] }
@@ -349,13 +349,13 @@ M: x86 %unpack-vector-head ( dst src rep -- )
         { float-4-rep  [ CVTPS2PD ] }
     } case ;
 
-M: x86 %unpack-vector-head-reps ( -- reps )
+M: x86 %unpack-vector-head-reps
     {
         { sse2? { float-4-rep } }
         { sse4.1? { char-16-rep uchar-16-rep short-8-rep ushort-8-rep int-4-rep uint-4-rep } }
     } available-reps ;
 
-M: x86 %integer>float-vector ( dst src rep -- )
+M: x86 %integer>float-vector
     {
         { int-4-rep [ CVTDQ2PS ] }
     } case ;
@@ -365,7 +365,7 @@ M: x86 %integer>float-vector-reps
         { sse2? { int-4-rep } }
     } available-reps ;
 
-M: x86 %float>integer-vector ( dst src rep -- )
+M: x86 %float>integer-vector
     {
         { float-4-rep [ CVTTPS2DQ ] }
     } case ;
@@ -405,7 +405,7 @@ M: x86 %float>integer-vector-reps
         { cc> [ [ PCMPGTQ ] [ PCMPGTD ] [ PCMPGTW ] [ PCMPGTB ] (%compare-int-vector) ] }
     } case ;
 
-M: x86 %compare-vector ( dst src1 src2 rep cc -- )
+M: x86 %compare-vector
     [ [ two-operand ] keep ] dip
     over float-vector-rep?
     [ %compare-float-vector ]
@@ -481,7 +481,7 @@ M: x86 %compare-vector-ccs
         [ drop PMOVMSKB 0xffff ]
     } case ;
 
-M: x86 %move-vector-mask ( dst src rep -- )
+M: x86 %move-vector-mask
     (%move-vector-mask) drop ;
 
 M: x86 %move-vector-mask-reps
@@ -512,7 +512,7 @@ M: x86 %test-vector-reps
         { sse2? { double-2-rep char-16-rep uchar-16-rep short-8-rep ushort-8-rep int-4-rep uint-4-rep longlong-2-rep ulonglong-2-rep } }
     } available-reps ;
 
-M: x86 %add-vector ( dst src1 src2 rep -- )
+M: x86 %add-vector
     [ two-operand ] keep
     {
         { float-4-rep [ ADDPS ] }
@@ -533,7 +533,7 @@ M: x86 %add-vector-reps
         { sse2? { double-2-rep char-16-rep uchar-16-rep short-8-rep ushort-8-rep int-4-rep uint-4-rep longlong-2-rep ulonglong-2-rep } }
     } available-reps ;
 
-M: x86 %saturated-add-vector ( dst src1 src2 rep -- )
+M: x86 %saturated-add-vector
     [ two-operand ] keep
     {
         { char-16-rep [ PADDSB ] }
@@ -547,7 +547,7 @@ M: x86 %saturated-add-vector-reps
         { sse2? { char-16-rep uchar-16-rep short-8-rep ushort-8-rep } }
     } available-reps ;
 
-M: x86 %add-sub-vector ( dst src1 src2 rep -- )
+M: x86 %add-sub-vector
     [ two-operand ] keep
     {
         { float-4-rep [ ADDSUBPS ] }
@@ -559,7 +559,7 @@ M: x86 %add-sub-vector-reps
         { sse3? { float-4-rep double-2-rep } }
     } available-reps ;
 
-M: x86 %sub-vector ( dst src1 src2 rep -- )
+M: x86 %sub-vector
     [ two-operand ] keep
     {
         { float-4-rep [ SUBPS ] }
@@ -580,7 +580,7 @@ M: x86 %sub-vector-reps
         { sse2? { double-2-rep char-16-rep uchar-16-rep short-8-rep ushort-8-rep int-4-rep uint-4-rep longlong-2-rep ulonglong-2-rep } }
     } available-reps ;
 
-M: x86 %saturated-sub-vector ( dst src1 src2 rep -- )
+M: x86 %saturated-sub-vector
     [ two-operand ] keep
     {
         { char-16-rep [ PSUBSB ] }
@@ -594,7 +594,7 @@ M: x86 %saturated-sub-vector-reps
         { sse2? { char-16-rep uchar-16-rep short-8-rep ushort-8-rep } }
     } available-reps ;
 
-M: x86 %mul-vector ( dst src1 src2 rep -- )
+M: x86 %mul-vector
     [ two-operand ] keep
     {
         { float-4-rep [ MULPS ] }
@@ -612,7 +612,7 @@ M: x86 %mul-vector-reps
         { sse4.1? { int-4-rep uint-4-rep } }
     } available-reps ;
 
-M: x86 %mul-high-vector ( dst src1 src2 rep -- )
+M: x86 %mul-high-vector
     [ two-operand ] keep
     {
         { short-8-rep  [ PMULHW ] }
@@ -624,7 +624,7 @@ M: x86 %mul-high-vector-reps
         { sse2? { short-8-rep ushort-8-rep } }
     } available-reps ;
 
-M: x86 %mul-horizontal-add-vector ( dst src1 src2 rep -- )
+M: x86 %mul-horizontal-add-vector
     [ two-operand ] keep
     {
         { char-16-rep  [ PMADDUBSW ] }
@@ -638,7 +638,7 @@ M: x86 %mul-horizontal-add-vector-reps
         { ssse3? { char-16-rep uchar-16-rep } }
     } available-reps ;
 
-M: x86 %div-vector ( dst src1 src2 rep -- )
+M: x86 %div-vector
     [ two-operand ] keep
     {
         { float-4-rep [ DIVPS ] }
@@ -651,7 +651,7 @@ M: x86 %div-vector-reps
         { sse2? { double-2-rep } }
     } available-reps ;
 
-M: x86 %min-vector ( dst src1 src2 rep -- )
+M: x86 %min-vector
     [ two-operand ] keep
     {
         { char-16-rep [ PMINSB ] }
@@ -671,7 +671,7 @@ M: x86 %min-vector-reps
         { sse4.1? { char-16-rep ushort-8-rep int-4-rep uint-4-rep } }
     } available-reps ;
 
-M: x86 %max-vector ( dst src1 src2 rep -- )
+M: x86 %max-vector
     [ two-operand ] keep
     {
         { char-16-rep [ PMAXSB ] }
@@ -691,7 +691,7 @@ M: x86 %max-vector-reps
         { sse4.1? { char-16-rep ushort-8-rep int-4-rep uint-4-rep } }
     } available-reps ;
 
-M: x86 %avg-vector ( dst src1 src2 rep -- )
+M: x86 %avg-vector
     [ two-operand ] keep
     {
         { uchar-16-rep [ PAVGB ] }
@@ -726,7 +726,7 @@ M: x86 %sad-vector-reps
         { sse2? { uchar-16-rep } }
     } available-reps ;
 
-M: x86 %horizontal-add-vector ( dst src1 src2 rep -- )
+M: x86 %horizontal-add-vector
     [ two-operand ] keep
     signed-rep {
         { float-4-rep  [ HADDPS ] }
@@ -741,7 +741,7 @@ M: x86 %horizontal-add-vector-reps
         { ssse3? { int-4-rep uint-4-rep short-8-rep ushort-8-rep } }
     } available-reps ;
 
-M: x86 %horizontal-shl-vector-imm ( dst src1 src2 rep -- )
+M: x86 %horizontal-shl-vector-imm
     two-operand PSLLDQ ;
 
 M: x86 %horizontal-shl-vector-imm-reps
@@ -749,7 +749,7 @@ M: x86 %horizontal-shl-vector-imm-reps
         { sse2? { char-16-rep uchar-16-rep short-8-rep ushort-8-rep int-4-rep uint-4-rep longlong-2-rep ulonglong-2-rep float-4-rep double-2-rep } }
     } available-reps ;
 
-M: x86 %horizontal-shr-vector-imm ( dst src1 src2 rep -- )
+M: x86 %horizontal-shr-vector-imm
     two-operand PSRLDQ ;
 
 M: x86 %horizontal-shr-vector-imm-reps
@@ -757,7 +757,7 @@ M: x86 %horizontal-shr-vector-imm-reps
         { sse2? { char-16-rep uchar-16-rep short-8-rep ushort-8-rep int-4-rep uint-4-rep longlong-2-rep ulonglong-2-rep float-4-rep double-2-rep } }
     } available-reps ;
 
-M: x86 %abs-vector ( dst src rep -- )
+M: x86 %abs-vector
     {
         { char-16-rep [ PABSB ] }
         { short-8-rep [ PABSW ] }
@@ -769,7 +769,7 @@ M: x86 %abs-vector-reps
         { ssse3? { char-16-rep short-8-rep int-4-rep } }
     } available-reps ;
 
-M: x86 %sqrt-vector ( dst src rep -- )
+M: x86 %sqrt-vector
     {
         { float-4-rep [ SQRTPS ] }
         { double-2-rep [ SQRTPD ] }
@@ -781,7 +781,7 @@ M: x86 %sqrt-vector-reps
         { sse2? { double-2-rep } }
     } available-reps ;
 
-M: x86 %and-vector ( dst src1 src2 rep -- )
+M: x86 %and-vector
     [ two-operand ] keep
     {
         { float-4-rep [ ANDPS ] }
@@ -795,7 +795,7 @@ M: x86 %and-vector-reps
         { sse2? { double-2-rep char-16-rep uchar-16-rep short-8-rep ushort-8-rep int-4-rep uint-4-rep longlong-2-rep ulonglong-2-rep } }
     } available-reps ;
 
-M: x86 %andn-vector ( dst src1 src2 rep -- )
+M: x86 %andn-vector
     [ two-operand ] keep
     {
         { float-4-rep [ ANDNPS ] }
@@ -809,7 +809,7 @@ M: x86 %andn-vector-reps
         { sse2? { double-2-rep char-16-rep uchar-16-rep short-8-rep ushort-8-rep int-4-rep uint-4-rep longlong-2-rep ulonglong-2-rep } }
     } available-reps ;
 
-M: x86 %or-vector ( dst src1 src2 rep -- )
+M: x86 %or-vector
     [ two-operand ] keep
     {
         { float-4-rep [ ORPS ] }
@@ -823,7 +823,7 @@ M: x86 %or-vector-reps
         { sse2? { double-2-rep char-16-rep uchar-16-rep short-8-rep ushort-8-rep int-4-rep uint-4-rep longlong-2-rep ulonglong-2-rep } }
     } available-reps ;
 
-M: x86 %xor-vector ( dst src1 src2 rep -- )
+M: x86 %xor-vector
     [ two-operand ] keep
     {
         { float-4-rep [ XORPS ] }
@@ -837,7 +837,7 @@ M: x86 %xor-vector-reps
         { sse2? { double-2-rep char-16-rep uchar-16-rep short-8-rep ushort-8-rep int-4-rep uint-4-rep longlong-2-rep ulonglong-2-rep } }
     } available-reps ;
 
-M: x86 %shl-vector ( dst src1 src2 rep -- )
+M: x86 %shl-vector
     [ two-operand ] keep
     {
         { short-8-rep [ PSLLW ] }
@@ -853,7 +853,7 @@ M: x86 %shl-vector-reps
         { sse2? { short-8-rep ushort-8-rep int-4-rep uint-4-rep longlong-2-rep ulonglong-2-rep } }
     } available-reps ;
 
-M: x86 %shr-vector ( dst src1 src2 rep -- )
+M: x86 %shr-vector
     [ two-operand ] keep
     {
         { short-8-rep [ PSRAW ] }
@@ -911,9 +911,9 @@ M: x86 %integer>scalar drop MOVD ;
         ] }
     } case ;
 
-M: x86.32 %scalar>integer ( dst src rep -- ) %scalar>integer-32 ;
+M: x86.32 %scalar>integer %scalar>integer-32 ;
 
-M: x86.64 %scalar>integer ( dst src rep -- )
+M: x86.64 %scalar>integer
     {
         { longlong-scalar-rep  [ MOVD ] }
         { ulonglong-scalar-rep [ MOVD ] }
index e823ad72b5ca96eea2d2017d716eee63e62f79d2..964af77580c34f0100458a1d358c952b9244084e 100644 (file)
@@ -46,7 +46,7 @@ HOOK: pic-tail-reg cpu ( -- reg )
 
 : align-stack ( n -- n' ) 16 align ;
 
-M: x86 stack-frame-size ( stack-frame -- i )
+M: x86 stack-frame-size
     (stack-frame-size)
     reserved-stack-space +
     cell +
@@ -60,7 +60,7 @@ M: x86 test-instruction? t ;
 
 M: x86 immediate-store? immediate-comparand? ;
 
-M: x86 %load-immediate ( reg val -- )
+M: x86 %load-immediate
     { fixnum } declare [ 32-bit-version-of dup XOR ] [ MOV ] if-zero ;
 
 M: x86 %load-reference
@@ -90,13 +90,13 @@ M: x86 %replace-imm
         [ [ 0 MOV ] dip rc-absolute rel-literal ]
     } cond ;
 
-M: x86 %clear ( loc -- )
+M: x86 %clear
     297 swap %replace-imm ;
 
-M: x86 %inc ( loc -- )
+M: x86 %inc
     [ n>> ] [ ds-loc? ds-reg rs-reg ? ] bi (%inc) ;
 
-M: x86 %call ( word -- ) 0 CALL rc-relative rel-word-pic ;
+M: x86 %call 0 CALL rc-relative rel-word-pic ;
 
 : xt-tail-pic-offset ( -- n )
     ! See the comment in vm/cpu-x86.hpp
@@ -104,21 +104,21 @@ M: x86 %call ( word -- ) 0 CALL rc-relative rel-word-pic ;
 
 HOOK: %prepare-jump cpu ( -- )
 
-M: x86 %jump ( word -- )
+M: x86 %jump
     %prepare-jump
     0 JMP rc-relative rel-word-pic-tail ;
 
-M: x86 %jump-label ( label -- ) 0 JMP rc-relative label-fixup ;
+M: x86 %jump-label 0 JMP rc-relative label-fixup ;
 
-M: x86 %return ( -- ) 0 RET ;
+M: x86 %return 0 RET ;
 
 : (%slot) ( obj slot scale tag -- op ) neg <indirect> ; inline
 : (%slot-imm) ( obj slot tag -- op ) slot-offset [+] ; inline
 
-M: x86 %slot ( dst obj slot scale tag -- ) (%slot) MOV ;
-M: x86 %slot-imm ( dst obj slot tag -- ) (%slot-imm) MOV ;
-M: x86 %set-slot ( src obj slot scale tag -- ) (%slot) swap MOV ;
-M: x86 %set-slot-imm ( src obj slot tag -- ) (%slot-imm) swap MOV ;
+M: x86 %slot (%slot) MOV ;
+M: x86 %slot-imm (%slot-imm) MOV ;
+M: x86 %set-slot (%slot) swap MOV ;
+M: x86 %set-slot-imm (%slot-imm) swap MOV ;
 
 :: two-operand ( dst src1 src2 rep -- dst src )
     dst src2 eq? dst src1 eq? not and [ "Cannot handle this case" throw ] when
@@ -130,13 +130,13 @@ M: x86 %set-slot-imm ( src obj slot tag -- ) (%slot-imm) swap MOV ;
     dst ; inline
 
 M: x86 %add     2over eq? [ nip ADD ] [ [+] LEA ] if ;
-M: x86 %add-imm ( dst src1 src2 -- )
+M: x86 %add-imm
     2over eq? [
         nip { { 1 [ INC ] } { -1 [ DEC ] } [ ADD ] } case
     ] [ [+] LEA ] if ;
 
 M: x86 %sub     int-rep two-operand SUB ;
-M: x86 %sub-imm ( dst src1 src2 -- )
+M: x86 %sub-imm
     2over eq? [
         nip { { 1 [ DEC ] } { -1 [ INC ] } [ SUB ] } case
     ] [ neg [+] LEA ] if ;
@@ -173,7 +173,7 @@ M: object copy-memory* copy-register* ;
 
 : ?spill-slot ( obj -- obj ) dup spill-slot? [ n>> spill@ ] when ;
 
-M: x86 %copy ( dst src rep -- )
+M: x86 %copy
     2over eq? [ 3drop ] [
         [ [ ?spill-slot ] bi@ ] dip
         2over [ register? ] both? [ copy-register* ] [ copy-memory* ] if
@@ -186,16 +186,16 @@ M: x86 %copy ( dst src rep -- )
         { cc/o [ JNO ] }
     } case ; inline
 
-M: x86 %fixnum-add ( label dst src1 src2 cc -- )
+M: x86 %fixnum-add
     [ ADD ] fixnum-overflow ;
 
-M: x86 %fixnum-sub ( label dst src1 src2 cc -- )
+M: x86 %fixnum-sub
     [ SUB ] fixnum-overflow ;
 
-M: x86 %fixnum-mul ( label dst src1 src2 cc -- )
+M: x86 %fixnum-mul
     [ IMUL2 ] fixnum-overflow ;
 
-M: x86 %unbox-alien ( dst src -- )
+M: x86 %unbox-alien
     alien-offset [+] MOV ;
 
 M:: x86 %unbox-any-c-ptr ( dst src -- )
@@ -364,7 +364,7 @@ M: x86.64 has-small-reg? 2drop t ;
 : %sign-extend ( dst src bits -- )
     [ MOVSX ] (%convert-integer) ; inline
 
-M: x86 %convert-integer ( dst src c-type -- )
+M: x86 %convert-integer
     {
         { c:char   [ 8 %sign-extend ] }
         { c:uchar  [ 8 %zero-extend ] }
@@ -411,10 +411,10 @@ M: x86 %convert-integer ( dst src c-type -- )
         } case
     ] [ nipd %copy ] ?if ;
 
-M: x86 %load-memory ( dst base displacement scale offset rep c-type -- )
+M: x86 %load-memory
     (%memory) (%load-memory) ;
 
-M: x86 %load-memory-imm ( dst base offset rep c-type -- )
+M: x86 %load-memory-imm
     (%memory-imm) (%load-memory) ;
 
 : (%store-memory) ( src exclude address rep c-type -- )
@@ -429,10 +429,10 @@ M: x86 %load-memory-imm ( dst base offset rep c-type -- )
         } case
     ] [ [ nip swap ] dip %copy ] ?if ;
 
-M: x86 %store-memory ( src base displacement scale offset rep c-type -- )
+M: x86 %store-memory
     (%memory) (%store-memory) ;
 
-M: x86 %store-memory-imm ( src base offset rep c-type -- )
+M: x86 %store-memory-imm
     (%memory-imm) (%store-memory) ;
 
 : shift-count? ( reg -- ? ) { ECX RCX } member-eq? ;
@@ -510,16 +510,16 @@ M:: x86 %check-nursery-branch ( label size cc temp1 temp2 -- )
 M: x86 gc-root-offset
     n>> spill-offset special-offset cell + cell /i ;
 
-M: x86 %call-gc ( gc-map -- )
+M: x86 %call-gc
     \ minor-gc %call
     gc-map-here ;
 
-M: x86 %alien-global ( dst symbol library -- )
+M: x86 %alien-global
     [ 0 MOV ] 2dip rc-absolute-cell rel-dlsym ;
 
-M: x86 %prologue ( n -- ) cell - decr-stack-reg ;
+M: x86 %prologue cell - decr-stack-reg ;
 
-M: x86 %epilogue ( n -- ) cell - incr-stack-reg ;
+M: x86 %epilogue cell - incr-stack-reg ;
 
 :: (%boolean) ( dst temp insn -- )
     dst \ f type-number MOV
@@ -610,10 +610,10 @@ M:: x86 %dispatch ( src temp -- )
     [ (align-code) ]
     bi ;
 
-M: x86 %spill ( src rep dst -- )
+M: x86 %spill
     -rot %copy ;
 
-M: x86 %reload ( dst rep src -- )
+M: x86 %reload
     swap %copy ;
 
 M:: x86 %local-allot ( dst size align offset -- )
@@ -661,10 +661,7 @@ M:: x86 %alien-assembly ( varargs? reg-inputs stack-inputs
     reg-outputs [ first3 %load-reg-param ] each
     dead-outputs [ first2 %discard-reg-param ] each ;
 
-M: x86 %alien-invoke ( varargs? reg-inputs stack-inputs
-                       reg-outputs dead-outputs
-                       cleanup stack-size
-                       symbols dll gc-map -- )
+M: x86 %alien-invoke
     '[ _ _ _ %c-invoke ] %alien-assembly ;
 
 M:: x86 %alien-indirect ( src
@@ -681,14 +678,14 @@ M:: x86 %alien-indirect ( src
 
 HOOK: %begin-callback cpu ( -- )
 
-M: x86 %callback-inputs ( reg-outputs stack-outputs -- )
+M: x86 %callback-inputs
     [ [ first3 %load-reg-param ] each ]
     [ [ first3 %load-stack-param ] each ] bi*
     %begin-callback ;
 
 HOOK: %end-callback cpu ( -- )
 
-M: x86 %callback-outputs ( reg-inputs -- )
+M: x86 %callback-outputs
     %end-callback
     [ first3 %store-reg-param ] each ;
 
@@ -708,10 +705,10 @@ M: x86 long-long-odd-register? f ;
 
 M: x86 float-right-align-on-stack? f ;
 
-M: x86 immediate-arithmetic? ( n -- ? )
+M: x86 immediate-arithmetic?
     -0x80000000 0x7fffffff between? ;
 
-M: x86 immediate-bitwise? ( n -- ? )
+M: x86 immediate-bitwise?
     -0x80000000 0x7fffffff between? ;
 
 :: %cmov-float= ( dst src -- )
@@ -778,7 +775,7 @@ M:: x86 %bit-test ( dst src1 src2 temp -- )
     src1 src2 BT
     dst temp \ CMOVB (%boolean) ;
 
-M: x86 enable-cpu-features ( -- )
+M: x86 enable-cpu-features
     enable-min/max
     enable-log2
     enable-bit-test
index f8997b78f754528b7a891e3b2b3e0eee2f4319e3..640d3d7dbbc8216644dda812ac2bd8ca1af1eac7 100644 (file)
@@ -86,14 +86,14 @@ M:: x86 %float>integer ( dst src -- )
     src2 shuffle-down quot call
     ST0 FSTP ; inline
 
-M: x86 %compare-float-ordered ( dst src1 src2 cc temp -- )
+M: x86 %compare-float-ordered
     [ [ FCOMI ] compare-op ] (%compare-float) ;
 
-M: x86 %compare-float-unordered ( dst src1 src2 cc temp -- )
+M: x86 %compare-float-unordered
     [ [ FUCOMI ] compare-op ] (%compare-float) ;
 
-M: x86 %compare-float-ordered-branch ( label src1 src2 cc -- )
+M: x86 %compare-float-ordered-branch
     [ [ FCOMI ] compare-op ] (%compare-float-branch) ;
 
-M: x86 %compare-float-unordered-branch ( label src1 src2 cc -- )
+M: x86 %compare-float-unordered-branch
     [ [ FUCOMI ] compare-op ] (%compare-float-branch) ;
index 9c57ae65b3ede39c88e51a017fc6b466e5ccea27..216b1209071517f8dfdcdcbf8c37e3b42b1531e0 100644 (file)
@@ -26,7 +26,7 @@ HOOK: parse-db-error db-connection ( error -- error' )
 
 : dispose-statements ( assoc -- ) values dispose-each ;
 
-M: db-connection dispose ( db-connection -- )
+M: db-connection dispose
     dup db-connection [
         [ dispose-statements H{ } clone ] change-insert-statements
         [ dispose-statements H{ } clone ] change-update-statements
@@ -76,7 +76,7 @@ GENERIC: bind-tuple ( tuple statement -- )
 
 GENERIC: execute-statement* ( statement type -- )
 
-M: object execute-statement* ( statement type -- )
+M: object execute-statement*
     '[
         _ _ drop query-results dispose
     ] [
@@ -138,9 +138,9 @@ HOOK: begin-transaction db-connection ( -- )
 HOOK: commit-transaction db-connection ( -- )
 HOOK: rollback-transaction db-connection ( -- )
 
-M: db-connection begin-transaction ( -- ) "BEGIN" sql-command ;
-M: db-connection commit-transaction ( -- ) "COMMIT" sql-command ;
-M: db-connection rollback-transaction ( -- ) "ROLLBACK" sql-command ;
+M: db-connection begin-transaction "BEGIN" sql-command ;
+M: db-connection commit-transaction "COMMIT" sql-command ;
+M: db-connection rollback-transaction "ROLLBACK" sql-command ;
 
 : in-transaction? ( -- ? ) in-transaction get ;
 
index b0d9d699130758768bc466be699d3690fe083a1b..ebb3c008adb31e4e196168bf2b63d01953de66fe 100644 (file)
@@ -13,7 +13,7 @@ TUPLE: db-pool < pool db ;
 : with-db-pool ( db quot -- )
     [ <db-pool> ] dip with-pool ; inline
 
-M: db-pool make-connection ( pool -- conn )
+M: db-pool make-connection
     db>> db-open ;
 
 : with-pooled-db ( pool quot -- )
index 5a51dc0e12fb1165c5ca47c3cd96c162146181ca..b56ad0bc11788d1e46dfc5241d7ab3ea76f465ab 100644 (file)
@@ -31,7 +31,7 @@ IN: db.postgresql.lib
 
 ERROR: postgresql-result-null ;
 
-M: postgresql-result-null summary ( obj -- str )
+M: postgresql-result-null summary
     drop "PQexec returned f." ;
 
 : postgresql-result-ok? ( res -- ? )
@@ -126,7 +126,7 @@ M: postgresql-result-null summary ( obj -- str )
 TUPLE: postgresql-malloc-destructor alien ;
 C: <postgresql-malloc-destructor> postgresql-malloc-destructor
 
-M: postgresql-malloc-destructor dispose ( obj -- )
+M: postgresql-malloc-destructor dispose
     alien>> PQfreemem ;
 
 : &postgresql-free ( alien -- alien )
index 12bbd56dcfbcb0d303baf81664a2d1f6e01f2325..34baeba51c22f10f5bacb06f837d50e4f0c899f3 100644 (file)
@@ -25,7 +25,7 @@ TUPLE: postgresql-statement < statement ;
 
 TUPLE: postgresql-result-set < result-set ;
 
-M: postgresql-db db-open ( db -- db-connection )
+M: postgresql-db db-open
     {
         [ host>> ]
         [ port>> ]
@@ -36,46 +36,46 @@ M: postgresql-db db-open ( db -- db-connection )
         [ password>> ]
     } cleave connect-postgres <postgresql-db-connection> ;
 
-M: postgresql-db-connection db-close ( handle -- ) PQfinish ;
+M: postgresql-db-connection db-close PQfinish ;
 
-M: postgresql-statement bind-statement* ( statement -- ) drop ;
+M: postgresql-statement bind-statement* drop ;
 
 GENERIC: postgresql-bind-conversion ( tuple object -- low-level-binding )
 
-M: sql-spec postgresql-bind-conversion ( tuple spec -- object )
+M: sql-spec postgresql-bind-conversion
     slot-name>> swap get-slot-named <low-level-binding> ;
 
-M: literal-bind postgresql-bind-conversion ( tuple literal-bind -- object )
+M: literal-bind postgresql-bind-conversion
     nip value>> <low-level-binding> ;
 
-M: generator-bind postgresql-bind-conversion ( tuple generate-bind -- object )
+M: generator-bind postgresql-bind-conversion
     dup generator-singleton>> eval-generator
     [ swap slot-name>> rot set-slot-named ] [ <low-level-binding> ] bi ;
 
-M: postgresql-statement bind-tuple ( tuple statement -- )
+M: postgresql-statement bind-tuple
     [ nip ] [
         in-params>>
         [ postgresql-bind-conversion ] with map
     ] 2bi
     >>bind-params drop ;
 
-M: postgresql-result-set #rows ( result-set -- n )
+M: postgresql-result-set #rows
     handle>> PQntuples ;
 
-M: postgresql-result-set #columns ( result-set -- n )
+M: postgresql-result-set #columns
     handle>> PQnfields ;
 
 : result-handle-n ( result-set -- handle n )
     [ handle>> ] [ n>> ] bi ;
 
-M: postgresql-result-set row-column ( result-set column -- object )
+M: postgresql-result-set row-column
     [ result-handle-n ] dip pq-get-string ;
 
-M: postgresql-result-set row-column-typed ( result-set column -- object )
+M: postgresql-result-set row-column-typed
     dup pick out-params>> nth type>>
     [ result-handle-n ] 2dip postgresql-column-typed ;
 
-M: postgresql-statement query-results ( query -- result-set )
+M: postgresql-statement query-results
     dup bind-params>> [
         over [ bind-statement ] keep
         do-postgresql-bound-statement
@@ -85,17 +85,17 @@ M: postgresql-statement query-results ( query -- result-set )
     postgresql-result-set new-result-set
     dup init-result-set ;
 
-M: postgresql-result-set advance-row ( result-set -- )
+M: postgresql-result-set advance-row
     [ 1 + ] change-n drop ;
 
-M: postgresql-result-set more-rows? ( result-set -- ? )
+M: postgresql-result-set more-rows?
     [ n>> ] [ max>> ] bi < ;
 
-M: postgresql-statement dispose ( query -- )
+M: postgresql-statement dispose
     dup handle>> PQclear
     f >>handle drop ;
 
-M: postgresql-result-set dispose ( result-set -- )
+M: postgresql-result-set dispose
     [ handle>> PQclear ]
     [
         0 >>n
@@ -103,27 +103,27 @@ M: postgresql-result-set dispose ( result-set -- )
         f >>handle drop
     ] bi ;
 
-M: postgresql-statement prepare-statement ( statement -- )
+M: postgresql-statement prepare-statement
     dup
     [ db-connection get handle>> f ] dip
     [ sql>> ] [ in-params>> ] bi
     length f PQprepare postgresql-error
     >>handle drop ;
 
-M: postgresql-db-connection <simple-statement> ( sql in out -- statement )
+M: postgresql-db-connection <simple-statement>
     postgresql-statement new-statement ;
 
-M: postgresql-db-connection <prepared-statement> ( sql in out -- statement )
+M: postgresql-db-connection <prepared-statement>
     <simple-statement> dup prepare-statement ;
 
 : bind-name% ( -- )
     CHAR: $ 0,
     sql-counter [ inc ] [ get 0# ] bi ;
 
-M: postgresql-db-connection bind% ( spec -- )
+M: postgresql-db-connection bind%
     bind-name% 1, ;
 
-M: postgresql-db-connection bind# ( spec object -- )
+M: postgresql-db-connection bind#
     [ bind-name% f swap type>> ] dip
     <literal-bind> 1, ;
 
@@ -169,7 +169,7 @@ M: postgresql-db-connection bind# ( spec object -- )
         "_seq'');' language sql;" 0%
     ] query-make ;
 
-M: postgresql-db-connection create-sql-statement ( class -- seq )
+M: postgresql-db-connection create-sql-statement
     [
         [ create-table-sql , ] keep
         dup db-assigned? [ create-function-sql , ] [ drop ] if
@@ -189,13 +189,13 @@ M: postgresql-db-connection create-sql-statement ( class -- seq )
         "drop table " 0% 0% drop
     ] query-make ;
 
-M: postgresql-db-connection drop-sql-statement ( class -- seq )
+M: postgresql-db-connection drop-sql-statement
     [
         [ drop-table-sql , ] keep
         dup db-assigned? [ drop-function-sql , ] [ drop ] if
     ] { } make ;
 
-M: postgresql-db-connection <insert-db-assigned-statement> ( class -- statement )
+M: postgresql-db-connection <insert-db-assigned-statement>
     [
         "select add_" 0% 0%
         "(" 0%
@@ -205,7 +205,7 @@ M: postgresql-db-connection <insert-db-assigned-statement> ( class -- statement
         ");" 0%
     ] query-make ;
 
-M: postgresql-db-connection <insert-user-assigned-statement> ( class -- statement )
+M: postgresql-db-connection <insert-user-assigned-statement>
     [
         "insert into " 0% 0%
         "(" 0%
@@ -228,10 +228,10 @@ M: postgresql-db-connection <insert-user-assigned-statement> ( class -- statemen
         ");" 0%
     ] query-make ;
 
-M: postgresql-db-connection insert-tuple-set-key ( tuple statement -- )
+M: postgresql-db-connection insert-tuple-set-key
     query-modify-tuple ;
 
-M: postgresql-db-connection persistent-table ( -- hashtable )
+M: postgresql-db-connection persistent-table
     H{
         { +db-assigned-id+ { "integer" "serial" f } }
         { +user-assigned-id+ { f f f } }
@@ -271,7 +271,7 @@ M: postgresql-db-connection persistent-table ( -- hashtable )
     } ;
 
 ERROR: no-compound-found string object ;
-M: postgresql-db-connection compound ( string object -- string' )
+M: postgresql-db-connection compound
     over {
         { "default" [ first number>string " " glue ] }
         { "varchar" [ first number>string "(" ")" surround append ] }
index 3357ee5635e1c0a42ab3b04408d69f78b6581efe..f68420a48f6db6091a699582e4fe6d368eaa6295 100644 (file)
@@ -33,7 +33,7 @@ SINGLETON: retryable
         ] if
     ] 2map >>bind-params ;
 
-M: retryable execute-statement* ( statement type -- )
+M: retryable execute-statement*
     drop [ retries>> <iota> ] [
         [
             nip
@@ -62,7 +62,7 @@ M: retryable execute-statement* ( statement type -- )
         dup column-name>> 0% " = " 0% bind%
     ] interleave ;
 
-M: db-connection <update-tuple-statement> ( class -- statement )
+M: db-connection <update-tuple-statement>
     [
         "update " 0% 0%
         " set " 0%
@@ -71,7 +71,7 @@ M: db-connection <update-tuple-statement> ( class -- statement )
         where-primary-key%
     ] query-make ;
 
-M: random-id-generator eval-generator ( singleton -- obj )
+M: random-id-generator eval-generator
     drop
     system-random-generator get [
         63 [ random-bits ] keep 1 - set-bit
@@ -102,32 +102,32 @@ M: random-id-generator eval-generator ( singleton -- obj )
 : in-parens ( quot -- )
     "(" 0% call ")" 0% ; inline
 
-M: interval where ( spec obj -- )
+M: interval where
     [
         [ from>> "from" where-interval ] [
             nip infinite-interval? [ " and " 0% ] unless
         ] [ to>> "to" where-interval ] 2tri
     ] in-parens ;
 
-M: sequence where ( spec obj -- )
+M: sequence where
     [
         [ " or " 0% ] [ dupd where ] interleave drop
     ] in-parens ;
 
-M: byte-array where ( spec obj -- )
+M: byte-array where
     over column-name>> 0% " = " 0% bind# ;
 
-M: NULL where ( spec obj -- )
+M: NULL where
     drop column-name>> 0% " is NULL" 0% ;
 
 : object-where ( spec obj -- )
     over column-name>> 0% " = " 0% bind# ;
 
-M: object where ( spec obj -- ) object-where ;
+M: object where object-where ;
 
-M: integer where ( spec obj -- ) object-where ;
+M: integer where object-where ;
 
-M: string where ( spec obj -- ) object-where ;
+M: string where object-where ;
 
 : filter-slots ( tuple specs -- specs' )
     [
@@ -145,7 +145,7 @@ M: string where ( spec obj -- ) object-where ;
 : where-clause ( tuple specs -- )
     dupd filter-slots [ drop ] [ many-where ] if-empty ;
 
-M: db-connection <delete-tuples-statement> ( tuple table -- sql )
+M: db-connection <delete-tuples-statement>
     [
         "delete from " 0% 0%
         where-clause
@@ -153,7 +153,7 @@ M: db-connection <delete-tuples-statement> ( tuple table -- sql )
 
 ERROR: all-slots-ignored class ;
 
-M: db-connection <select-by-slots-statement> ( tuple class -- statement )
+M: db-connection <select-by-slots-statement>
     [
         "select " 0%
         [ dupd filter-ignores ] dip
@@ -188,13 +188,13 @@ M: db-connection <select-by-slots-statement> ( tuple class -- statement )
         [ offset>> [ do-offset ] [ drop ] if* ]
     } 2cleave ;
 
-M: db-connection query>statement ( query -- tuple )
+M: db-connection query>statement
     [ tuple>> dup class-of ] keep
     [ <select-by-slots-statement> ] dip make-query* ;
 
 ! select ID, NAME, SCORE from EXAM limit 1 offset 3
 
-M: db-connection <count-statement> ( query -- statement )
+M: db-connection <count-statement>
     [ tuple>> dup class-of ] keep
     [ [ "select count(*) from " 0% 0% where-clause ] query-make ]
     dip make-query* ;
index 6b786bb851251bec68889172f41833367ad134e8..bf148b3371eb40bb49476622c2251d93e85708c5 100644 (file)
@@ -22,19 +22,19 @@ TUPLE: sqlite-db-connection < db-connection ;
 
 PRIVATE>
 
-M: sqlite-db db-open ( db -- db-connection )
+M: sqlite-db db-open
     path>> sqlite-open <sqlite-db-connection> ;
 
-M: sqlite-db-connection db-close ( handle -- ) sqlite-close ;
+M: sqlite-db-connection db-close sqlite-close ;
 
 TUPLE: sqlite-statement < statement ;
 
 TUPLE: sqlite-result-set < result-set has-more? ;
 
-M: sqlite-db-connection <simple-statement> ( str in out -- obj )
+M: sqlite-db-connection <simple-statement>
     <prepared-statement> ;
 
-M: sqlite-db-connection <prepared-statement> ( str in out -- obj )
+M: sqlite-db-connection <prepared-statement>
     sqlite-statement new-statement ;
 
 : sqlite-maybe-prepare ( statement -- statement )
@@ -43,22 +43,22 @@ M: sqlite-db-connection <prepared-statement> ( str in out -- obj )
         >>handle
     ] unless ;
 
-M: sqlite-statement dispose ( statement -- )
+M: sqlite-statement dispose
     handle>>
     [ [ sqlite3_reset drop ] keep sqlite-finalize ] when* ;
 
-M: sqlite-result-set dispose ( result-set -- )
+M: sqlite-result-set dispose
     f >>handle drop ;
 
 : reset-bindings ( statement -- )
     sqlite-maybe-prepare
     handle>> [ sqlite3_reset drop ] [ sqlite3_clear_bindings drop ] bi ;
 
-M: sqlite-statement low-level-bind ( statement -- )
+M: sqlite-statement low-level-bind
     [ handle>> ] [ bind-params>> ] bi
     [ [ key>> ] [ value>> ] [ type>> ] tri sqlite-bind-type ] with each ;
 
-M: sqlite-statement bind-statement* ( statement -- )
+M: sqlite-statement bind-statement*
     sqlite-maybe-prepare
     dup bound?>> [ dup reset-bindings ] when
     low-level-bind ;
@@ -72,12 +72,12 @@ TUPLE: sqlite-low-level-binding < low-level-binding key type ;
         swap >>value
         swap >>key ;
 
-M: sql-spec sqlite-bind-conversion ( tuple spec -- array )
+M: sql-spec sqlite-bind-conversion
     [ column-name>> ":" prepend ]
     [ slot-name>> rot get-slot-named ]
     [ type>> ] tri <sqlite-low-level-binding> ;
 
-M: literal-bind sqlite-bind-conversion ( tuple literal-bind -- array )
+M: literal-bind sqlite-bind-conversion
     nip [ key>> ] [ value>> ] [ type>> ] tri
     <sqlite-low-level-binding> ;
 
@@ -87,7 +87,7 @@ M:: generator-bind sqlite-bind-conversion ( tuple generate-bind -- array )
     obj name tuple set-slot-named
     generate-bind key>> obj generate-bind type>> <sqlite-low-level-binding> ;
 
-M: sqlite-statement bind-tuple ( tuple statement -- )
+M: sqlite-statement bind-tuple
     [
         in-params>> [ sqlite-bind-conversion ] with map
     ] keep bind-statement ;
@@ -98,31 +98,31 @@ ERROR: sqlite-last-id-fail ;
     db-connection get handle>> sqlite3_last_insert_rowid
     dup zero? [ sqlite-last-id-fail ] when ;
 
-M: sqlite-db-connection insert-tuple-set-key ( tuple statement -- )
+M: sqlite-db-connection insert-tuple-set-key
     execute-statement last-insert-id swap set-primary-key ;
 
-M: sqlite-result-set #columns ( result-set -- n )
+M: sqlite-result-set #columns
     handle>> sqlite-#columns ;
 
-M: sqlite-result-set row-column ( result-set n -- obj )
+M: sqlite-result-set row-column
     [ handle>> ] [ sqlite-column ] bi* ;
 
-M: sqlite-result-set row-column-typed ( result-set n -- obj )
+M: sqlite-result-set row-column-typed
     dup pick out-params>> nth type>>
     [ handle>> ] 2dip sqlite-column-typed ;
 
-M: sqlite-result-set advance-row ( result-set -- )
+M: sqlite-result-set advance-row
     dup handle>> sqlite-next >>has-more? drop ;
 
-M: sqlite-result-set more-rows? ( result-set -- ? )
+M: sqlite-result-set more-rows?
     has-more?>> ;
 
-M: sqlite-statement query-results ( query -- result-set )
+M: sqlite-statement query-results
     sqlite-maybe-prepare
     dup handle>> sqlite-result-set new-result-set
     dup advance-row ;
 
-M: sqlite-db-connection <insert-db-assigned-statement> ( class -- statement )
+M: sqlite-db-connection <insert-db-assigned-statement>
     [
         "insert into " 0% 0%
         "(" 0%
@@ -143,19 +143,19 @@ M: sqlite-db-connection <insert-db-assigned-statement> ( class -- statement )
         ");" 0%
     ] query-make ;
 
-M: sqlite-db-connection <insert-user-assigned-statement> ( class -- statement )
+M: sqlite-db-connection <insert-user-assigned-statement>
     <insert-db-assigned-statement> ;
 
-M: sqlite-db-connection bind# ( spec obj -- )
+M: sqlite-db-connection bind#
     [
         [ column-name>> ":" next-sql-counter surround dup 0% ]
         [ type>> ] bi
     ] dip <literal-bind> 1, ;
 
-M: sqlite-db-connection bind% ( spec -- )
+M: sqlite-db-connection bind%
     dup 1, column-name>> ":" prepend 0% ;
 
-M: sqlite-db-connection persistent-table ( -- assoc )
+M: sqlite-db-connection persistent-table
     H{
         { +db-assigned-id+ { "integer" "integer" f } }
         { +user-assigned-id+ { f f f } }
@@ -314,16 +314,16 @@ M: sqlite-db-connection persistent-table ( -- assoc )
         ");" 0%
     ] 2bi ;
 
-M: sqlite-db-connection create-sql-statement ( class -- statement )
+M: sqlite-db-connection create-sql-statement
     [
         [ sqlite-create-table ]
         [ drop create-db-triggers ] 2bi
     ] query-make ;
 
-M: sqlite-db-connection drop-sql-statement ( class -- statements )
+M: sqlite-db-connection drop-sql-statement
     [ nip "drop table " 0% 0% ";" 0% ] query-make ;
 
-M: sqlite-db-connection compound ( string seq -- new-string )
+M: sqlite-db-connection compound
     over {
         { "default" [ first number>string " " glue ] }
         { "references" [ >reference-string ] }
index 62b2969c5ac5c3fe7748c38ddb4caf4d9b36a9ab..f4f859cd1c56a2026fbe07afa76a734521431fae 100644 (file)
@@ -4,6 +4,6 @@ USING: debugger io kernel prettyprint sequences system
 unix.signals ;
 IN: debugger.unix
 
-M: unix signal-error. ( obj -- )
+M: unix signal-error.
     "Unix signal #" write
     third [ pprint ] [ signal-name. ] bi nl ;
index e5b9d152cc8de7f4c0328340b0b24c71ae7e1dce..e9c468dfd5bc9a70ff6506ac023267937adf14c2 100644 (file)
@@ -21,7 +21,7 @@ M: macosx find-atom
         f
     ] if* ;
 
-M: atom-editor editor-command ( file line -- command )
+M: atom-editor editor-command
     [
         atom-path get [ find-atom ] unless* ,
         number>string ":" glue ,
index 26e5130a5734daffb6d41aeba518bf50567e831e..baeccc8528d6764ecbc6fb8c4a02c5c9036e0b39 100644 (file)
@@ -4,6 +4,6 @@ IN: editors.bbedit
 SINGLETON: bbedit
 bbedit editor-class set-global
 
-M: bbedit editor-command ( file line -- command )
+M: bbedit editor-command
     drop
     [ "open" , "-a" , "BBEdit" , , ] { } make ;
index 6b1f2c0255c8a8e8ae26c9705e47db9c519847ed..7ec154aa9b2ae7be50d5ab810de9df5610cca245 100644 (file)
@@ -16,7 +16,7 @@ M: macosx brackets-path
         f
     ] if* ;
 
-M: brackets-editor editor-command ( file line -- command )
+M: brackets-editor editor-command
     [ brackets-path "brackets" or , drop , ] { } make ;
 
 os windows? [ "editors.brackets.windows" require ] when
index e7bb45cb2b57756ab3d0579c6c97937db49f57cb..af0507f68dac7c02527e66b3f82dd30eb455fe36 100644 (file)
@@ -12,5 +12,5 @@ coteditor editor-class set-global
         f
     ] if* ;
 
-M: coteditor editor-command ( file line -- command )
+M: coteditor editor-command
     [ find-cot-bundle-path , "-l" , number>string , , ] { } make ;
index e3d930b2f9b70dbce23d4180d79e95d47b07677d..6e85490a9861647205d3feccfa25a7d2652128dc 100644 (file)
@@ -14,7 +14,7 @@ editpadpro editor-class set-global
         } 0||
     ] unless* ;
 
-M: editpadpro editor-command ( file line -- command )
+M: editpadpro editor-command
     [
         editpadpro-path , number>string "/l" prepend , ,
     ] { } make ;
index a3dc23887ca22377f64a640ddd96b09023652d49..db203e2abd312c0ff2d2291eaf37d299bb32a12a 100644 (file)
@@ -11,7 +11,7 @@ editplus editor-class set-global
         [ "editplus.exe" ] unless*
     ] unless* ;
 
-M: editplus editor-command ( file line -- command )
+M: editplus editor-command
     [
         editplus-path , "-cursor" , number>string , ,
     ] { } make ;
index 051f7c1bfbe9c7ddd240233fbd685f68fe503521..ec1e08fb5b3db05aab16221c6099d463292fe7be 100644 (file)
@@ -10,7 +10,7 @@ SYMBOL: emacsclient-args
 
 HOOK: find-emacsclient os ( -- path )
 
-M: object find-emacsclient ( -- path )
+M: object find-emacsclient
     "emacsclient" ?find-in-path ;
 
 M: windows find-emacsclient
@@ -20,7 +20,7 @@ M: windows find-emacsclient
         [ "emacsclient.exe" ]
     } 0|| ;
 
-M: emacsclient editor-command ( file line -- command )
+M: emacsclient editor-command
     [
         emacsclient-path get [ find-emacsclient ] unless* ,
         emacsclient-args get [ { "-a=emacs" "--no-wait" } ] unless* %
index 9f6c3ec745d252e3369800673718835792be22cb..fe5ee1c7251eea81b024e86982baab2054b86b8c 100644 (file)
@@ -11,7 +11,7 @@ emeditor editor-class set-global
         [ "EmEditor.exe" ] unless*
     ] unless* ;
 
-M: emeditor editor-command ( file line -- command )
+M: emeditor editor-command
     [
         emeditor-path , "/l" , number>string , ,
     ] { } make ;
index 459f5b8ddb30852fe06b3e931db298d932d7d408..75e8a2252f3fd5e55408ebd150781b06e79a4ff8 100644 (file)
@@ -13,7 +13,7 @@ etexteditor editor-class set-global
         [ "e.exe" ] unless*
     ] unless* ;
 
-M: etexteditor editor-command ( file line -- command )
+M: etexteditor editor-command
     [
         etexteditor-path ,
         [ , ] [ "--line" , number>string , ] bi*
index f1d7b9314f828e8676df8e94f17c6751dc36a97d..117802001eed74780ac0397b9b807cf32c79d98a 100644 (file)
@@ -12,7 +12,7 @@ gedit editor-class set-global
         "gedit" ?find-in-path
     ] unless* ;
 
-M: gedit editor-command ( file line -- command )
+M: gedit editor-command
     [
         gedit-path , number>string "+" prepend , ,
     ] { } make ;
index 26d20375dc35c144482e0a647435c2ad4c80c5f1..c6544d534cbd9d2285b7818c6a68207e4a4247d9 100644 (file)
@@ -27,7 +27,7 @@ M: windows find-jedit-path
         find-jedit-path [ "jedit" ?find-in-path ] unless*
     ] unless* ;
 
-M: jedit editor-command ( file line -- command/f )
+M: jedit editor-command
     [
         find-jedit-path ,
         "-reuseview" ,
index 9951943dc83fdb437774df2b6c571c5b7b176ce7..0a3085ec4246be2b54f498a1791046f1b0505943 100644 (file)
@@ -11,7 +11,7 @@ notepad++ editor-class set-global
         [ "notepad++.exe" ] unless*
     ] unless* ;
 
-M: notepad++ editor-command ( file line -- command )
+M: notepad++ editor-command
     [
         notepad++-path ,
         number>string "-n" prepend , ,
index 7725a4b9931c0af4edbc95f04425d5d99eeffbbe..de381cf35cdd92b1e7aa5a1784ee4e0686d6d2c2 100644 (file)
@@ -14,5 +14,5 @@ notepad editor-class set-global
         [ "notepad.exe" tail? ] find-file
     ] unless* ;
 
-M: notepad editor-command ( file line -- command )
+M: notepad editor-command
     drop [ notepad-path ] dip 2array ;
index 070273994c64e9da72bad9de6e107a18542f5c16..9c9f90a0d9242a2533632d7b642f4df0d3f913d8 100644 (file)
@@ -11,7 +11,7 @@ notepad2 editor-class set-global
         [ "notepad.exe" ] unless*
     ] unless* ;
 
-M: notepad2 editor-command ( file line -- command )
+M: notepad2 editor-command
     [
         notepad2-path ,
         "/g" , number>string , ,
index 49e1d74b07f022edf82dbd8999e30189abb7aeb3..e58229ab146e038b29a00a6341ae6bd38d586346 100644 (file)
@@ -21,7 +21,7 @@ M: windows find-scite-path
     } "scite.exe" find-in-applications
     [ "scite.exe" ] unless* ;
 
-M: scite editor-command ( file line -- cmd )
+M: scite editor-command
     swap
     [
         scite-path get [ find-scite-path ] unless* ,
index df08f603c784ca5b907940d0c030c898c549a2c6..a457ded4feb004c8a8c2cb67a38dd995b4068fa5 100644 (file)
@@ -31,7 +31,7 @@ M: windows find-sublime-path
         find-sublime-path [ "subl" ?find-in-path ] unless*
     ] unless* ;
 
-M: sublime editor-command ( file line -- command )
+M: sublime editor-command
     [
         sublime-path , "-a" , number>string ":" glue ,
     ] { } make ;
index c463b0b29427a3de9ad21341accf379b2fae07a7..fe1ce8478f3ccf953704f2c37c29316ae653ab1b 100644 (file)
@@ -11,7 +11,7 @@ ted-notepad editor-class set-global
         [ "TedNPad.exe" ] unless*
     ] unless* ;
 
-M: ted-notepad editor-command ( file line -- command )
+M: ted-notepad editor-command
     [
         ted-notepad-path ,
         number>string "/l" prepend , ,
index 0d370955737b2c4805f4511883ad878e87921173..1edfbdcf4f35e3b059390f47a6e6afb62583aa07 100644 (file)
@@ -37,7 +37,7 @@ M: windows find-textadept-path
         find-textadept-path [ "textadept" ?find-in-path ] unless*
     ] unless* ;
 
-M: textadept editor-command ( file line -- command )
+M: textadept editor-command
     swap [
         textadept-path , "-f" , , "-e" ,
         1 - number>string "goto_line(" ")" surround ,
index c21004b06d207e0c046186971380f6afd8daca02..9c0c50cc7b523e0043d0b1ca42d58f66c0e52b33 100644 (file)
@@ -5,6 +5,6 @@ IN: editors.textedit
 SINGLETON: textedit
 textedit editor-class set-global
 
-M: textedit editor-command ( file line -- command )
+M: textedit editor-command
     drop
     [ "open" , "-a" , "TextEdit" , , ] { } make ;
index 20d1ca928d907e6bbe4501978313bdd7f9e4255a..8dd5dc1b9ac51ee8694011913b12e01c763699a2 100644 (file)
@@ -5,5 +5,5 @@ IN: editors.textmate
 SINGLETON: textmate
 textmate editor-class set-global
 
-M: textmate editor-command ( file line -- command )
+M: textmate editor-command
     [ "mate" , "-a" , "-l" , number>string , , ] { } make ;
index a2b0abb6e60b5fc447c551316a55989ac3f9ee8a..62cb493d1b3a586bf0646babbda39ada4d97348f 100644 (file)
@@ -11,7 +11,7 @@ textpad editor-class set-global
         [ "TextPad.exe" ] unless*
     ] unless* ;
 
-M: textpad editor-command ( file line -- command )
+M: textpad editor-command
     [
         textpad-path ,
         [ , ] [ number>string "(" ",0)" surround , ] bi*
index ec69b8047228c74682525da1f493cc4219b2a35a..10bee459093790b267de407cad0130ebae32a5a5 100644 (file)
@@ -11,7 +11,7 @@ ultraedit editor-class set-global
         [ "uedit32.exe" ] unless*
     ] unless* ;
 
-M: ultraedit editor-command ( file line -- command )
+M: ultraedit editor-command
     [
         ultraedit-path , [ swap % "/" % # "/1" % ] "" make ,
     ] { } make ;
index 3040980baf414dbf8a8886324870569d7a8dabed..79618ac08b0a577899d12f8e36be67d4daba0c30 100644 (file)
@@ -20,7 +20,7 @@ M: vim find-vim-path "vim" ?find-in-path ;
 : actual-vim-path ( -- path )
     \ vim-path get [ find-vim-path ] unless* ;
 
-M: vim editor-command ( file line -- command )
+M: vim editor-command
     [
         actual-vim-path dup string? [ , ] [ % ] if
         vim-ui? [ "-g" , ] when
index 56d4f5a76b7b604d197c95b72110a1baf1e1ad61..e88181deb6036c8bb197c76035bd9654f6df1a3a 100644 (file)
@@ -45,7 +45,7 @@ M: windows find-visual-studio-code-invocation
         [ "code.cmd" ]
     } 0|| ;
 
-M: visual-studio-code editor-command ( file line -- command )
+M: visual-studio-code editor-command
     [
         visual-studio-code-invocation
         [ , ] [ can't-find-visual-studio-code ] if*
index ca5aa9a6218b7d572ef3548f3d0fdef55fcc412f..3245e0cfd8e4babc08571aecf324f6bcfe20eaed 100644 (file)
@@ -9,5 +9,5 @@ wordpad editor-class set-global
         { "Windows NT\\Accessories" } "wordpad.exe" find-in-applications
     ] unless* ;
 
-M: wordpad editor-command ( file line -- command )
+M: wordpad editor-command
     drop [ wordpad-path ] dip 2array ;
index 0978c94dbd8b737e5a8b7450c7bde4ed5828f6d9..c59d0edcca89cf1552208f0f487afdd03fffae39 100644 (file)
@@ -5,6 +5,6 @@ IN: editors.xcode
 SINGLETON: xcode
 xcode editor-class set-global
 
-M: xcode editor-command ( file line -- command )
+M: xcode editor-command
     drop
     [ "open" , "-a" , "XCode" , , ] { } make ;
index 222ba722262741f8e31897b38565573d344911c0..a68e0013ee5d590e4f29b53c32e4b9b70decf74b 100644 (file)
@@ -7,27 +7,27 @@ IN: environment.unix
 
 HOOK: environ os ( -- void* )
 
-M: unix environ ( -- void* ) &: environ ;
+M: unix environ &: environ ;
 
-M: unix os-env ( key -- value ) getenv ;
+M: unix os-env getenv ;
 
-M: unix set-os-env ( value key -- )
+M: unix set-os-env
     over [
         swap 1 setenv io-error
     ] [
         nip unset-os-env
     ] if ;
 
-M: unix unset-os-env ( key -- ) unsetenv io-error ;
+M: unix unset-os-env unsetenv io-error ;
 
-M: unix (os-envs) ( -- seq )
+M: unix (os-envs)
     environ void* deref native-string-encoding alien>strings ;
 
 : set-void* ( value alien -- ) 0 set-alien-cell ;
 
-M: unix set-os-envs-pointer ( malloc -- ) environ set-void* ;
+M: unix set-os-envs-pointer environ set-void* ;
 
-M: unix (set-os-envs) ( seq -- )
+M: unix (set-os-envs)
     utf8 strings>alien malloc-byte-array set-os-envs-pointer ;
 
 os macosx? [ "environment.unix.macosx" require ] when
index d3a4a3f4372c912aac30f3d285b98ebb037d42eb..2ff126c8871eec40aaa7bc4c7aacbd338b52930f 100644 (file)
@@ -7,7 +7,7 @@ io.streams.memory io.encodings io specialized-arrays ;
 SPECIALIZED-ARRAY: TCHAR
 IN: environment.windows
 
-M: windows os-env ( key -- value )
+M: windows os-env
     MAX_UNICODE_PATH TCHAR <c-array>
     [ dup length GetEnvironmentVariable ] keep over 0 = [
         2drop f
@@ -15,16 +15,16 @@ M: windows os-env ( key -- value )
         nip alien>native-string
     ] if ;
 
-M: windows set-os-env ( value key -- )
+M: windows set-os-env
     swap SetEnvironmentVariable win32-error=0/f ;
 
-M: windows unset-os-env ( key -- )
+M: windows unset-os-env
     f SetEnvironmentVariable 0 = [
         GetLastError ERROR_ENVVAR_NOT_FOUND =
         [ win32-error ] unless
     ] when ;
 
-M: windows (os-envs) ( -- seq )
+M: windows (os-envs)
     GetEnvironmentStrings [
         [
             utf16n decode-input
index 9e6fc75e77770d5d746ebdd396352bef052904b3..bd146487f36f08701be34f198874d8eb854cc962 100644 (file)
@@ -141,7 +141,7 @@ TUPLE: dredge-fry-state
 
 PRIVATE>
 
-M: callable fry ( quot -- quot' )
+M: callable fry
     [ [ [ ] ] ] [
         0 swap <dredge-fry>
         [ dredge-fry ] [
index 1bd87be39347312765194b16d6d88123ef949dd8..0459518853a73b792517e46f55c362204a849bb1 100644 (file)
@@ -175,7 +175,7 @@ GENERIC: handle-passive-command ( stream obj -- )
 : finish-directory ( -- )
     "Directory send OK." 226 server-response ;
 
-M: ftp-list handle-passive-command ( stream obj -- )
+M: ftp-list handle-passive-command
     drop
     start-directory [
         utf8 encode-output [
@@ -184,7 +184,7 @@ M: ftp-list handle-passive-command ( stream obj -- )
         harvest [ ftp-send ] each
     ] with-output-stream finish-directory ;
 
-M: ftp-get handle-passive-command ( stream obj -- )
+M: ftp-get handle-passive-command
     [
         path>>
         [ transfer-outgoing-file ]
@@ -194,7 +194,7 @@ M: ftp-get handle-passive-command ( stream obj -- )
         3drop "File transfer failed" ftp-error
     ] recover ;
 
-M: ftp-put handle-passive-command ( stream obj -- )
+M: ftp-put handle-passive-command
     [
         path>>
         [ transfer-incoming-file ]
@@ -204,7 +204,7 @@ M: ftp-put handle-passive-command ( stream obj -- )
         3drop "File transfer failed" ftp-error
     ] recover ;
 
-M: ftp-disconnect handle-passive-command ( stream obj -- )
+M: ftp-disconnect handle-passive-command
     drop dispose ;
 
 : fulfill-client ( obj -- )
@@ -344,7 +344,7 @@ M: ftp-disconnect handle-passive-command ( stream obj -- )
         handle-client-loop
     ] with-directory ;
 
-M: ftp-server handle-client* ( server -- )
+M: ftp-server handle-client*
     [
         "New client" \ handle-client* DEBUG log-message
         ftp-client new client set
index 18f97aa534134a34c5728e7c551e976f9cd4d4bc..5e0a7664e0c9f5b58e769da8f70158f83d436f52 100644 (file)
@@ -100,7 +100,7 @@ CONSTANT: revalidate-url-key "__u"
     begin-form
     handle-rest ;
 
-M: action call-responder* ( path action -- response )
+M: action call-responder*
     [ init-action ] keep
     request get method>> {
         { "GET"   [ handle-get ] }
index 4f2568b636ad67a4cd6fa1b75b4c2fefe5b46a8e..83664095f9ccd89ba40592368434864586e6cb43 100644 (file)
@@ -87,7 +87,7 @@ ERROR: end-aside-in-get-error ;
 : end-aside ( default -- response )
     aside-id get aside-id off get-aside [ move-on ] [ <redirect> ] ?if ;
 
-M: asides link-attr ( tag responder -- )
+M: asides link-attr
     drop
     "aside" optional-attr {
         { "none" [ aside-id off ] }
@@ -96,13 +96,13 @@ M: asides link-attr ( tag responder -- )
         { f [ ] }
     } case ;
 
-M: asides modify-query ( query asides -- query' )
+M: asides modify-query
     drop
     aside-id get [
         aside-id-key associate assoc-union
     ] when* ;
 
-M: asides modify-form ( asides -- xml/f )
+M: asides modify-form
     drop
     aside-id get
     aside-id-key
index 173984db3239aa03dee2eb3ebede6e8a812a4136..e2930f461b4a2710ea82e0a7094456d8789e2ccc 100644 (file)
@@ -97,7 +97,7 @@ M: user-saver dispose
 
 \ init-user DEBUG add-input-logging
 
-M: realm call-responder* ( path responder -- response )
+M: realm call-responder*
     dup realm namespaces:set
     logged-in? [
         dup init-realm
@@ -146,7 +146,7 @@ TUPLE: protected < filter-responder description capabilities ;
         } cond
     ] if ;
 
-M: protected call-responder* ( path responder -- response )
+M: protected call-responder*
     dup protected namespaces:set
     dup capabilities>> have-capabilities?
     [ call-next-method ] [
index af5f34e3e3e5a961a9a1412d41a8b49fb9c93567..8081193a41a75bf9589e9fae303056a50d07d539 100644 (file)
@@ -20,10 +20,10 @@ TUPLE: basic-auth-realm < realm ;
     401 "Invalid username or password" <trivial-response>
     [ "Basic realm=\"" % swap % "\"" % ] "" make "WWW-Authenticate" set-header ;
 
-M: basic-auth-realm login-required* ( description capabilities realm -- response )
+M: basic-auth-realm login-required*
     2nip name>> <401> ;
 
-M: basic-auth-realm logged-in-username ( realm -- uid )
+M: basic-auth-realm logged-in-username
     drop
     request get "authorization" header parse-basic-auth
     dup [ over check-login swap and ] [ 2drop f ] if ;
index 48efebfc713b2b9f366320faca72ec28b2c65b8a..df1fb55d53471bdcf1466c03c8c5a0f7a2df8865 100644 (file)
@@ -29,7 +29,7 @@ M: login-realm init-realm
 M: login-realm logged-in-username
     drop permit-id get dup [ get-permit-uid ] when ;
 
-M: login-realm modify-form ( responder -- xml/f )
+M: login-realm modify-form
     drop permit-id get realm get name>> permit-id-key hidden-form-field ;
 
 : <permit-cookie> ( -- cookie )
@@ -95,7 +95,7 @@ CONSTANT: flashed-variables { description capabilities }
     <action>
         [ logout ] >>submit ;
 
-M: login-realm login-required* ( description capabilities login -- response )
+M: login-realm login-required*
     begin-conversation
     [ description cset ] [ capabilities cset ] [ secure>> ] tri*
     [
@@ -106,7 +106,7 @@ M: login-realm login-required* ( description capabilities login -- response )
         URL" $realm/login" <continue-conversation>
     ] if ;
 
-M: login-realm user-registered ( user realm -- response )
+M: login-realm user-registered
     drop successful-login ;
 
 : <login-realm> ( responder name -- realm )
index 712ef13e98bd156974fecb655ad6fbc253964abb..70af86f2836d1878471538ef98498e3f01a8205f 100644 (file)
@@ -8,11 +8,10 @@ TUPLE: users-in-memory assoc ;
 : <users-in-memory> ( -- provider )
     H{ } clone users-in-memory boa ;
 
-M: users-in-memory get-user ( username provider -- user/f )
-    assoc>> at ;
+M: users-in-memory get-user assoc>> at ;
 
-M: users-in-memory update-user ( user provider -- ) 2drop ;
+M: users-in-memory update-user 2drop ;
 
-M: users-in-memory new-user ( user provider -- user/f )
+M: users-in-memory new-user
     [ dup username>> ] dip assoc>>
     2dup key? [ 3drop f ] [ pick [ set-at ] dip ] if ;
index a01c80baaccd1498ab2e119dab078d6b0d1152ca..58f9a61d9d11b0ab043f0008db2c961f8c9f2058 100644 (file)
@@ -194,19 +194,19 @@ PRIVATE>
 : <couchdb-auth-provider> ( base-url username-view -- couchdb-auth-provider )
     couchdb-auth-provider new swap >>username-view swap >>base-url ;
 
-M: couchdb-auth-provider get-user ( username provider -- user/f )
+M: couchdb-auth-provider get-user
     couchdb-auth-provider [
         (get-user) [ user-hash>user ] [ f ] if*
     ] with-variable ;
 
-M: couchdb-auth-provider new-user ( user provider -- user/f )
+M: couchdb-auth-provider new-user
     couchdb-auth-provider [
         dup (new-user) [
             username>> couchdb-auth-provider get get-user
         ] [ drop f ] if
     ] with-variable ;
 
-M: couchdb-auth-provider update-user ( user provider -- )
+M: couchdb-auth-provider update-user
     couchdb-auth-provider [
         [ username>> (get-user)/throw-on-no-user dup ]
         [ drop "_id" of get-url ]
index e66941bda048e6fc157ec2b4c607fdfea68c1e48..bf6d0552bb17451221c292945ac0ad19c57b8daa 100644 (file)
@@ -106,7 +106,7 @@ M: conversations call-responder*
         bi
     ] [ drop ] if* ;
 
-M: conversations modify-form ( conversations -- xml/f )
+M: conversations modify-form
     drop
     conversation-id get
     conversation-id-key
index 13deeff9a01c5f0d40054ec2790c80f470c6a595..917d4f5113b1e216fe93626e0869869c3192d662 100644 (file)
@@ -98,10 +98,10 @@ CONSTANT: session-id-key "__s"
 : put-session-cookie ( response -- response' )
     <session-cookie> put-cookie ;
 
-M: sessions modify-form ( responder -- xml/f )
+M: sessions modify-form
     drop session get id>> session-id-key hidden-form-field ;
 
-M: sessions call-responder* ( path responder -- response )
+M: sessions call-responder*
     sessions set
     request-session [ begin-session ] unless*
     existing-session put-session-cookie ;
index 44518c6ad97bce779f17a242f51e811d22eb0b82..74564bc1d2ed8f463eab3e02d2a4fc64cf168492 100644 (file)
@@ -334,28 +334,30 @@ M: iokit-game-input-backend (close-game-input)
         f +controller-states+ set-global
     ] when ;
 
-M: iokit-game-input-backend get-controllers ( -- sequence )
+M: iokit-game-input-backend get-controllers
     +controller-states+ get-global keys [ controller boa ] map ;
 
 : ?join ( pre post sep -- string )
     2over subseq-start [ swap 2nip ] [ [ 2array ] dip join ] if ;
 
-M: iokit-game-input-backend product-string ( controller -- string )
+M: iokit-game-input-backend product-string
     handle>>
     [ kIOHIDManufacturerKey device-property ]
     [ kIOHIDProductKey      device-property ] bi " " ?join ;
-M: iokit-game-input-backend product-id ( controller -- integer )
+
+M: iokit-game-input-backend product-id
     handle>>
     [ kIOHIDVendorIDKey  device-property ]
     [ kIOHIDProductIDKey device-property ] bi 2array ;
-M: iokit-game-input-backend instance-id ( controller -- integer )
+
+M: iokit-game-input-backend instance-id
     handle>> kIOHIDLocationIDKey device-property ;
 
-M: iokit-game-input-backend read-controller ( controller -- controller-state )
+M: iokit-game-input-backend read-controller
     handle>> +controller-states+ get-global at clone ;
 
-M: iokit-game-input-backend read-keyboard ( -- keyboard-state )
+M: iokit-game-input-backend read-keyboard
     +keyboard-state+ get-global clone keyboard-state boa ;
 
-M: iokit-game-input-backend calibrate-controller ( controller -- )
+M: iokit-game-input-backend calibrate-controller
     drop ;
index c23888aa33fe7213bdf80f2f50ccc3b3af7fe536..69940c614d606c9d7b58f17f5d414cb1507f5530 100644 (file)
@@ -35,11 +35,9 @@ TUPLE: max-heap < heap ;
 
 : <max-heap> ( -- max-heap ) max-heap <heap> ;
 
-M: heap heap-empty? ( heap -- ? )
-    data>> empty? ; inline
+M: heap heap-empty? data>> empty? ; inline
 
-M: heap heap-size ( heap -- n )
-    data>> length ; inline
+M: heap heap-size data>> length ; inline
 
 <PRIVATE
 
@@ -75,7 +73,7 @@ PRIVATE>
 : >entry< ( entry -- value key )
     [ value>> ] [ key>> ] bi ; inline
 
-M: heap heap-peek ( heap -- value key )
+M: heap heap-peek
     data>> first >entry< ;
 
 <PRIVATE
index d3b55852d0337525245e8ba778c38dacbbb27648..bf47fa49d4f73e117811a7e529fd93b1096cf078 100644 (file)
@@ -15,7 +15,7 @@ IN: html.templates.chloe.components
 
 GENERIC: component-tag ( tag class -- )
 
-M: singleton-class component-tag ( tag class -- )
+M: singleton-class component-tag
     [ "name" required-attr compile-attr ]
     [ literalize render-quot [code-with] ]
     bi* ;
@@ -26,7 +26,7 @@ M: singleton-class component-tag ( tag class -- )
     [ [ boa ] [code-with] ]
     bi ;
 
-M: tuple-class component-tag ( tag class -- )
+M: tuple-class component-tag
     [ drop "name" required-attr compile-attr ]
     [ compile-component-attrs ] 2bi
     render-quot [code] ;
index 2ec80f298393a16c258f52fcae8a647f144bdfe9..d76193bd3577f1e60eea6c1418f65fe21a3d94ac 100644 (file)
@@ -71,7 +71,7 @@ TUPLE: fhtml path ;
 
 C: <fhtml> fhtml
 
-M: fhtml call-template* ( filename -- )
+M: fhtml call-template*
     path>> utf8 file-contents eval-template ;
 
 INSTANCE: fhtml template
index 1534a5a8cd8b97baf919c6579c3bc81170d15dc6..ea932c7c20664ddf21e5b32291faabaae26a818c 100644 (file)
@@ -23,7 +23,7 @@ TUPLE: dispatcher default responders ;
         [ [ drop rest-slice ] dip ] [ drop default>> ] if
     ] if ;
 
-M: dispatcher call-responder* ( path dispatcher -- response )
+M: dispatcher call-responder*
     find-responder call-responder ;
 
 TUPLE: vhost-dispatcher default responders ;
@@ -38,7 +38,7 @@ TUPLE: vhost-dispatcher default responders ;
     url get host>> canonical-host over responders>> at*
     [ nip ] [ drop default>> ] if ;
 
-M: vhost-dispatcher call-responder* ( path dispatcher -- response )
+M: vhost-dispatcher call-responder*
     find-vhost call-responder ;
 
 : add-responder ( dispatcher responder path -- dispatcher )
index 1467ff25f08a2929067d2eb084f0d33c88902abe..8ea64049d574baea959a16ed78f924e04ef4d9c4 100644 (file)
@@ -48,13 +48,13 @@ GENERIC: write-full-response ( request response -- )
 : write-response-body ( response -- response )
     dup body>> call-template ;
 
-M: response write-response ( respose -- )
+M: response write-response
     write-response-line
     write-response-header
     flush
     drop ;
 
-M: response write-full-response ( request response -- )
+M: response write-full-response
     dup write-response
     swap method>> "HEAD" = [
         [ content-encoding>> encode-output ]
@@ -62,12 +62,12 @@ M: response write-full-response ( request response -- )
         bi
     ] unless drop ;
 
-M: raw-response write-response ( respose -- )
+M: raw-response write-response
     write-response-line
     write-response-body
     drop ;
 
-M: raw-response write-full-response ( request response -- )
+M: raw-response write-full-response
     nip write-response ;
 
 : post-request? ( -- ? ) request get method>> "POST" = ;
index ba794f047c19691547e9f251b731afd95280a586..c05c6f1d5d1ca6e1e50d1d134b06e2a3806c10ce 100644 (file)
@@ -178,7 +178,7 @@ TUPLE: file-responder root hook special index-names allow-listings ;
     [ drop <404> ]
     if ;
 
-M: file-responder call-responder* ( path responder -- response )
+M: file-responder call-responder*
     file-responder set
     ".." over member?
     [ drop <400> ] [ "/" join serve-object ] if ;
index 7e9bdc08a4cd4236ec96e48609ff2c10a8e4cd39..12cb00577d17bb56c2201c3d6fdac586f8ace8a7 100644 (file)
@@ -106,5 +106,5 @@ M: gdi+-image stream>image*
     gdi+-bitmap>data
     data>image ;
 
-M: gdi+-image image>stream ( image extension class -- )
+M: gdi+-image image>stream
     drop startup-gdi+ output-stream get swap write-image-to-stream ;
index 209d1ab1e077286e47ce7ff84b674de22e711b35..5f93602052704e2231a62c99c0734ddf6557b095 100644 (file)
@@ -5,5 +5,5 @@ unix io.backend io.backend.unix io.backend.unix.multiplexers
 io.backend.unix.multiplexers.kqueue io.files.unix ;
 IN: io.backend.unix.bsd
 
-M: bsd init-io ( -- )
+M: bsd init-io
     <kqueue-mx> mx set-global ;
index 24c7518827b3eae4bb471d69284284ffd199fe9d..9c094679dc72f948f680c644db957f3401b8c31b 100644 (file)
@@ -2,9 +2,9 @@ USING: io.backend io.backend.unix system namespaces kernel accessors assocs cont
 
 << "io.files.unix" require >> ! needed for deploy
 
-M: freebsd init-io ( -- )
+M: freebsd init-io
    <kqueue-mx> mx set-global ;
-   
+
 freebsd set-io-backend
 
 [ start-signal-pipe-thread ] 
index fa0ab2054f3c069e248069e211fb9a3ca4d11b2a..f3e123cd842c3bd0c34b50726de9aaeedcfae60d 100644 (file)
@@ -5,7 +5,7 @@ io.backend.unix io.backend.unix.multiplexers
 io.backend.unix.multiplexers.epoll init ;
 IN: io.backend.unix.linux
 
-M: linux init-io ( -- )
+M: linux init-io
     <epoll-mx> mx set-global ;
 
 linux set-io-backend
index c1e31d1f6d6bf110aaed2dba22bc7a3d08f37673..403b97b0ac806dcc91dee8d9b333cc3917fe31be 100644 (file)
@@ -8,10 +8,10 @@ IN: io.backend.unix.macosx
 
 SINGLETON: macosx-kqueue
 
-M: macosx-kqueue init-io ( -- )
+M: macosx-kqueue init-io
     <kqueue-mx> mx set-global ;
 
-M: macosx init-io ( -- )
+M: macosx init-io
     <run-loop-mx> mx set-global ;
 
 macosx set-io-backend
index 9921b483f503d5fa807b93f537f3f0b8d1383884..b4e941bbe8f89d1a3609f5bc9e40faffa36604b7 100644 (file)
@@ -34,18 +34,18 @@ M: epoll-mx dispose* fd>> close-file ;
 : do-epoll-del ( fd mx events -- )
     EPOLL_CTL_DEL swap do-epoll-ctl ;
 
-M: epoll-mx add-input-callback ( thread fd mx -- )
+M: epoll-mx add-input-callback
     [ EPOLLIN do-epoll-add ] [ call-next-method ] 2bi ;
 
-M: epoll-mx add-output-callback ( thread fd mx -- )
+M: epoll-mx add-output-callback
     [ EPOLLOUT do-epoll-add ] [ call-next-method ] 2bi ;
 
-M: epoll-mx remove-input-callbacks ( fd mx -- seq )
+M: epoll-mx remove-input-callbacks
     2dup reads>> key? [
         [ call-next-method ] [ EPOLLIN do-epoll-del ] 2bi
     ] [ 2drop f ] if ;
 
-M: epoll-mx remove-output-callbacks ( fd mx -- seq )
+M: epoll-mx remove-output-callbacks
     2dup writes>> key? [
         [ EPOLLOUT do-epoll-del ] [ call-next-method ] 2bi
     ] [ 2drop f ] if ;
@@ -62,5 +62,5 @@ M: epoll-mx remove-output-callbacks ( fd mx -- seq )
 : handle-events ( mx n -- )
     [ dup events>> ] dip head-slice swap '[ _ handle-event ] each ;
 
-M: epoll-mx wait-for-events ( nanos mx -- )
+M: epoll-mx wait-for-events
     swap 60000000 or dupd wait-event handle-events ;
index 5696c2df9990c514ffa82bc2713cafe9321ecc2e..65fab251a46eb4b364fd672d9f41fe85d3cef883 100644 (file)
@@ -29,19 +29,19 @@ M: kqueue-mx dispose* fd>> close-file ;
 : register-kevent ( kevent mx -- )
     fd>> swap 1 f 0 f kevent-func io-error ;
 
-M: kqueue-mx add-input-callback ( thread fd mx -- )
+M: kqueue-mx add-input-callback
     [ call-next-method ] [
         [ EVFILT_READ flags{ EV_ADD EV_ONESHOT } make-kevent ] dip
         register-kevent
     ] 2bi ;
 
-M: kqueue-mx add-output-callback ( thread fd mx -- )
+M: kqueue-mx add-output-callback
     [ call-next-method ] [
         [ EVFILT_WRITE flags{ EV_ADD EV_ONESHOT } make-kevent ] dip
         register-kevent
     ] 2bi ;
 
-M: kqueue-mx remove-input-callbacks ( fd mx -- seq )
+M: kqueue-mx remove-input-callbacks
     2dup reads>> key? [
         [ call-next-method ] [
             [ EVFILT_READ EV_DELETE make-kevent ] dip
@@ -49,7 +49,7 @@ M: kqueue-mx remove-input-callbacks ( fd mx -- seq )
         ] 2bi
     ] [ 2drop f ] if ;
 
-M: kqueue-mx remove-output-callbacks ( fd mx -- seq )
+M: kqueue-mx remove-output-callbacks
     2dup writes>> key? [
         [
             [ EVFILT_WRITE EV_DELETE make-kevent ] dip
@@ -73,6 +73,6 @@ M: kqueue-mx remove-output-callbacks ( fd mx -- seq )
     [ dup events>> ] dip head-slice
     [ handle-kevent ] with each ;
 
-M: kqueue-mx wait-for-events ( nanos mx -- )
+M: kqueue-mx wait-for-events
     swap dup [ make-timespec ] when
     dupd wait-kevent handle-kevents ;
index 8ee5c9fb74edcc6a996af910dafa13056049d4ca..b13976e05408a0182a2c238c7f157d32f76a347d 100644 (file)
@@ -30,5 +30,5 @@ M: run-loop-mx add-output-callback kqueue-mx>> add-output-callback ;
 M: run-loop-mx remove-input-callbacks kqueue-mx>> remove-input-callbacks ;
 M: run-loop-mx remove-output-callbacks kqueue-mx>> remove-output-callbacks ;
 
-M: run-loop-mx wait-for-events ( nanos mx -- )
+M: run-loop-mx wait-for-events
     swap run-one-iteration [ 0 swap wait-for-events ] [ drop ] if ;
index 5a8b45c7baa0ea3cc35da399d793aa5d0d3cc030..a081a063d9c13047e9f285e4c1dd8fa8999ec66f 100644 (file)
@@ -37,7 +37,7 @@ M: fd dispose
 
 M: fd handle-fd check-disposed fd>> ;
 
-M: fd cancel-operation ( fd -- )
+M: fd cancel-operation
     [
         fd>>
         mx get-global
@@ -46,10 +46,10 @@ M: fd cancel-operation ( fd -- )
         2bi
     ] unless-disposed ;
 
-M: unix tell-handle ( handle -- n )
+M: unix tell-handle
     fd>> 0 SEEK_CUR [ lseek ] unix-system-call [ io-error ] [ ] bi ;
 
-M: unix seek-handle ( n seek-type handle -- )
+M: unix seek-handle
     swap {
         { io:seek-absolute [ SEEK_SET ] }
         { io:seek-relative [ SEEK_CUR ] }
@@ -58,10 +58,10 @@ M: unix seek-handle ( n seek-type handle -- )
     } case
     [ fd>> swap ] dip [ lseek ] unix-system-call drop ;
 
-M: unix can-seek-handle? ( handle -- ? )
+M: unix can-seek-handle?
     fd>> SEEK_CUR 0 lseek -1 = not ;
 
-M: unix handle-length ( handle -- n/f )
+M: unix handle-length
     fd>> \ stat <struct> [ fstat -1 = not ] keep
     swap [ st_size>> ] [ drop f ] if ;
 
@@ -69,7 +69,7 @@ ERROR: io-timeout ;
 
 M: io-timeout summary drop "I/O operation timed out" ;
 
-M: unix wait-for-fd ( handle event -- )
+M: unix wait-for-fd
     dup +retry+ eq? [ 2drop ] [
         [ [ self ] dip handle-fd mx get-global ] dip {
             { +input+ [ add-input-callback ] }
@@ -96,7 +96,7 @@ M: fd refill
         } case
     ] if ;
 
-M: unix (wait-to-read) ( port -- )
+M: unix (wait-to-read)
     dup
     dup handle>> check-disposed refill dup
     [ dupd wait-for-port (wait-to-read) ] [ 2drop ] if ;
@@ -116,12 +116,12 @@ M: fd drain
         } case
     ] if ;
 
-M: unix (wait-to-write) ( port -- )
+M: unix (wait-to-write)
     dup
     dup handle>> check-disposed drain
     [ wait-for-port ] [ drop ] if* ;
 
-M: unix io-multiplex ( nanos -- )
+M: unix io-multiplex
     mx get-global wait-for-events ;
 
 ! On Unix, you're not supposed to set stdin to non-blocking
index 4ef4fafbfa54bfb116a6fc118ccae6eeaf465938..8f2c61831f05b1a65d143425cfa34f73c5d00d4c 100644 (file)
@@ -10,7 +10,7 @@ IN: io.directories.unix.linux
         readdir64_r [ (throw-errno) ] unless-zero
     ] 2keep void* deref ; inline
 
-M: linux (directory-entries) ( path -- seq )
+M: linux (directory-entries)
     [
         dirent <struct>
         '[ _ _ next-dirent ] [ >directory-entry ] produce nip
index 2b989fe501b164d3fdb36d1082f89c2d5e11685d..65c1eea8ee94552f2114fa2e3552554fe78f6c2f 100644 (file)
@@ -11,31 +11,31 @@ CONSTANT: touch-mode flags{ O_WRONLY O_APPEND O_CREAT O_EXCL }
 
 CONSTANT: mkdir-mode flags{ USER-ALL GROUP-ALL OTHER-ALL } ! 0o777
 
-M: unix touch-file ( path -- )
+M: unix touch-file
     normalize-path
     dup exists? [ touch ] [
         touch-mode file-mode open-file close-file
     ] if ;
 
-M: unix move-file-atomically ( from to -- )
+M: unix move-file-atomically
     [ normalize-path ] bi@ [ rename ] unix-system-call drop ;
 
-M: unix move-file ( from to -- )
+M: unix move-file
     [ move-file-atomically ] [
         dup errno>> EXDEV = [
             drop [ copy-file ] [ drop delete-file ] 2bi
         ] [ rethrow ] if
     ] recover ;
 
-M: unix delete-file ( path -- ) normalize-path unlink-file ;
+M: unix delete-file normalize-path unlink-file ;
 
-M: unix make-directory ( path -- )
+M: unix make-directory
     normalize-path mkdir-mode [ mkdir ] unix-system-call drop ;
 
-M: unix delete-directory ( path -- )
+M: unix delete-directory
     normalize-path [ rmdir ] unix-system-call drop ;
 
-M: unix copy-file ( from to -- )
+M: unix copy-file
     [ call-next-method ]
     [ [ file-permissions ] dip swap set-file-permissions ] 2bi ;
 
@@ -71,7 +71,7 @@ M: unix copy-file ( from to -- )
     dup +unknown+ = [ drop dup file-info type>> ] when
     <directory-entry> ; inline
 
-M: unix (directory-entries) ( path -- seq )
+M: unix (directory-entries)
     [
         dirent <struct>
         '[ _ _ next-dirent ] [ >directory-entry ] produce nip
index b6a97b95169a786e16fea02c585933cb8e3153a1..f3e54c56f9784d097086310f1f8fa0e145e88772 100644 (file)
@@ -7,17 +7,17 @@ windows.kernel32 alien.c-types sequences splitting
 fry continuations classes.struct windows.time ;
 IN: io.directories.windows
 
-M: windows touch-file ( path -- )
+M: windows touch-file
     [
         normalize-path
         maybe-create-file [ &dispose ] dip
         [ drop ] [ handle>> f now dup (set-file-times) ] if
     ] with-destructors ;
 
-M: windows move-file ( from to -- )
+M: windows move-file
     [ normalize-path ] bi@ MoveFile win32-error=0/f ;
 
-M: windows move-file-atomically ( from to -- )
+M: windows move-file-atomically
     [ normalize-path ] bi@ 0 MoveFileEx win32-error=0/f ;
 
 ERROR: file-delete-failed path error ;
@@ -34,16 +34,16 @@ ERROR: file-delete-failed path error ;
         [ delete-read-only-file ] [ drop win32-error ] if
     ] [ drop ] if ;
 
-M: windows delete-file ( path -- )
+M: windows delete-file
     absolute-path
     [ (delete-file) ]
     [ file-delete-failed boa rethrow ] recover ;
 
-M: windows make-directory ( path -- )
+M: windows make-directory
     normalize-path
     f CreateDirectory win32-error=0/f ;
 
-M: windows delete-directory ( path -- )
+M: windows delete-directory
     normalize-path
     RemoveDirectory win32-error=0/f ;
 
@@ -71,7 +71,7 @@ C: <windows-directory-entry> windows-directory-entry
     [ [ nFileSizeLow>> ] [ nFileSizeHigh>> ] bi >64bit ] tri
     <windows-directory-entry> ; inline
 
-M: windows (directory-entries) ( path -- seq )
+M: windows (directory-entries)
     "\\" ?tail drop "\\*" append
     WIN32_FIND_DATA <struct>
     find-first-file over
index 8bd6c86cf56423e5b0dd2c16edc5318e11d8e4a7..1d65e146acffff9541f7b66591c8e6ae276a867d 100644 (file)
@@ -12,7 +12,7 @@ TUPLE: euc { table biassoc read-only } ;
 : byte? ( ch -- ? )
     0x0 0xff between? ;
 
-M: euc encode-char ( char stream encoding -- )
+M: euc encode-char
     swapd table>> value-at [
         dup byte?
         [ swap stream-write1 ] [
index 7e9d1678570e58c0d8a6f71264f700615e8aaeb1..6198b406e980e44275fc7db85d32ea42d5c7596e 100644 (file)
@@ -92,7 +92,7 @@ ascii <file-reader> xml>gb-data
         [ ufirst>> - ] [ bfirst>> ] bi + unlinear
     ] [ encode-error ] if* ;
 
-M: gb18030 encode-char ( char stream encoding -- )
+M: gb18030 encode-char
     drop [
         dup mapping get-global at
         [ ] [ lookup-range ] ?if
@@ -128,7 +128,7 @@ M: gb18030 encode-char ( char stream encoding -- )
         [ 3drop replacement-char ]
     } cond ;
 
-M: gb18030 decode-char ( stream encoding -- char )
+M: gb18030 decode-char
     drop dup stream-read1 {
         { [ dup not ] [ 2drop f ] }
         { [ dup ascii? ] [ nip 1byte-array mapping get-global value-at ] }
index 005922c31ae1dffadfd83421069ab9a144a4f5c7..ba0938e1c0136d45c6d58fc0a391b35d893c4577 100644 (file)
@@ -53,10 +53,10 @@ CONSTANT: bom-be B{ 0 0 0xfe 0xff }
         bom-be sequence= [ utf32be ] [ missing-bom ] if
     ] if ;
 
-M: utf32 <decoder> ( stream utf32 -- decoder )
+M: utf32 <decoder>
     drop 4 over stream-read bom>le/be <decoder> ;
 
-M: utf32 <encoder> ( stream utf32 -- encoder )
+M: utf32 <encoder>
     drop bom-le over stream-write utf32le <encoder> ;
 
 PRIVATE>
index 3fe399c2d5b39d78e59f1caa69bb46ba610dbfbf..bf1706a2cf86b0101d47d190f90daa75d3df907d 100644 (file)
@@ -45,7 +45,7 @@ TUPLE: utf7codec dialect buffer ;
         ] until
     ] B{ } make 3nip ;
 
-M: utf7codec encode-string ( str stream codec -- )
+M: utf7codec encode-string
     swapd encode-utf7-string swap stream-write ;
 
 DEFER: emit-char
@@ -65,7 +65,7 @@ DEFER: emit-char
 : replace-all! ( src dst -- )
     [ delete-all ] keep push-all ;
 
-M: utf7codec decode-char ( stream codec -- char/f )
+M: utf7codec decode-char
     swap [
         [ dialect>> ] [ buffer>> ] bi [ emit-char ] keep replace-all!
     ] with-input-stream ;
index 64fcd0b5d62e733a3f0388e502b4f77835fd0238..053c7e0f87452906372f7920e817560a457ffd72 100644 (file)
@@ -7,9 +7,9 @@ IN: io.files.info.unix.bsd
 
 TUPLE: bsd-file-info < unix-file-info birth-time flags gen ;
 
-M: bsd new-file-info ( -- class ) bsd-file-info new ;
+M: bsd new-file-info bsd-file-info new ;
 
-M: bsd stat>file-info ( stat -- file-info )
+M: bsd stat>file-info
     [ call-next-method ] keep
     {
         [ st_flags>> >>flags ]
index d4ceea98432274cf6c0d0321ab35e26d648b4883..51966fdf272443ad319b3d74a3a758f9ad0034a8 100644 (file)
@@ -12,9 +12,9 @@ IN: io.files.info.unix.freebsd
 
 TUPLE: freebsd-file-info < unix-file-info birth-time flags gen ;
 
-M: freebsd new-file-info ( -- class ) freebsd-file-info new ;
+M: freebsd new-file-info freebsd-file-info new ;
 
-M: freebsd stat>file-info ( stat -- file-info )
+M: freebsd stat>file-info
     [ call-next-method ] keep
     {
         [ st_flags>> >>flags ]
@@ -25,20 +25,20 @@ M: freebsd stat>file-info ( stat -- file-info )
 TUPLE: freebsd-file-system-info < unix-file-system-info
 io-size owner type-id filesystem-subtype ;
 
-M: freebsd file-systems ( -- array )
+M: freebsd file-systems
     f void* <ref> dup 0 getmntinfo dup io-error
     [ void* deref ] dip \ statfs <c-direct-array>
     [ f_mntonname>> utf8 alien>string file-system-info ] { } map-as ;
 
 M: freebsd new-file-system-info freebsd-file-system-info new ;
 
-M: freebsd file-system-statfs ( normalized-path -- statfs )
+M: freebsd file-system-statfs
     \ statfs <struct> [ statfs-func io-error ] keep ;
 
-M: freebsd file-system-statvfs ( normalized-path -- statvfs )
+M: freebsd file-system-statvfs
     \ statvfs <struct> [ statvfs-func io-error ] keep ;
 
-M: freebsd statfs>file-system-info ( file-system-info byte-array -- file-system-info' )
+M: freebsd statfs>file-system-info
     {
         [ f_bsize>> >>block-size ]
         [ f_iosize>> >>io-size ]
@@ -56,7 +56,7 @@ M: freebsd statfs>file-system-info ( file-system-info byte-array -- file-system-
         [ f_mntfromname>> utf8 alien>string >>device-name ]
     } cleave ;
 
-M: freebsd statvfs>file-system-info ( file-system-info byte-array -- file-system-info' )
+M: freebsd statvfs>file-system-info
     {
         [ f_frsize>> >>preferred-block-size ]
         [ f_favail>> >>files-available ]
index 52948eccc76be2435cba7da0eb949563f22a4d74..5a2b07f05433cd43a06be6d41df75bdb4e9286d7 100644 (file)
@@ -13,10 +13,10 @@ namelen ;
 
 M: linux new-file-system-info linux-file-system-info new ;
 
-M: linux file-system-statfs ( path -- statfs )
+M: linux file-system-statfs
     \ statfs64 <struct> [ statfs64 io-error ] keep ;
 
-M: linux statfs>file-system-info ( file-system-info statfs -- file-system-info' )
+M: linux statfs>file-system-info
     {
         [ f_type>> >>type ]
         [ f_bsize>> >>block-size ]
@@ -31,10 +31,10 @@ M: linux statfs>file-system-info ( file-system-info statfs -- file-system-info'
         ! [ statfs64-f_spare >>spare ]
     } cleave ;
 
-M: linux file-system-statvfs ( path -- statvfs )
+M: linux file-system-statvfs
     \ statvfs64 <struct> [ statvfs64 io-error ] keep ;
 
-M: linux statvfs>file-system-info ( file-system-info statfs -- file-system-info' )
+M: linux statvfs>file-system-info
     {
         [ f_flag>> >>flags ]
         [ f_namemax>> >>name-max ]
@@ -90,7 +90,7 @@ M: linux mount-points
 M: linux file-systems
     parse-mtab [ mtab-entry>file-system-info ] map sift ;
 
-M: linux file-system-info ( path -- file-system-info )
+M: linux file-system-info
     normalize-path [ (file-system-info) ] [ ] bi
     find-mount-point
     {
index dd3e555af656580f17814b6e5789604bbabbf03a..d78705b9226b0cd6b3618a88454ade673d3dc81b 100644 (file)
@@ -12,9 +12,9 @@ IN: io.files.info.unix.macosx
 
 TUPLE: macosx-file-info < unix-file-info birth-time flags gen ;
 
-M: macosx new-file-info ( -- class ) macosx-file-info new ;
+M: macosx new-file-info macosx-file-info new ;
 
-M: macosx stat>file-info ( stat -- file-info )
+M: macosx stat>file-info
     [ call-next-method ] keep
     {
         [ st_flags>> >>flags ]
@@ -25,20 +25,20 @@ M: macosx stat>file-info ( stat -- file-info )
 TUPLE: macosx-file-system-info < unix-file-system-info
 io-size owner type-id filesystem-subtype ;
 
-M: macosx file-systems ( -- array )
+M: macosx file-systems
     f void* <ref> dup 0 getmntinfo64 dup io-error
     [ void* deref ] dip \ statfs64 <c-direct-array>
     [ f_mntonname>> utf8 alien>string file-system-info ] { } map-as ;
 
 M: macosx new-file-system-info macosx-file-system-info new ;
 
-M: macosx file-system-statfs ( normalized-path -- statfs )
+M: macosx file-system-statfs
     \ statfs64 <struct> [ statfs64-func io-error ] keep ;
 
-M: macosx file-system-statvfs ( normalized-path -- statvfs )
+M: macosx file-system-statvfs
     \ statvfs <struct> [ statvfs-func io-error ] keep ;
 
-M: macosx statfs>file-system-info ( file-system-info byte-array -- file-system-info' )
+M: macosx statfs>file-system-info
     {
         [ f_bsize>> >>block-size ]
         [ f_iosize>> >>io-size ]
@@ -57,7 +57,7 @@ M: macosx statfs>file-system-info ( file-system-info byte-array -- file-system-i
         [ f_mntfromname>> utf8 alien>string >>device-name ]
     } cleave ;
 
-M: macosx statvfs>file-system-info ( file-system-info byte-array -- file-system-info' )
+M: macosx statvfs>file-system-info
     {
         [ f_frsize>> >>preferred-block-size ]
         [ f_favail>> >>files-available ]
index a6e8a34561986d9ef5068a565915c750f2060200..cf19aeb35bebc686a6ab108daa6b0f235c285199 100644 (file)
@@ -57,17 +57,17 @@ HOOK: stat>file-info os ( stat -- file-info )
 
 HOOK: stat>type os ( stat -- file-info )
 
-M: unix file-info ( path -- info )
+M: unix file-info
     normalize-path file-status stat>file-info ;
 
-M: unix link-info ( path -- info )
+M: unix link-info
     normalize-path link-status stat>file-info ;
 
-M: unix new-file-info ( -- class ) unix-file-info new ;
+M: unix new-file-info unix-file-info new ;
 
 CONSTANT: standard-unix-block-size 512
 
-M: unix stat>file-info ( stat -- file-info )
+M: unix stat>file-info
     [ new-file-info ] dip
     {
         [ stat>type >>type ]
@@ -99,7 +99,7 @@ M: unix stat>file-info ( stat -- file-info )
         [ drop +unknown+ ]
     } case ;
 
-M: unix stat>type ( stat -- type )
+M: unix stat>type
     st_mode>> n>file-type ;
 
 <PRIVATE
@@ -215,16 +215,16 @@ GENERIC: set-file-user ( path string/id -- )
 
 GENERIC: set-file-group ( path string/id -- )
 
-M: integer set-file-user ( path uid -- )
+M: integer set-file-user
     f set-file-ids ;
 
-M: string set-file-user ( path string -- )
+M: string set-file-user
     user-id f set-file-ids ;
 
-M: integer set-file-group ( path gid -- )
+M: integer set-file-group
     f swap set-file-ids ;
 
-M: string set-file-group ( path string -- )
+M: string set-file-group
     group-id
     f swap set-file-ids ;
 
index 88fa83a745ac1006105755fe1968d7a74d0a7820..731f815b402b474d26948c27cb2a65b8354936f5 100644 (file)
@@ -89,12 +89,12 @@ TUPLE: windows-file-info < file-info-tuple attributes ;
         drop find-first-file-stat WIN32_FIND_DATA>file-info
     ] if ;
 
-M: windows file-info ( path -- info )
+M: windows file-info
     normalize-path
     [ get-file-information-stat ]
     [ set-windows-size-on-disk ] bi ;
 
-M: windows link-info ( path -- info )
+M: windows link-info
     file-info ;
 
 : file-executable-type ( path -- executable/f )
@@ -168,7 +168,7 @@ ERROR: not-absolute-path ;
 
 PRIVATE>
 
-M: windows file-system-info ( path -- file-system-info )
+M: windows file-system-info
     normalize-path root-directory (file-system-info) ;
 
 CONSTANT: names-buf-length 16384
@@ -216,7 +216,7 @@ CONSTANT: names-buf-length 16384
 
 ! Can error with T{ windows-error f 21 "The device is not ready." }
 ! if there is a D: that is not ready, for instance. Ignore these drives.
-M: windows file-systems ( -- array )
+M: windows file-systems
     find-volumes [ volume>paths ] map concat [
         [ (file-system-info) ] [ 2drop f ] recover
     ] map sift ;
index 3f67bb453fe3299b38f60121c434fe7537f8716b..456ae95193290e3570eba818bf629b9732fb59bc 100644 (file)
@@ -4,15 +4,15 @@ USING: io.backend io.files io.files.links io.pathnames kernel
 sequences system unix unix.ffi ;
 IN: io.files.links.unix
 
-M: unix make-link ( path1 path2 -- )
+M: unix make-link
     normalize-path [ symlink ] unix-system-call drop ;
 
-M: unix make-hard-link ( path1 path2 -- )
+M: unix make-hard-link
     normalize-path [ link ] unix-system-call drop ;
 
-M: unix read-link ( path -- path' )
+M: unix read-link
     normalize-path read-symbolic-link ;
 
-M: unix resolve-symlinks ( path -- path' )
+M: unix resolve-symlinks
     path-components "/"
     [ append-path dup exists? [ follow-links ] when ] reduce ;
index 11b59318876770e23ef7b25c15f2cebd16f21b3f..31e7dde767be1dd4f0fb8613ac3490498f8bd1f1 100644 (file)
@@ -6,5 +6,5 @@ IN: io.files.unique.unix
 
 CONSTANT: open-unique-flags flags{ O_RDWR O_CREAT O_EXCL }
 
-M: unix (touch-unique-file) ( path -- )
+M: unix (touch-unique-file)
     open-unique-flags file-mode open-file close-file ;
index faa025a6ec8a4c815762ce22b444c659519c055f..59223fee304a27f286da80e26640847227fc3e0a 100644 (file)
@@ -2,5 +2,5 @@ USING: destructors environment io.files.unique.private
 io.files.windows system windows.kernel32 ;
 IN: io.files.unique.windows
 
-M: windows (touch-unique-file) ( path -- )
+M: windows (touch-unique-file)
     GENERIC_WRITE CREATE_NEW 0 open-file dispose ;
index 47aa5bb34d021897eecbe3ba050961603c8d814f..09743b144e3f64e2dc2861ba2a5b3d78d16039f4 100644 (file)
@@ -14,16 +14,16 @@ IN: io.files.unix
         ] [ rethrow ] if
     ] recover ;
 
-M: unix cwd ( -- path )
+M: unix cwd
     4096 (cwd) ;
 
-M: unix cd ( path -- ) [ chdir ] unix-system-call drop ;
+M: unix cd [ chdir ] unix-system-call drop ;
 
 CONSTANT: read-flags flags{ O_RDONLY }
 
 : open-read ( path -- fd ) read-flags file-mode open-file ;
 
-M: unix (file-reader) ( path -- stream )
+M: unix (file-reader)
     open-read <fd> init-fd <input-port> ;
 
 CONSTANT: write-flags flags{ O_WRONLY O_CREAT O_TRUNC }
@@ -31,7 +31,7 @@ CONSTANT: write-flags flags{ O_WRONLY O_CREAT O_TRUNC }
 : open-write ( path -- fd )
     write-flags file-mode open-file ;
 
-M: unix (file-writer) ( path -- stream )
+M: unix (file-writer)
     open-write <fd> init-fd <output-port> ;
 
 CONSTANT: append-flags flags{ O_WRONLY O_APPEND O_CREAT }
@@ -42,7 +42,7 @@ CONSTANT: append-flags flags{ O_WRONLY O_APPEND O_CREAT }
         dup 0 SEEK_END [ lseek ] unix-system-call drop
     ] with-destructors ;
 
-M: unix (file-appender) ( path -- stream )
+M: unix (file-appender)
     open-append <fd> init-fd <output-port> ;
 
 M: unix home "HOME" os-env ;
index 4bd2c90879777be831159b32266d479e00c8f28b..7f9bdfb960bcb06d408b0ef8ca921fa913aa405c 100644 (file)
@@ -102,10 +102,10 @@ SYMBOL: master-completion-port
 M: win32-handle cancel-operation
     [ handle>> CancelIo win32-error=0/f ] unless-disposed ;
 
-M: windows io-multiplex ( nanos -- )
+M: windows io-multiplex
     handle-overlapped [ 0 io-multiplex ] when ;
 
-M: windows init-io ( -- )
+M: windows init-io
     <master-completion-port> master-completion-port set-global
     H{ } clone pending-overlapped set-global ;
 
@@ -125,9 +125,9 @@ ERROR: seek-before-start n ;
 : set-seek-ptr ( n handle -- )
     [ dup 0 < [ seek-before-start ] when ] dip ptr<< ;
 
-M: windows tell-handle ( handle -- n ) ptr>> ;
+M: windows tell-handle ptr>> ;
 
-M: windows seek-handle ( n seek-type handle -- )
+M: windows seek-handle
     swap {
         { seek-absolute [ set-seek-ptr ] }
         { seek-relative [ [ ptr>> + ] keep set-seek-ptr ] }
@@ -135,10 +135,10 @@ M: windows seek-handle ( n seek-type handle -- )
         [ bad-seek-type ]
     } case ;
 
-M: windows can-seek-handle? ( handle -- ? )
+M: windows can-seek-handle?
     handle>> handle>file-size >boolean ;
 
-M: windows handle-length ( handle -- n/f )
+M: windows handle-length
     handle>> handle>file-size
     dup { 0 f } member? [ drop f ] when ;
 
@@ -182,7 +182,7 @@ M: windows handle-length ( handle -- n/f )
 : finish-write ( n port -- )
     [ update-file-ptr ] [ buffer>> buffer-consume ] 2bi ;
 
-M: object drain ( port handle -- event/f )
+M: object drain
     [ make-FileArgs dup setup-write WriteFile ]
     [ drop [ wait-for-file ] [ finish-write ] bi ] 2bi f ;
 
@@ -197,14 +197,14 @@ M: object drain ( port handle -- event/f )
 : finish-read ( n port -- )
     [ update-file-ptr ] [ buffer>> buffer+ ] 2bi ;
 
-M: object refill ( port handle -- event/f )
+M: object refill
     [ make-FileArgs dup setup-read ReadFile ]
     [ drop [ wait-for-file ] [ finish-read ] bi ] 2bi f ;
 
-M: windows (wait-to-write) ( port -- )
+M: windows (wait-to-write)
     [ dup handle>> drain ] with-destructors drop ;
 
-M: windows (wait-to-read) ( port -- )
+M: windows (wait-to-read)
     [ dup handle>> refill ] with-destructors drop ;
 
 : make-fd-set ( socket -- fd_set )
@@ -215,7 +215,7 @@ M: windows (wait-to-read) ( port -- )
 
 CONSTANT: select-timeval S{ timeval { sec 0 } { usec 1000 } }
 
-M: windows wait-for-fd ( handle event -- )
+M: windows wait-for-fd
     [ file>> handle>> 1 swap ] dip select-sets select-timeval
     select drop yield ;
 
@@ -255,13 +255,13 @@ M: windows init-stdio
     [ [ handle>> ] dip d>w/w LONG <ref> ] dip SetFilePointer
     INVALID_SET_FILE_POINTER = [ "SetFilePointer failed" throw ] when ;
 
-M: windows (file-reader) ( path -- stream )
+M: windows (file-reader)
     open-read <input-port> ;
 
-M: windows (file-writer) ( path -- stream )
+M: windows (file-writer)
     open-write <output-port> ;
 
-M: windows (file-appender) ( path -- stream )
+M: windows (file-appender)
     open-append <output-port> ;
 
 SYMBOLS: +read-only+ +hidden+ +system+
@@ -314,7 +314,7 @@ M: windows cd
 
 CONSTANT: unicode-prefix "\\\\?\\"
 
-M: windows root-directory? ( path -- ? )
+M: windows root-directory?
     {
         { [ dup empty? ] [ drop f ] }
         { [ dup [ path-separator? ] all? ] [ drop t ] }
@@ -354,7 +354,7 @@ M: windows root-path remove-unicode-prefix root-path* ;
 
 M: windows relative-path remove-unicode-prefix relative-path* ;
 
-M: windows normalize-path ( string -- string' )
+M: windows normalize-path
     dup unc-path? [
         normalize-separators
     ] [
index c82ee9ff8c0dd89bd1a619b6f48102b9dbc632d1..0b299331f85357e0a19499d8bb837771308223b4 100644 (file)
@@ -99,12 +99,12 @@ IN: io.launcher.unix
     [ setup-environment ] [ 2drop 253 _exit ] recover
     [ get-arguments posix-spawn ] [ drop ] recover ;
 
-M: unix (current-process) ( -- handle ) getpid ;
+M: unix (current-process) getpid ;
 
-M: unix (run-process) ( process -- pid )
+M: unix (run-process)
     '[ _ fork-process ] [ ] with-fork ;
 
-M: unix (kill-process) ( process -- )
+M: unix (kill-process)
     [ handle>> SIGTERM ] [ group>> ] bi {
         { +same-group+ [ kill ] }
         { +new-group+ [ killpg ] }
@@ -117,7 +117,7 @@ M: unix (kill-process) ( process -- )
 : code>status ( code -- obj )
     dup WIFSIGNALED [ WTERMSIG sig:signal boa ] [ WEXITSTATUS ] if ;
 
-M: unix (wait-for-processes) ( -- ? )
+M: unix (wait-for-processes)
     { int } [ -1 swap WNOHANG waitpid ] with-out-parameters
     swap dup 0 <= [
         2drop t
index 4897aa07f08fe90434f81e7c75e69c4f6c38d09d..613cb70f88dc82f77c30f7b7eab60b44935888b1 100644 (file)
@@ -146,7 +146,7 @@ TUPLE: CreateProcess-args
     fill-startup-info
     nip ;
 
-M: windows (current-process) ( -- handle )
+M: windows (current-process)
     GetCurrentProcessId ;
 
 ERROR: launch-error process error ;
@@ -157,7 +157,7 @@ M: launch-error error.
     "Launch descriptor:" print nl
     process>> . ;
 
-M: windows (kill-process) ( process -- )
+M: windows (kill-process)
     handle>> hProcess>> 255 TerminateProcess win32-error=0/f ;
 
 : dispose-process ( process-information -- )
@@ -176,7 +176,7 @@ M: windows (kill-process) ( process -- )
     over handle>> dispose-process
     notify-exit ;
 
-M: windows (wait-for-processes) ( -- ? )
+M: windows (wait-for-processes)
     processes get keys dup
     [ handle>> hProcess>> ] void*-array{ } map-as
     [ length ] keep 0 0
@@ -285,7 +285,7 @@ M: windows (wait-for-processes) ( -- ? )
     [ [ redirect-stderr ] dip hStdError<< ]
     [ [ redirect-stdin ] dip hStdInput<< ] 3tri ;
 
-M: windows (run-process) ( process -- handle )
+M: windows (run-process)
     [
         [
             dup make-CreateProcess-args
index 67c245d9565d77264800ff8fc06d2f847fed2dc4..1d6a3344e2aec2da83cee0be521732e48a7f1634 100644 (file)
@@ -35,7 +35,7 @@ PRIVATE>
 
 HOOK: close-mapped-file io-backend ( mmap -- )
 
-M: mapped-file dispose* ( mmap -- ) close-mapped-file ;
+M: mapped-file dispose* close-mapped-file ;
 
 : with-mapped-file ( path quot -- )
     [ <mapped-file> ] dip with-disposal ; inline
index ff6a3f49379b668475335517ccfb22206dd7b9c3..ddbad1cb9fa30ac5682a63eabed7c85d903ebda4 100644 (file)
@@ -21,6 +21,6 @@ M: unix (mapped-file-reader)
     flags{ MAP_FILE MAP_SHARED }
     O_RDONLY mmap-open ;
 
-M: unix close-mapped-file ( mmap -- )
+M: unix close-mapped-file
     [ [ address>> ] [ length>> ] bi munmap io-error ]
     [ handle>> close-file ] bi ;
index bd18c12edae679f65b0c91cee04ef075c3d8aca2..525190383d6e1a161d8055341f01417554a0ee58 100644 (file)
@@ -44,7 +44,7 @@ M: windows (mapped-file-reader)
         -rot <win32-mapped-file>
     ] with-destructors ;
 
-M: windows close-mapped-file ( mapped-file -- )
+M: windows close-mapped-file
     [
         [ handle>> &dispose drop ]
         [ address>> UnmapViewOfFile win32-error=0/f ] bi
index 4b73cb708ce0a82ba40b58e90c05ec98845151bc..44078c935e3e858ca6f57a5d71516d136b8efb7b 100644 (file)
@@ -44,7 +44,7 @@ TUPLE: linux-monitor < monitor wd inotify watches ;
         "Calling <monitor> outside with-monitors" throw
     ] unless ;
 
-M: linux (monitor) ( path recursive? mailbox -- monitor )
+M: linux (monitor)
     swap [
         <recursive-monitor>
     ] [
@@ -52,7 +52,7 @@ M: linux (monitor) ( path recursive? mailbox -- monitor )
         IN_CHANGE_EVENTS swap add-watch
     ] if ;
 
-M: linux-monitor dispose* ( monitor -- )
+M: linux-monitor dispose*
     [ [ wd>> ] [ watches>> ] bi delete-at ]
     [
         dup inotify>> disposed>> [ drop ] [
index 6c6a364097eea5b62c661cfdc138f1e553fd115a..9df6c52a5f70931ccf7a8d9a16de7d7395dfe393 100644 (file)
@@ -8,7 +8,7 @@ IN: io.pipes
 
 TUPLE: pipe in out ;
 
-M: pipe dispose ( pipe -- )
+M: pipe dispose
     [
         [ in>> &dispose drop ]
         [ out>> &dispose drop ] bi
@@ -42,7 +42,7 @@ M: callable run-pipeline-element
 
 GENERIC: <pipes> ( obj -- pipes )
 
-M: integer <pipes> ( n -- pipes )
+M: integer <pipes>
     [
         [ (pipe) |dispose ] replicate
         T{ pipe } [ prefix ] [ suffix ] bi
index 92058e805f14722f4e854505f9412bc9806d34fb..f950a9d6be80ebd0968c2fa39d3e161c2dd37827 100644 (file)
@@ -1,12 +1,11 @@
 ! Copyright (C) 2008 Slava Pestov.
 ! See http://factorcode.org/license.txt for BSD license.
-USING: alien.c-types alien.data system kernel unix math sequences
-io.backend.unix io.ports libc specialized-arrays accessors unix.ffi ;
-QUALIFIED: io.pipes
+USING: alien.c-types alien.data io.backend.unix io.pipes kernel
+libc sequences specialized-arrays system unix.ffi ;
 SPECIALIZED-ARRAY: int
 IN: io.pipes.unix
 
-M: unix io.pipes:(pipe) ( -- pair )
+M: unix (pipe)
     2 int <c-array>
-    [ pipe io-error ]
+    [ unix.ffi:pipe io-error ]
     [ first2 [ <fd> init-fd ] bi@ io.pipes:pipe boa ] bi ;
index 7a87df65e81d4c934c7cfbe0aabf4f9c5efc36c9..ccfa24f13fac8bc855b9aa0c506cfac3809ecc37 100644 (file)
@@ -39,7 +39,7 @@ IN: io.pipes.windows
         nano-count #
     ] "" make ;
 
-M: windows (pipe) ( -- pipe )
+M: windows (pipe)
     [
         unique-pipe-name
         [ create-named-pipe ] [ open-other-end ] bi
index eb7d55e45f49a07f4ead87341e0d2e2f39aa2ee1..9088915788072b0e60c9fcc42c4d1ad661b4cb69 100644 (file)
@@ -3,17 +3,15 @@
 USING: accessors io.sockets.secure kernel ;
 IN: io.sockets.secure.debug
 
-
 GENERIC: <test-secure-config>* ( obj -- config )
 
-
-M: TLSv1 <test-secure-config>* ( obj -- config )
+M: TLSv1 <test-secure-config>*
     drop <secure-config>
         "vocab:openssl/test-1.0/server.pem" >>key-file
         "vocab:openssl/test-1.0/dh1024.pem" >>dh-file
         "password" >>password ;
 
-M: object <test-secure-config>* ( obj -- config )
+M: object <test-secure-config>*
     drop <secure-config>
         "vocab:openssl/test-1.2/server.pem" >>key-file
         "vocab:openssl/test-1.2/dh1024.pem" >>dh-file
index a7ca47d3e5c5f6a9d2275b09f4e68e41e448c7da..e0d0f44cd65ef059ae59a08867065f44a34e0285 100644 (file)
@@ -160,7 +160,7 @@ M: bio dispose* handle>> BIO_free ssl-error ;
         V{ } clone >>aliens
         H{ } clone >>sessions ;
 
-M: openssl <secure-context> ( config -- context )
+M: openssl <secure-context>
     maybe-init-ssl
     [
         dup method>> ssl-method SSL_CTX_new
@@ -276,7 +276,7 @@ SYMBOL: default-secure-context
         { { SSL_ERROR_ZERO_RETURN [ drop f ] } } check-ssl-error
     ] keep swap [ 2nip ] [ swap buffer+ f ] if* ;
 
-M: ssl-handle refill ( port handle -- event/f )
+M: ssl-handle refill
     dup maybe-handshake [ buffer>> ] [ handle>> ] bi* do-ssl-read ;
 
 ! Output ports
@@ -284,7 +284,7 @@ M: ssl-handle refill ( port handle -- event/f )
     2dup swap [ buffer@ ] [ buffer-length ] bi SSL_write
     [ f check-ssl-error ] keep swap [ 2nip ] [ swap buffer-consume f ] if* ;
 
-M: ssl-handle drain ( port handle -- event/f )
+M: ssl-handle drain
     dup maybe-handshake [ buffer>> ] [ handle>> ] bi* do-ssl-write ;
 
 ! Connect
@@ -380,7 +380,7 @@ M: ssl-handle dispose*
         [ 2drop ] [ subject-name-verify-error ] if
     ] [ certificate-missing-error ] if* ;
 
-M: openssl check-certificate ( host ssl -- )
+M: openssl check-certificate
     current-secure-context config>> verify>> [
         handle>>
         [ nip check-verify-result ]
@@ -413,7 +413,7 @@ M: openssl send-secure-handshake
         host>> swap handle>> check-certificate
     ] [ 2drop ] if ;
 
-M: openssl accept-secure-handshake ( -- )
+M: openssl accept-secure-handshake
     input/output-ports
     make-input/output-secure ;
 
index b0f896f722f7b7800a7d0465a1746d882c2df1ef..182e72405136e08e80fdaf233c3a1a438542fe7e 100644 (file)
@@ -66,7 +66,7 @@ M: secure (server) addrspec>> (server) ;
 
 CONSULT: inet secure addrspec>> ;
 
-M: secure resolve-host ( secure -- seq )
+M: secure resolve-host
     [ addrspec>> resolve-host ] [ hostname>> ] bi
     [ <secure> ] curry map ;
 
index 28cf6298c0f4709911a078d98098b617d757960c..fe6d8838d2a95b414d40ff48a06903162841f868 100644 (file)
@@ -14,14 +14,14 @@ M: ssl-handle handle-fd file>> handle-fd ;
 
 M: unix socket-handle fd>> ;
 
-M: secure remote>handle ( secure -- handle )
+M: secure remote>handle
     [ addrspec>> remote>handle ] [ hostname>> ] bi <ssl-socket> ;
 
 M: secure parse-sockaddr addrspec>> parse-sockaddr f <secure> ;
 
 M: secure (get-local-address) addrspec>> (get-local-address) ;
 
-M: secure establish-connection ( client-out remote -- )
+M: secure establish-connection
     addrspec>> [ establish-connection ] [ secure-connection ] 2bi ;
 
 M: secure (accept)
@@ -52,4 +52,4 @@ M: ssl-handle shutdown
         f >>connected [ (shutdown) ] with-timeout
     ] [ drop ] if ;
 
-M: unix non-ssl-socket? ( obj -- ? ) fd? ;
+M: unix non-ssl-socket? fd? ;
index 815200c11b89157e2e98be56c709ff9373e93b93..16de5da82b950b393a8a4f136389c664e80c4856 100644 (file)
@@ -57,14 +57,14 @@ M: openssl ssl-certificate-verification-supported? f ;
 
 M: windows socket-handle handle>> alien-address ;
 
-M: secure remote>handle ( addrspec -- handle )
+M: secure remote>handle
     [ addrspec>> remote>handle ] [ hostname>> ] bi <ssl-socket> ;
 
 GENERIC: windows-socket-handle ( obj -- handle )
 M: ssl-handle windows-socket-handle file>> ;
 M: win32-socket windows-socket-handle ;
 
-M: secure (get-local-address) ( handle remote -- sockaddr )
+M: secure (get-local-address)
     [ windows-socket-handle ] [ addrspec>> ] bi* (get-local-address) ;
 
 M: secure parse-sockaddr addrspec>> parse-sockaddr f <secure> ;
index a6ef8984b582b0c642c06e30a484b1024293c86d..b9b06158dc8687162801e9733b7d0afa03fca1bd 100644 (file)
@@ -89,10 +89,10 @@ PRIVATE>
 
 : <ipv4> ( host -- ipv4 ) dup check-ipv4 ipv4 boa ;
 
-M: ipv4 inet-ntop ( data addrspec -- str )
+M: ipv4 inet-ntop
     drop 4 memory>byte-array join-ipv4 ;
 
-M: ipv4 inet-pton ( str addrspec -- data )
+M: ipv4 inet-pton
     drop [ ?parse-ipv4 ] [ invalid-ipv4 ] recover ;
 
 M: ipv4 address-size drop 4 ;
@@ -109,17 +109,17 @@ M: ipv4 empty-sockaddr drop sockaddr-in <struct> ;
         swap
         port>> 0 or htons >>port ; inline
 
-M: ipv4 make-sockaddr ( inet -- sockaddr )
+M: ipv4 make-sockaddr
     [ make-sockaddr-part ]
     [ host>> "0.0.0.0" or ]
     [ inet-pton uint deref >>addr ] tri ;
 
-M: ipv4 make-sockaddr-outgoing ( inet -- sockaddr )
+M: ipv4 make-sockaddr-outgoing
     [ make-sockaddr-part ]
     [ host>> dup { f "0.0.0.0" } member? [ drop "127.0.0.1" ] when ]
     [ inet-pton uint deref >>addr ] tri ;
 
-M: ipv4 parse-sockaddr ( sockaddr-in addrspec -- newaddrspec )
+M: ipv4 parse-sockaddr
     [ addr>> uint <ref> ] dip inet-ntop <ipv4> ;
 
 TUPLE: inet4 < ipv4 { port maybe{ integer } read-only } ;
@@ -129,7 +129,7 @@ TUPLE: inet4 < ipv4 { port maybe{ integer } read-only } ;
 
 M: ipv4 with-port [ host>> ] dip <inet4> ;
 
-M: inet4 parse-sockaddr ( sockaddr-in addrspec -- newaddrspec )
+M: inet4 parse-sockaddr
     [ call-next-method ] [ drop port>> ntohs ] 2bi with-port ;
 
 M: inet4 present
@@ -154,7 +154,7 @@ PRIVATE>
 
 : <ipv6> ( host -- ipv6 ) dup check-ipv6 0 ipv6 boa ;
 
-M: ipv6 inet-ntop ( data addrspec -- str )
+M: ipv6 inet-ntop
     drop 16 memory>byte-array 2 <groups> [ be> >hex ] map ":" join ;
 
 <PRIVATE
@@ -164,7 +164,7 @@ M: ipv6 inet-ntop ( data addrspec -- str )
 
 PRIVATE>
 
-M: ipv6 inet-pton ( str addrspec -- data )
+M: ipv6 inet-pton
     drop [ parse-ipv6 ipv6-bytes ] [ invalid-ipv6 ] recover ;
 
 M: ipv6 address-size drop 16 ;
@@ -181,13 +181,13 @@ M: ipv6 empty-sockaddr drop sockaddr-in6 <struct> ;
         swap
         port>> 0 or htons >>port ; inline
 
-M: ipv6 make-sockaddr ( inet -- sockaddr )
+M: ipv6 make-sockaddr
     [ make-sockaddr-in6-part ]
     [ [ host>> "::" or ] keep inet-pton >>addr ]
     [ scope-id>> >>scopeid ]
     tri ;
 
-M: ipv6 make-sockaddr-outgoing ( inet -- sockaddr )
+M: ipv6 make-sockaddr-outgoing
     [ make-sockaddr-in6-part ]
     [ [ host>> dup { f "::" } member? [ drop "::1" ] when ] keep inet-pton >>addr ]
     [ scope-id>> >>scopeid ]
@@ -247,7 +247,7 @@ GENERIC: (client) ( remote -- client-in client-out local )
 
 M: array (client) [ (client) 3array ] attempt-all first3 ;
 
-M: object (client) ( remote -- client-in client-out local )
+M: object (client)
     [
         [ remote>handle ] keep
         [
index 9651b7917fc22f19b05f9e3ae4df50654f68d726..7dbc8f9f6a90005503a8e86bbf199473eafe47ee 100644 (file)
@@ -17,17 +17,17 @@ IN: io.sockets.windows
 : set-ioctl-socket ( handle cmd arg -- )
     [ handle>> ] 2dip ulong <ref> ioctlsocket socket-error ;
 
-M: windows addrinfo-error-string ( n -- string )
+M: windows addrinfo-error-string
     n>win32-error-string ;
 
-M: windows sockaddr-of-family ( alien af -- addrspec )
+M: windows sockaddr-of-family
     {
         { AF_INET [ sockaddr-in memory>struct ] }
         { AF_INET6 [ sockaddr-in6 memory>struct ] }
         [ 2drop f ]
     } case ;
 
-M: windows addrspec-of-family ( af -- addrspec )
+M: windows addrspec-of-family
     {
         { AF_INET [ T{ ipv4 } ] }
         { AF_INET6 [ T{ ipv6 } ] }
@@ -39,7 +39,7 @@ TUPLE: win32-socket < win32-file ;
 : <win32-socket> ( handle -- win32-socket )
     win32-socket new-win32-handle ;
 
-M: win32-socket dispose* ( stream -- )
+M: win32-socket dispose*
     handle>> closesocket socket-error* ;
 
 : unspecific-sockaddr/size ( addrspec -- sockaddr len )
@@ -54,18 +54,18 @@ M: win32-socket dispose* ( stream -- )
     dup socket-error
     opened-socket ;
 
-M: object (get-local-address) ( socket addrspec -- sockaddr )
+M: object (get-local-address)
     [ handle>> ] dip empty-sockaddr/size int <ref>
     [ getsockname socket-error ] keepd ;
 
-M: object (get-remote-address) ( socket addrspec -- sockaddr )
+M: object (get-remote-address)
     [ handle>> ] dip empty-sockaddr/size int <ref>
     [ getpeername socket-error ] keepd ;
 
 : bind-socket ( win32-socket sockaddr len -- )
     [ handle>> ] 2dip bind socket-error ;
 
-M: object remote>handle ( addrspec -- handle )
+M: object remote>handle
     [ SOCK_STREAM open-socket ] keep
     [
         bind-local-address get
@@ -81,19 +81,19 @@ M: object remote>handle ( addrspec -- handle )
 ! NOTE: Possibly tweak this because of SYN flood attacks
 : listen-backlog ( -- n ) 0x7fffffff ; inline
 
-M: object (server) ( addrspec -- handle )
+M: object (server)
     [
         SOCK_STREAM server-socket
         dup handle>> listen-backlog listen winsock-return-check
     ] with-destructors ;
 
-M: windows (datagram) ( addrspec -- handle )
+M: windows (datagram)
     [ SOCK_DGRAM server-socket ] with-destructors ;
 
-M: windows (raw) ( addrspec -- handle )
+M: windows (raw)
     [ SOCK_RAW server-socket ] with-destructors ;
 
-M: windows (broadcast) ( datagram -- datagram )
+M: windows (broadcast)
     dup handle>> SOL_SOCKET SO_BROADCAST set-socket-option ;
 
 : malloc-int ( n -- alien )
@@ -146,7 +146,7 @@ TUPLE: ConnectEx-args port
     stdcall alien-indirect drop
     winsock-error ; inline
 
-M: object establish-connection ( client-out remote -- )
+M: object establish-connection
     make-sockaddr/size-outgoing <ConnectEx-args>
         swap >>port
         dup port>> handle>> handle>> >>s
@@ -203,7 +203,7 @@ TUPLE: AcceptEx-args port
     ] [ port>> addr>> protocol-family ] bi
     sockaddr-of-family ; inline
 
-M: object (accept) ( server addr -- handle sockaddr )
+M: object (accept)
     [
         <AcceptEx-args>
         {
@@ -265,7 +265,7 @@ TUPLE: WSARecvFrom-args port
     [ lpFromLen>> int deref ]
     tri memcpy ; inline
 
-M: windows (receive-unsafe) ( n buf datagram -- count addrspec )
+M: windows (receive-unsafe)
     [
         <WSARecvFrom-args>
         [ call-WSARecvFrom ]
@@ -309,7 +309,7 @@ TUPLE: WSASendTo-args port
         [ lpCompletionRoutine>> ]
     } cleave WSASendTo socket-error* ; inline
 
-M: windows (send) ( packet addrspec datagram -- )
+M: windows (send)
     [
         <WSASendTo-args>
         [ call-WSASendTo ]
index 79438d5bc5b0c7d59144c13cb21f7373b751b3d7..4b2ae2d2e7a74ba39ac535ec122795e7fbb746ca 100644 (file)
@@ -22,11 +22,11 @@ INSTANCE: limited-stream input-stream
 
 GENERIC#: limit-stream 1 ( stream limit -- stream' )
 
-M: decoder limit-stream ( stream limit -- stream' )
+M: decoder limit-stream
     '[ stream>> _ limit-stream ] [ code>> ] [ cr>> ] tri
     decoder boa ; inline
 
-M: object limit-stream ( stream limit -- stream' )
+M: object limit-stream
     <limited-stream> ;
 
 : limited-input ( limit -- )
@@ -147,10 +147,10 @@ M: limited-stream stream-element-type
 
 GENERIC: unlimit-stream ( stream -- stream' )
 
-M: decoder unlimit-stream ( stream -- stream' )
+M: decoder unlimit-stream
     [ stream>> stream>> ] [ code>> ] [ cr>> ] tri decoder boa ;
 
-M: limited-stream unlimit-stream ( stream -- stream' ) stream>> ;
+M: limited-stream unlimit-stream stream>> ;
 
 : unlimited-input ( -- )
     input-stream [ unlimit-stream ] change ;
index 2a9bc96eabe67ff9e95be317333564785fd8cb5d..c98b26f6cdb749e90bbdfd54ff68f21a3e47fcdd 100644 (file)
@@ -39,7 +39,7 @@ CONSTANT: SIGTHR    32
 
 FUNCTION: int strerror_r ( int errno, char* buf, size_t buflen )
 
-M: freebsd strerror ( errno -- str )
+M: freebsd strerror
     [
         1024 [ malloc &free ] keep [ strerror_r ] keepd nip
         alien>native-string
index 46fcdb33e56fb5db188f7ca991a5d845ba11538f..b390b29594705a74dfc9bfc49886285aa1a26e0f 100644 (file)
@@ -172,7 +172,7 @@ CONSTANT: SIGSYS          31
 
 FUNCTION: c-string strerror_r ( int errno, char* buf, size_t buflen )
 
-M: linux strerror ( errno -- str )
+M: linux strerror
     [
         1024 [ malloc &free ] keep strerror_r
     ] with-destructors ;
index 5221846fa7deabe7a421aa78465e88e4b19a359f..ba6dfcf6a015d4a3659e10b5a945a9fc8ba68ad6 100644 (file)
@@ -143,7 +143,7 @@ CONSTANT: SIGUSR2   31
 
 FUNCTION: int strerror_r ( int errno, char* buf, size_t buflen )
 
-M: macosx strerror ( errno -- str )
+M: macosx strerror
     [
         1024 [ malloc &free ] keep [ strerror_r ] keepd nip
         alien>native-string
index 449031882da06888bb19291f96bbe659102e588b..79dc9653fb3bee452abe78a5808968927fd9afea 100644 (file)
@@ -108,7 +108,7 @@ LIBRARY: libc
 
 FUNCTION: int strerror_s ( char *buffer, size_t numberOfElements, int errnum )
 
-M: windows strerror ( errno -- str )
+M: windows strerror
     [
         [ 1024 [ malloc &free ] keep ] dip
         [ strerror_s drop ] keepdd
index 66282c58b3112481cd29d17ee471e6be78d29138..6a80d482b40d780b19654bccfcc86c2693533e32 100644 (file)
@@ -14,9 +14,9 @@ TUPLE: cons-state { car read-only } { cdr read-only } ;
 
 C: cons cons-state
 
-M: cons-state car ( cons -- car ) car>> ;
+M: cons-state car car>> ;
 
-M: cons-state cdr ( cons -- cdr ) cdr>> ;
+M: cons-state cdr cdr>> ;
 
 SINGLETON: +nil+
 M: +nil+ nil? drop t ;
index 9cd29f28d009c12ad4f8ac9226b90381d0cd7f82..fc506ce3d7615511f100e36ff2d84d11209772a2 100644 (file)
@@ -59,7 +59,7 @@ SINGLETON: lambda-parser
 : parse-def ( name/paren -- def )
     dup "(" = [ drop parse-multi-def ] [ parse-single-def ] if update-locals ;
 
-M: lambda-parser parse-quotation ( -- quotation )
+M: lambda-parser parse-quotation
     H{ } clone (parse-lambda) ;
 
 : parse-let ( -- form )
index 812d1b9c92c7719af957cc92e292c8b1dfa7dd5c..8ab0f5a213b39fb4d0741fdb9aef5999c91b6b38 100644 (file)
@@ -90,5 +90,5 @@ M: object expand-macros* literal ;
 M: callable expand-macros*
     expand-macros literal ;
 
-M: callable expand-macros ( quot -- quot' )
+M: callable expand-macros
     [ begin [ expand-macros* ] each end ] [ ] make ;
index dac15f6172353c9f1a4ed273706507077660e20d..526df5578bbeed720f6e882c5792c5a9cde893ab 100644 (file)
@@ -58,10 +58,10 @@ ERROR: bit-range-error x high low ;
 
 GENERIC: (bitfield-quot) ( spec -- quot )
 
-M: integer (bitfield-quot) ( spec -- quot )
+M: integer (bitfield-quot)
     '[ _ shift ] ;
 
-M: pair (bitfield-quot) ( spec -- quot )
+M: pair (bitfield-quot)
     first2-unsafe over word? [
         '[ _ execute _ shift ]
     ] [
index a78a565204fc063c88edfe13a8740b1bf5bbbd3c..4385cdf86d69f4a47b0ee150d754624e2a62a9bf 100644 (file)
@@ -95,24 +95,24 @@ CONSTANT: ppc-rounding-mode>bit
 
 CONSTANT: ppc-denormal-mode-bits 0x4
 
-M: ppc-fpu-env (get-exception-flags) ( register -- exceptions )
+M: ppc-fpu-env (get-exception-flags)
     fpscr>> ppc-exception-flag>bit mask> ; inline
-M: ppc-fpu-env (set-exception-flags) ( register exceptions -- register' )
+M: ppc-fpu-env (set-exception-flags)
     [ ppc-exception-flag>bit >mask ppc-exception-flag-bits remask ] curry change-fpscr ; inline
 
-M: ppc-fpu-env (get-fp-traps) ( register -- exceptions )
+M: ppc-fpu-env (get-fp-traps)
     fpscr>> ppc-fp-traps>bit mask> ; inline
-M: ppc-fpu-env (set-fp-traps) ( register exceptions -- register' )
+M: ppc-fpu-env (set-fp-traps)
     [ ppc-fp-traps>bit >mask ppc-fp-traps-bits remask ] curry change-fpscr ; inline
 
-M: ppc-fpu-env (get-rounding-mode) ( register -- mode )
+M: ppc-fpu-env (get-rounding-mode)
     fpscr>> ppc-rounding-mode-bits mask ppc-rounding-mode>bit value-at ; inline
-M: ppc-fpu-env (set-rounding-mode) ( register mode -- register' )
+M: ppc-fpu-env (set-rounding-mode)
     [ ppc-rounding-mode>bit at ppc-rounding-mode-bits remask ] curry change-fpscr ; inline
 
-M: ppc-fpu-env (get-denormal-mode) ( register -- mode )
+M: ppc-fpu-env (get-denormal-mode)
     fpscr>> ppc-denormal-mode-bits mask zero? +denormal-keep+ +denormal-flush+ ? ; inline
-M: ppc-fpu-env (set-denormal-mode) ( register mode -- register' )
+M: ppc-fpu-env (set-denormal-mode)
     [
         {
             { +denormal-keep+  [ ppc-denormal-mode-bits unmask ] }
@@ -122,24 +122,24 @@ M: ppc-fpu-env (set-denormal-mode) ( register mode -- register' )
 
 CONSTANT: vmx-denormal-mode-bits 0x10000
 
-M: ppc-vmx-env (get-exception-flags) ( register -- exceptions )
+M: ppc-vmx-env (get-exception-flags)
     drop { } ; inline
-M: ppc-vmx-env (set-exception-flags) ( register exceptions -- register' )
+M: ppc-vmx-env (set-exception-flags)
     drop ;
 
-M: ppc-vmx-env (get-fp-traps) ( register -- exceptions )
+M: ppc-vmx-env (get-fp-traps)
     drop { } ; inline
-M: ppc-vmx-env (set-fp-traps) ( register exceptions -- register' )
+M: ppc-vmx-env (set-fp-traps)
     drop ;
 
-M: ppc-vmx-env (get-rounding-mode) ( register -- mode )
+M: ppc-vmx-env (get-rounding-mode)
     drop +round-nearest+ ;
-M: ppc-vmx-env (set-rounding-mode) ( register mode -- register' )
+M: ppc-vmx-env (set-rounding-mode)
     drop ;
 
-M: ppc-vmx-env (get-denormal-mode) ( register -- mode )
+M: ppc-vmx-env (get-denormal-mode)
     vscr>> vmx-denormal-mode-bits mask zero? +denormal-keep+ +denormal-flush+ ? ; inline
-M: ppc-vmx-env (set-denormal-mode) ( register mode -- register )
+M: ppc-vmx-env (set-denormal-mode)
     [
         {
             { +denormal-keep+  [ vmx-denormal-mode-bits unmask ] }
index 2659e2bb5746e1f9565946c99c8e8c70b7afa9f9..133f6f8785b6d363152c8032d1f3b2db70a525cc 100644 (file)
@@ -63,24 +63,24 @@ CONSTANT: sse-rounding-mode>bit
 
 CONSTANT: sse-denormal-mode-bits 0x8040
 
-M: sse-env (get-exception-flags) ( register -- exceptions )
+M: sse-env (get-exception-flags)
     mxcsr>> sse-exception-flag>bit mask> ; inline
-M: sse-env (set-exception-flags) ( register exceptions -- register' )
+M: sse-env (set-exception-flags)
     [ sse-exception-flag>bit >mask sse-exception-flag-bits remask ] curry change-mxcsr ; inline
 
-M: sse-env (get-fp-traps) ( register -- exceptions )
+M: sse-env (get-fp-traps)
     mxcsr>> bitnot sse-fp-traps>bit mask> ; inline
-M: sse-env (set-fp-traps) ( register exceptions -- register' )
+M: sse-env (set-fp-traps)
     [ sse-fp-traps>bit >mask bitnot sse-fp-traps-bits remask ] curry change-mxcsr ; inline
 
-M: sse-env (get-rounding-mode) ( register -- mode )
+M: sse-env (get-rounding-mode)
     mxcsr>> sse-rounding-mode-bits mask sse-rounding-mode>bit value-at ; inline
-M: sse-env (set-rounding-mode) ( register mode -- register' )
+M: sse-env (set-rounding-mode)
     [ sse-rounding-mode>bit at sse-rounding-mode-bits remask ] curry change-mxcsr ; inline
 
-M: sse-env (get-denormal-mode) ( register -- mode )
+M: sse-env (get-denormal-mode)
     mxcsr>> sse-denormal-mode-bits mask zero? +denormal-keep+ +denormal-flush+ ? ; inline
-M: sse-env (set-denormal-mode) ( register mode -- register' )
+M: sse-env (set-denormal-mode)
     [
         {
             { +denormal-keep+  [ sse-denormal-mode-bits unmask ] }
@@ -110,24 +110,24 @@ CONSTANT: x87-rounding-mode>bit
         { +round-zero+    0x0c00 }
     } >biassoc ]
 
-M: x87-env (get-exception-flags) ( register -- exceptions )
+M: x87-env (get-exception-flags)
     status>> x87-exception>bit mask> ; inline
-M: x87-env (set-exception-flags) ( register exceptions -- register' )
+M: x87-env (set-exception-flags)
     drop ;
 
-M: x87-env (get-fp-traps) ( register -- exceptions )
+M: x87-env (get-fp-traps)
     control>> bitnot x87-exception>bit mask> ; inline
-M: x87-env (set-fp-traps) ( register exceptions -- register' )
+M: x87-env (set-fp-traps)
     [ x87-exception>bit >mask bitnot x87-exception-bits remask ] curry change-control ; inline
 
-M: x87-env (get-rounding-mode) ( register -- mode )
+M: x87-env (get-rounding-mode)
     control>> x87-rounding-mode-bits mask x87-rounding-mode>bit value-at ; inline
-M: x87-env (set-rounding-mode) ( register mode -- register' )
+M: x87-env (set-rounding-mode)
     [ x87-rounding-mode>bit at x87-rounding-mode-bits remask ] curry change-control ; inline
 
-M: x87-env (get-denormal-mode) ( register -- mode )
+M: x87-env (get-denormal-mode)
     drop +denormal-keep+ ; inline
-M: x87-env (set-denormal-mode) ( register mode -- register' )
+M: x87-env (set-denormal-mode)
     drop ;
 
 cpu {
index 2d31459d352e7c8747299b3793c30dea834c5b9a..42803cc10ff742e7818c3f26e963ef6243501d39 100644 (file)
@@ -79,7 +79,7 @@ ERROR: log-expects-positive x ;
 
 GENERIC: (integer-log2) ( x -- n ) foldable
 
-M: integer (integer-log2) ( x -- n ) (log2) ; inline
+M: integer (integer-log2) (log2) ; inline
 
 : ((ratio-integer-log)) ( ratio quot -- log )
     [ >integer ] dip call ; inline
@@ -92,9 +92,9 @@ M: integer (integer-log2) ( x -- n ) (log2) ; inline
         [ 1 + ] unless neg
     ] if ; inline
 
-M: ratio (integer-log2) ( r -- n ) [ (integer-log2) ] 2 (ratio-integer-log) ;
+M: ratio (integer-log2) [ (integer-log2) ] 2 (ratio-integer-log) ;
 
-M: ratio (integer-log10) ( r -- n )  [ (integer-log10) ] 10 (ratio-integer-log) ;
+M: ratio (integer-log10) [ (integer-log10) ] 10 (ratio-integer-log) ;
 
 : (integer-log) ( x quot -- n )
     [ dup 0 > ] dip [ log-expects-positive ] if ; inline
index 9fd454e51e8554cdb7687de6fc3855b8af65ea42..e0cb48bab18de1e7f85967f658cff2ecde0e8989 100644 (file)
@@ -37,13 +37,13 @@ M: integer number-hashcode 1 hash-fraction ;
 
 M: ratio number-hashcode >fraction hash-fraction ;
 
-M: float number-hashcode ( x -- h )
+M: float number-hashcode
     {
         { [ dup fp-nan? ] [ drop 0 ] }
         { [ dup fp-infinity? ] [ 0 > 314159 -314159 ? ] }
         [ double>ratio number-hashcode ]
     } cond ;
 
-M: complex number-hashcode ( x -- h )
+M: complex number-hashcode
     >rect [ number-hashcode ] bi@ 1000003 * +
     cell-bits on-bits bitand dup -1 = [ drop -2 ] when ;
index 69b65d4aae20136c50df9b73194895b8d2c1ee21..5ccdf6b863b4220aecec7040a1b2929b46169f00 100644 (file)
@@ -26,7 +26,7 @@ PRIVATE>
     } 2cleave (q*sign) ; inline
 
 GENERIC: qconjugate ( u -- u' )
-M: object qconjugate ( u -- u' )
+M: object qconjugate
     { 1 -1 -1 -1 } v* ; inline
 
 : qrecip ( u -- 1/u )
index 5511756092e0afc07efd1ab917da714285e359c0..18a6c49aba1eb3413e61909501d2a3a3f85a2d72 100644 (file)
@@ -21,9 +21,9 @@ PRIVATE>
     [ sign/mod 0 < [ 1 + ] unless 0 max ] keep
     range boa ; inline
 
-M: range length ( seq -- n ) length>> ; inline
+M: range length length>> ; inline
 
-M: range nth-unsafe ( n range -- obj )
+M: range nth-unsafe
     [ step>> * ] keep from>> + ; inline
 
 ! We want M\ tuple hashcode, not M\ sequence hashcode here!
index ab925b901a231f1cca03d111bbfdbf93b2eb4e3e..0d67ad2ea56b2533263e9af239b185bcfb778951 100644 (file)
@@ -353,7 +353,7 @@ SIMD-128: double-2
 
 ! misc
 
-M: simd-128 vshuffle ( u perm -- v )
+M: simd-128 vshuffle
     vshuffle-bytes ; inline
 
 M: uchar-16 v*hs+
index ac2f443dc7625b1e45d344e1fb84d50d03d1130c..4dd4581bec571ce12adff676ad8d05cf3bc89de2 100644 (file)
@@ -131,7 +131,7 @@ M: object vshuffle2-elements
 GENERIC#: vshuffle-bytes 1 ( v perm -- w )
 
 GENERIC: vshuffle ( v perm -- w )
-M: array vshuffle ( v perm -- w )
+M: array vshuffle
     vshuffle-elements ; inline
 
 GENERIC#: vlshift 1 ( v n -- w )
index 90358acbc6bfe166cff3c790df5720959ca8f6ad..7bf6690cb9940184f5f6142d99447bf898a2a34e 100644 (file)
@@ -26,30 +26,30 @@ ERROR: read-only-slot slot ;
         [ offset>> ]
     } cond ; inline
 
-M: mirror set-at ( val key mirror -- )
+M: mirror set-at
     [ object-slots slot-named check-set-slot ] [ object>> ] bi
     swap set-slot ;
 
 ERROR: mirror-slot-removal slots mirror method ;
 
-M: mirror delete-at ( key mirror -- )
+M: mirror delete-at
     \ delete-at mirror-slot-removal ;
 
-M: mirror clear-assoc ( mirror -- )
+M: mirror clear-assoc
     [ object-slots ] keep \ clear-assoc mirror-slot-removal ;
 
 M: mirror-slot-removal summary
     drop "Slots cannot be removed from a tuple or a mirror of it" ;
 
-M: mirror >alist ( mirror -- alist )
+M: mirror >alist
     [ object-slots ] [ object>> ] bi '[
         [ name>> ] [ offset>> _ swap slot ] bi
     ] { } map>assoc ;
 
-M: mirror keys ( mirror -- keys )
+M: mirror keys
     object-slots [ name>> ] map ;
 
-M: mirror values ( mirror -- values )
+M: mirror values
     [ object-slots ] [ object>> ] bi
     '[ offset>> _ swap slot ] map ;
 
index b064ef069097bf09f01f71f218fd406546c3944d..438b572db10e937e9abbc75c0dd7da1381c5a37e 100644 (file)
@@ -7,10 +7,10 @@ IN: pack
 
 GENERIC: >n-byte-array ( obj n -- byte-array )
 
-M: integer >n-byte-array ( m n -- byte-array ) >endian ;
+M: integer >n-byte-array >endian ;
 
 ! for doing native, platform-dependent sized values
-M: object >n-byte-array ( n string -- byte-array ) heap-size >n-byte-array ;
+M: object >n-byte-array heap-size >n-byte-array ;
 
 : s8>byte-array ( n -- byte-array ) 1 >n-byte-array ;
 : u8>byte-array ( n -- byte-array ) 1 >n-byte-array ;
index bb4d42dc20aebfd44678adc12ccb8b004a0d299e..3a93551ca4fb54e6fc7814af32f4e2530ae1814b 100644 (file)
@@ -354,10 +354,10 @@ SYMBOL: ignore-ws
         main set
     ] with-variables ;
 
-M: ebnf (transform) ( ast -- parser )
+M: ebnf (transform)
     rules>> [ (transform) ] map last ;
 
-M: ebnf-tokenizer (transform) ( ast -- parser )
+M: ebnf-tokenizer (transform)
     elements>> dup "default" = [
         drop default-tokenizer \ tokenizer set-global any-char
     ] [
@@ -370,13 +370,13 @@ ERROR: redefined-rule name ;
 M: redefined-rule summary
     name>> "Rule '" "' defined more than once" surround ;
 
-M: ebnf-rule (transform) ( ast -- parser )
+M: ebnf-rule (transform)
     dup elements>>
     (transform) [
         swap symbol>> dup get parser? [ redefined-rule ] [ set ] if
     ] keep ;
 
-M: ebnf-sequence (transform) ( ast -- parser )
+M: ebnf-sequence (transform)
     ! If ignore-ws is set then each element of the sequence
     ! ignores leading whitespace. This is not inherited by
     ! subelements of the sequence.
@@ -385,43 +385,43 @@ M: ebnf-sequence (transform) ( ast -- parser )
         ignore-ws get [ sp ] when
     ] map seq [ dup length 1 = [ first ] when ] action ;
 
-M: ebnf-choice (transform) ( ast -- parser )
+M: ebnf-choice (transform)
     options>> [ (transform) ] map choice ;
 
-M: ebnf-any-character (transform) ( ast -- parser )
+M: ebnf-any-character (transform)
     drop tokenizer any>> call( -- parser ) ;
 
-M: ebnf-range (transform) ( ast -- parser )
+M: ebnf-range (transform)
     pattern>> range-pattern ;
 
 : transform-group ( ast -- parser )
     ! convert a ast node with groups to a parser for that group
     group>> (transform) ;
 
-M: ebnf-ensure (transform) ( ast -- parser )
+M: ebnf-ensure (transform)
     transform-group ensure ;
 
-M: ebnf-ensure-not (transform) ( ast -- parser )
+M: ebnf-ensure-not (transform)
     transform-group ensure-not ;
 
-M: ebnf-ignore (transform) ( ast -- parser )
+M: ebnf-ignore (transform)
     transform-group [ drop ignore ] action ;
 
-M: ebnf-repeat0 (transform) ( ast -- parser )
+M: ebnf-repeat0 (transform)
     transform-group repeat0 ;
 
-M: ebnf-repeat1 (transform) ( ast -- parser )
+M: ebnf-repeat1 (transform)
     transform-group repeat1 ;
 
-M: ebnf-optional (transform) ( ast -- parser )
+M: ebnf-optional (transform)
     transform-group optional ;
 
-M: ebnf-whitespace (transform) ( ast -- parser )
+M: ebnf-whitespace (transform)
     t ignore-ws [ transform-group ] with-variable ;
 
 GENERIC: build-locals ( code ast -- code )
 
-M: ebnf-sequence build-locals ( code ast -- code )
+M: ebnf-sequence build-locals
     ! Note the need to filter out this ebnf items that
     ! leave nothing in the AST
     elements>> filter-hidden dup length 1 = [
@@ -447,7 +447,7 @@ M: ebnf-sequence build-locals ( code ast -- code )
         ] if
     ] if ;
 
-M: ebnf-var build-locals ( code ast -- code )
+M: ebnf-var build-locals
     [
         "[let dup :> " % name>> %
         " " %
@@ -455,7 +455,7 @@ M: ebnf-var build-locals ( code ast -- code )
         " nip ]" %
     ] "" make ;
 
-M: object build-locals ( code ast -- code )
+M: object build-locals
     drop ;
 
 ERROR: bad-effect quot effect ;
@@ -481,16 +481,16 @@ ERROR: bad-effect quot effect ;
     [ string-lines parse-lines ] dip
     dup 3 + qualified-vocabs delete-slice ;
 
-M: ebnf-action (transform) ( ast -- parser )
+M: ebnf-action (transform)
     ebnf-transform check-action-effect action ;
 
-M: ebnf-semantic (transform) ( ast -- parser )
+M: ebnf-semantic (transform)
     ebnf-transform semantic ;
 
-M: ebnf-var (transform) ( ast -- parser )
+M: ebnf-var (transform)
     parser>> (transform) ;
 
-M: ebnf-terminal (transform) ( ast -- parser )
+M: ebnf-terminal (transform)
     symbol>> tokenizer one>> call( symbol -- parser ) ;
 
 ERROR: ebnf-foreign-not-found name ;
@@ -498,7 +498,7 @@ ERROR: ebnf-foreign-not-found name ;
 M: ebnf-foreign-not-found summary
     name>> "Foreign word '" "' not found" surround ;
 
-M: ebnf-foreign (transform) ( ast -- parser )
+M: ebnf-foreign (transform)
     dup word>> search [ word>> ebnf-foreign-not-found ] unless*
     swap rule>> [ main ] unless* over rule [
         nip
@@ -508,7 +508,7 @@ M: ebnf-foreign (transform) ( ast -- parser )
 
 ERROR: parser-not-found name ;
 
-M: ebnf-non-terminal (transform) ( ast -- parser )
+M: ebnf-non-terminal (transform)
     symbol>> [
         , \ dup , parser get , \ at ,
         [ parser-not-found ] , \ unless* , \ nip ,
index c660d20e4586988349d936e1cf51a52756957982..ca4a8654c4592258c65ca7e685b331c9de5c8a92 100644 (file)
@@ -14,7 +14,7 @@ CONSTANT: just-pattern [
     ] when
 ]
 
-M: just-parser (compile) ( parser -- quot )
+M: just-parser (compile)
     p1>> compile-parser-quot just-pattern compose ;
 
 : just ( parser -- parser )
index 7470592d88b2f644339e0e3995b007deac843da4..ca1a795f0a02585f5a9041bbddc4988b302fd589 100644 (file)
@@ -345,7 +345,7 @@ TUPLE: token-parser symbol ;
         [ seq>> pos get swap ] dip "'" "'" surround 1vector add-error f
     ] if ;
 
-M: token-parser (compile) ( peg -- quot )
+M: token-parser (compile)
     symbol>> '[ input-slice _ parse-token ] ;
 
 TUPLE: satisfy-parser quot ;
index d623e900192dd5e2696aa7cb67c4945b26c29298..38e16fe6b41027ada009a64cc9c9f0bcb173a094 100644 (file)
@@ -76,4 +76,4 @@ M:: bitmap-node (pluck-at) ( key hashcode bitmap-node -- node' )
         ] if
     ] if ;
 
-M: bitmap-node >alist% ( node -- ) nodes>> >alist-each% ;
+M: bitmap-node >alist% nodes>> >alist-each% ;
index 368f7d6d3beff4d7228b8c643db3347b6c42c4f6..8910e99d3c1519b3f132c4a1cf512948797b40cb 100644 (file)
@@ -84,7 +84,7 @@ M: persistent-vector nth-unsafe
     (ppush-new-tail) do-expansion
     swap 0 1node >>tail ;
 
-M: persistent-vector ppush ( val pvec -- pvec' )
+M: persistent-vector ppush
     clone
     dup tail>> full?
     [ ppush-new-tail ] [ ppush-tail ] if
@@ -106,7 +106,7 @@ M: persistent-vector ppush ( val pvec -- pvec' )
         [ (new-nth) ] node-change-nth
     ] if ;
 
-M: persistent-vector new-nth ( obj i pvec -- pvec' )
+M: persistent-vector new-nth
     2dup count>> = [ nip ppush ] [
         clone
         2dup tail-offset >= [
@@ -159,7 +159,7 @@ M: persistent-vector new-nth ( obj i pvec -- pvec' )
 
 PRIVATE>
 
-M: persistent-vector ppop ( pvec -- pvec' )
+M: persistent-vector ppop
     dup count>> {
         { 0 [ empty-error ] }
         { 1 [ drop T{ persistent-vector } ] }
index 975973e84dfa683865e8cff31845d9260e14aa9e..22f4406a0eb85cb9dbabff32ca1e381d683caf6a 100644 (file)
@@ -8,7 +8,7 @@ GENERIC: present ( object -- string )
 
 M: real present number>string ;
 
-M: complex present ( c -- str )
+M: complex present
     [ real>> number>string ]
     [
         imaginary>>
index ca91cf7f31a3a6cee52650dd1a8899f2b6327d2e..d285ee337a09cc8faeb952c1c2ba9822b807cca8 100644 (file)
@@ -36,7 +36,7 @@ M: anonymous-union word-name*
 M: anonymous-intersection word-name*
     class-name "intersection{ " " }" surround ;
 
-M: word word-name* ( word -- str )
+M: word word-name*
     [ name>> "( no name )" or ] [ record-vocab ] bi ;
 
 : pprint-word ( word -- )
@@ -251,7 +251,7 @@ M: vector pprint-narrow? drop t ;
 M: hashtable pprint-narrow? drop t ;
 M: tuple pprint-narrow? drop t ;
 
-M: object pprint-object ( obj -- )
+M: object pprint-object
     [
         <flow
         dup pprint-delims [
index 187112cdc9510ccedb0c84f6dd0a7fe0c8fbe27d..dd8205dcdf03b45270845704daedd17b400eee0f 100644 (file)
@@ -100,7 +100,7 @@ style overhang ;
         ] change
         0 >>overhang ; inline
 
-M: section section-fits? ( section -- ? )
+M: section section-fits?
     [ end>> 1 - pprinter get last-newline>> - ]
     [ overhang>> ] bi + text-fits? ;
 
@@ -189,7 +189,7 @@ TUPLE: block < section sections ;
 
 : add-line-break ( type -- ) [ <line-break> add-section ] when* ;
 
-M: block section-fits? ( section -- ? )
+M: block section-fits?
     line-limit? [ drop t ] [ call-next-method ] if ;
 
 : pprint-sections ( block advancer -- )
@@ -199,7 +199,7 @@ M: block section-fits? ( section -- ? )
     ] dip
     [ [ pprint-section ] bi ] curry each ; inline
 
-M: block short-section ( block -- )
+M: block short-section
     [ advance ] pprint-sections ;
 
 : do-break ( break -- )
@@ -262,7 +262,7 @@ TUPLE: flow < block ;
 : <flow> ( -- block )
     flow new-block ;
 
-M: flow short-section? ( section -- ? )
+M: flow short-section?
     ! If we can make room for this entire block by inserting
     ! a newline, do it; otherwise, don't bother, print it as
     ! a short section
@@ -339,7 +339,7 @@ SYMBOL: next
 : ?break-group ( seq -- )
     dup break-group? [ first <fresh-line ] [ drop ] if ;
 
-M: block long-section ( block -- )
+M: block long-section
     [
         sections>> chop-break group-flow [
             dup ?break-group [
index cbc9e6dc0b91edc516fdd05d48a6ba1bb106f065..0040ee77fb8ffca2be7b34dd6fe399d909861e39 100644 (file)
@@ -35,9 +35,9 @@ ERROR: no-random-number-generator ;
 M: no-random-number-generator summary
     drop "Random number generator is not defined." ;
 
-M: f random-bytes* ( n obj -- * ) no-random-number-generator ;
+M: f random-bytes* no-random-number-generator ;
 
-M: f random-32* ( obj -- * ) no-random-number-generator ;
+M: f random-32* no-random-number-generator ;
 
 : random-32 ( -- n )
     random-generator get random-32* ;
@@ -77,8 +77,8 @@ PRIVATE>
     ] while drop [ m * ] [ neg shift ] bi* ; inline
 
 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 ;
+M: fixnum (random-integer) random-integer-loop ;
+M: bignum (random-integer) random-integer-loop ;
 
 : random-integer ( m -- n )
     random-generator get (random-integer) ;
index f4a50cde72d13d28b11423d42c16173ba6431d51..46e1e3384b5a315c16ce99729bcac5edaeaff983 100644 (file)
@@ -150,10 +150,10 @@ M:: sfmt generate ( sfmt -- )
 
 PRIVATE>
 
-M: sfmt random-32* ( sfmt -- n )
+M: sfmt random-32*
     dup refill-sfmt? [ dup generate ] when next ; inline
 
-M: sfmt seed-random ( sfmt seed -- sfmt )
+M: sfmt seed-random
     [ [ state>> ] dip >>seed drop ]
     [ drop init-sfmt ] 2bi ;
 
index ffddde9f5b465902e7e481f4dcf93b94144e0630..060d1afe502c064b17e4803160ddd7aca985f725 100644 (file)
@@ -12,8 +12,9 @@ TUPLE: unix-random reader ;
 
 M: unix-random dispose reader>> dispose ;
 
-M: unix-random random-bytes* ( n tuple -- byte-array )
+M: unix-random random-bytes*
     reader>> stream-read ;
+
 HINTS: M\ unix-random random-bytes* { fixnum unix-random } ;
 
 [
index c2acd47ddd944a7ca472eccf38fdbd915d0b9346..a4611bf1bf31548c37b57f320c49364537499ac0 100644 (file)
@@ -6,7 +6,7 @@ IN: random.windows
 
 TUPLE: windows-crypto-context < win32-handle provider type ;
 
-M: windows-crypto-context dispose* ( tuple -- )
+M: windows-crypto-context dispose*
     [ handle>> 0 CryptReleaseContext win32-error=0/f ]
     [ f >>handle drop ] bi ;
 
@@ -45,7 +45,7 @@ ERROR: acquire-crypto-context-failed provider type error ;
         swap >>provider
         initialize-crypto-context ; inline
 
-M: windows-crypto-context random-bytes* ( n windows-crypto-context -- bytes )
+M: windows-crypto-context random-bytes*
     handle>> swap dup <byte-array>
     [ CryptGenRandom win32-error=0/f ] keep ;
 
index c1119604eadd0a4e8f1b38d6a28d91ec133be799..cf6b0b6d2cbf31ff565898cf21871f7b15094b7d 100644 (file)
@@ -60,7 +60,7 @@ INSTANCE: box ref
 
 TUPLE: assoc-ref assoc key ;
 : >assoc-ref< ( assoc-ref -- key value ) [ key>> ] [ assoc>> ] bi ; inline
-M: assoc-ref delete-ref ( assoc-ref -- ) >assoc-ref< delete-at ;
+M: assoc-ref delete-ref >assoc-ref< delete-at ;
 
 TUPLE: key-ref < assoc-ref ;
 C: <key-ref> key-ref
index eb57112a38631224e26a6ade166bbf8778d49d8f..c3ff7410f051e2e6d3386a5f5b73e5937212a9d1 100644 (file)
@@ -32,53 +32,53 @@ C: <script-class> script-class
 
 GENERIC: class-member? ( obj class -- ? )
 
-M: t class-member? ( obj class -- ? ) 2drop t ; inline
+M: t class-member? 2drop t ; inline
 
-M: integer class-member? ( obj class -- ? ) = ; inline
+M: integer class-member? = ; inline
 
-M: range-class class-member? ( obj class -- ? )
+M: range-class class-member?
     [ from>> ] [ to>> ] bi between? ; inline
 
-M: letter-class class-member? ( obj class -- ? )
+M: letter-class class-member?
     drop letter? ; inline
 
-M: LETTER-class class-member? ( obj class -- ? )
+M: LETTER-class class-member?
     drop LETTER? ; inline
 
-M: Letter-class class-member? ( obj class -- ? )
+M: Letter-class class-member?
     drop Letter? ; inline
 
-M: ascii-class class-member? ( obj class -- ? )
+M: ascii-class class-member?
     drop ascii? ; inline
 
-M: digit-class class-member? ( obj class -- ? )
+M: digit-class class-member?
     drop digit? ; inline
 
 : c-identifier-char? ( ch -- ? )
     { [ alpha? ] [ CHAR: _ = ] } 1|| ;
 
-M: c-identifier-class class-member? ( obj class -- ? )
+M: c-identifier-class class-member?
     drop c-identifier-char? ; inline
 
-M: alpha-class class-member? ( obj class -- ? )
+M: alpha-class class-member?
     drop alpha? ; inline
 
 : punct? ( ch -- ? )
     "!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~" member? ;
 
-M: punctuation-class class-member? ( obj class -- ? )
+M: punctuation-class class-member?
     drop punct? ; inline
 
 : java-printable? ( ch -- ? )
     { [ alpha? ] [ punct? ] } 1|| ;
 
-M: java-printable-class class-member? ( obj class -- ? )
+M: java-printable-class class-member?
     drop java-printable? ; inline
 
-M: non-newline-blank-class class-member? ( obj class -- ? )
+M: non-newline-blank-class class-member?
     drop { [ blank? ] [ CHAR: \n = not ] } 1&& ; inline
 
-M: control-character-class class-member? ( obj class -- ? )
+M: control-character-class class-member?
     drop control? ; inline
 
 : hex-digit? ( ch -- ? )
@@ -88,7 +88,7 @@ M: control-character-class class-member? ( obj class -- ? )
         [ CHAR: 0 CHAR: 9 between? ]
     } 1|| ;
 
-M: hex-digit-class class-member? ( obj class -- ? )
+M: hex-digit-class class-member?
     drop hex-digit? ; inline
 
 : java-blank? ( ch -- ? )
@@ -97,13 +97,13 @@ M: hex-digit-class class-member? ( obj class -- ? )
         CHAR: \v CHAR: \a CHAR: \r
     } member? ;
 
-M: java-blank-class class-member? ( obj class -- ? )
+M: java-blank-class class-member?
     drop java-blank? ; inline
 
-M: unmatchable-class class-member? ( obj class -- ? )
+M: unmatchable-class class-member?
     2drop f ; inline
 
-M: terminator-class class-member? ( obj class -- ? )
+M: terminator-class class-member?
     drop "\r\n\u000085\u002029\u002028" member? ; inline
 
 M: f class-member? 2drop f ; inline
index 85b7741a52eaf99dd454e51e55b495dfa7938aa3..1b82b3633a23c3d63721a0d8ca697588162adeb4 100644 (file)
@@ -52,5 +52,5 @@ CONSTANT: fail-state -1
 : ast>dfa ( parse-tree -- minimal-dfa )
     ast>nfa construct-dfa minimize ;
 
-M: negation nfa-node ( node -- start end )
+M: negation nfa-node
     term>> ast>dfa negate-table adjoin-dfa ;
index 5cac3c229d13bc7282aa73f40670e19c4b74cfe7..2cc276d75644511a4758678ebb741453c937fc1c 100644 (file)
@@ -72,7 +72,7 @@ M: ^ modify-epsilon
 M: tagged-epsilon nfa-node
     clone [ modify-epsilon ] change-tag add-simple-entry ;
 
-M: concatenation nfa-node ( node -- start end )
+M: concatenation nfa-node
     [ first>> ] [ second>> ] bi
     reversed-regexp option? [ swap ] when
     [ nfa-node ] bi@
@@ -87,7 +87,7 @@ M: concatenation nfa-node ( node -- start end )
     s3 s5 epsilon-transition
     s4 s5 ;
 
-M: alternation nfa-node ( node -- start end )
+M: alternation nfa-node
     [ first>> ] [ second>> ] bi
     [ nfa-node ] bi@
     alternate-nodes ;
@@ -103,7 +103,7 @@ M: integer modify-class
         ] when
     ] when ;
 
-M: integer nfa-node ( node -- start end )
+M: integer nfa-node
     modify-class add-simple-entry ;
 
 M: primitive-class modify-class
@@ -151,7 +151,7 @@ M: range-class modify-class
 M: object nfa-node
     modify-class add-simple-entry ;
 
-M: with-options nfa-node ( node -- start end )
+M: with-options nfa-node
     dup options>> [ tree>> nfa-node ] using-options ;
 
 : construct-nfa ( ast -- nfa-table )
index c31571c718711f02bec2549ec94bd848a02afc49..1e7bbab9622799d5cd466468b5437044c2f0c7f8 100644 (file)
@@ -16,13 +16,15 @@ TUPLE: reverse-regexp < regexp ;
 
 <PRIVATE
 
-M: lookahead question>quot ! Returns ( index string -- ? )
+M: lookahead question>quot
+    ! Returns ( index string -- ? )
     term>> ast>dfa dfa>shortest-word '[ f _ execute ] ;
 
 : <reversed-option> ( ast -- reversed )
     "r" string>options <with-options> ;
 
-M: lookbehind question>quot ! Returns ( index string -- ? )
+M: lookbehind question>quot
+    ! Returns ( index string -- ? )
     term>> <reversed-option>
     ast>dfa dfa>reverse-shortest-word
     '[ [ 1 - ] dip f _ execute ] ;
@@ -156,13 +158,13 @@ GENERIC: compile-regexp ( regex -- regexp )
 : regexp-initial-word ( i string regexp -- i/f )
     [ compile-regexp ] with-compilation-unit match-index-from ;
 
-M: regexp compile-regexp ( regexp -- regexp )
+M: regexp compile-regexp
     dup '[
         dup \ regexp-initial-word =
         [ drop _ get-ast ast>dfa dfa>word ] when
     ] change-dfa ;
 
-M: reverse-regexp compile-regexp ( regexp -- regexp )
+M: reverse-regexp compile-regexp
     t backwards? [ call-next-method ] with-variable ;
 
 DEFER: compile-next-match
index a88b85843286343270815450fa8edf89748ca88e..b07dfb3e81b23eaaae9924ad90f95495ae6fcf87 100644 (file)
@@ -165,7 +165,7 @@ M: predicate-class see-class*
     "predicate-definition" word-prop pprint-elements
     pprint-; block> block> ;
 
-M: singleton-class see-class* ( class -- )
+M: singleton-class see-class*
     \ SINGLETON: pprint-word pprint-word ;
 
 GENERIC: pprint-slot-name ( object -- )
index 233683c47a62e60513106843e0fde3135a42ca95..55c3e305c14c074e732f59a0010657b8017aa6fa 100644 (file)
@@ -22,10 +22,10 @@ C: <merged> merged
 M: merged length
     seqs>> [ [ length ] [ min ] map-reduce ] [ length ] bi * ; inline
 
-M: merged virtual@ ( n seq -- n' seq' )
+M: merged virtual@
     seqs>> [ length /mod ] [ nth-unsafe ] bi ; inline
 
-M: merged virtual-exemplar ( merged -- seq )
+M: merged virtual-exemplar
     seqs>> ?first ; inline
 
 INSTANCE: merged virtual-sequence
index 0d0c34431a5a05d6c249aa738c8ea5c3fa926c4f..2e5e33d137112fdd29fdeccde49a50aecb58718b 100644 (file)
@@ -65,10 +65,10 @@ SYMBOL: serialized
         [ CHAR: o write1 serialize-cell drop ]
     ] dip if* ; inline
 
-M: f (serialize) ( obj -- )
+M: f (serialize)
     drop CHAR: n write1 ;
 
-M: integer (serialize) ( obj -- )
+M: integer (serialize)
     [
         CHAR: z write1
     ] [
@@ -76,7 +76,7 @@ M: integer (serialize) ( obj -- )
         serialize-cell
     ] if-zero ;
 
-M: float (serialize) ( obj -- )
+M: float (serialize)
     CHAR: F write1
     double>bits serialize-cell ;
 
@@ -88,7 +88,7 @@ M: float (serialize) ( obj -- )
         [ [ (serialize) ] each ] tri
     ] curry serialize-shared ;
 
-M: tuple (serialize) ( obj -- )
+M: tuple (serialize)
     [
         CHAR: T write1
         [ class-of (serialize) ]
@@ -97,22 +97,22 @@ M: tuple (serialize) ( obj -- )
         tri
     ] serialize-shared ;
 
-M: array (serialize) ( obj -- )
+M: array (serialize)
     CHAR: a serialize-seq ;
 
-M: quotation (serialize) ( obj -- )
+M: quotation (serialize)
     [
         CHAR: q write1
         [ >array (serialize) ] [ add-object ] bi
     ] serialize-shared ;
 
-M: hashtable (serialize) ( obj -- )
+M: hashtable (serialize)
     [
         CHAR: h write1
         [ add-object ] [ >alist (serialize) ] bi
     ] serialize-shared ;
 
-M: byte-array (serialize) ( obj -- )
+M: byte-array (serialize)
     [
         CHAR: A write1
         [ add-object ]
@@ -120,7 +120,7 @@ M: byte-array (serialize) ( obj -- )
         [ write ] tri
     ] serialize-shared ;
 
-M: string (serialize) ( obj -- )
+M: string (serialize)
     [
         CHAR: s write1
         [ add-object ]
@@ -149,14 +149,14 @@ M: string (serialize) ( obj -- )
     [ vocabulary>> (serialize) ]
     bi ;
 
-M: word (serialize) ( obj -- )
+M: word (serialize)
     {
         { [ dup t eq? ] [ serialize-true ] }
         { [ dup vocabulary>> not ] [ serialize-gensym ] }
         [ serialize-word ]
     } cond ;
 
-M: wrapper (serialize) ( obj -- )
+M: wrapper (serialize)
     CHAR: W write1
     wrapped>> (serialize) ;
 
index 7f6b5e9aaa35393bcdaad20b4195a381a22423ad..ab8cf8e94240398f333fcc6aa5af4fc0ad4f5a63 100644 (file)
@@ -75,11 +75,11 @@ FUNCTION: int sysctl ( int* name, uint namelen, void* oldp, size_t* oldlenp, voi
 
 : machine ( -- str ) { 6 1 } sysctl-query-string ;
 : model ( -- str ) { 6 2 } sysctl-query-string ;
-M: macosx cpus ( -- n ) { 6 3 } sysctl-query-uint ;
+M: macosx cpus { 6 3 } sysctl-query-uint ;
 : byte-order ( -- n ) { 6 4 } sysctl-query-uint ;
 
 ! Only an int, not large enough. Deprecated.
-! M: macosx physical-mem ( -- n ) { 6 5 } sysctl-query-int ;
+! M: macosx physical-mem { 6 5 } sysctl-query-int ;
 ! : user-mem ( -- n ) { 6 6 } sysctl-query-uint ;
 
 : page-size ( -- n ) { 6 7 } sysctl-query-uint ;
@@ -90,7 +90,7 @@ M: macosx cpus ( -- n ) { 6 3 } sysctl-query-uint ;
 : machine-arch ( -- n ) { 6 12 } sysctl-query-string ;
 : vector-unit ( -- n ) { 6 13 } sysctl-query-uint ;
 : bus-frequency ( -- n ) { 6 14 } sysctl-query-uint ;
-M: macosx cpu-mhz ( -- n ) { 6 15 } sysctl-query-uint ;
+M: macosx cpu-mhz { 6 15 } sysctl-query-uint ;
 : cacheline-size ( -- n ) { 6 16 } sysctl-query-uint ;
 : l1-icache-size ( -- n ) { 6 17 } sysctl-query-uint ;
 : l1-dcache-size ( -- n ) { 6 18 } sysctl-query-uint ;
@@ -99,7 +99,7 @@ M: macosx cpu-mhz ( -- n ) { 6 15 } sysctl-query-uint ;
 : l3-cache-settings ( -- n ) { 6 21 } sysctl-query-uint ;
 : l3-cache-size ( -- n ) { 6 22 } sysctl-query-uint ;
 : tb-frequency ( -- n ) { 6 23 } sysctl-query-uint ;
-M: macosx physical-mem ( -- n ) { 6 24 } sysctl-query-ulonglong ;
+M: macosx physical-mem { 6 24 } sysctl-query-ulonglong ;
 : available-cpus ( -- n ) { 6 25 } sysctl-query-uint ;
 
 M: macosx computer-name { 1 10 } sysctl-query-string "." split1 drop ;
index 1e7bc07d691b578c33c0ec5c6d34d2457de4c7a6..2c719fb4d90d1b65a741b09f11011a52cc22de19 100644 (file)
@@ -33,7 +33,7 @@ IN: system-info.windows
 : windows-minor ( -- n )
     os-version-struct dwMinorVersion>> ;
 
-M: windows os-version ( -- obj )
+M: windows os-version
     os-version-struct [ dwMajorVersion>> ] [ dwMinorVersion>> ] bi 2array ;
 
 : windows-build# ( -- n )
@@ -67,7 +67,7 @@ M: windows os-version ( -- obj )
 : system-windows-directory ( -- str )
     \ GetSystemWindowsDirectory get-directory ;
 
-M: windows cpus ( -- n )
+M: windows cpus
     system-info dwNumberOfProcessors>> ;
 
 : memory-status ( -- MEMORYSTATUSEX )
@@ -75,28 +75,28 @@ M: windows cpus ( -- n )
     MEMORYSTATUSEX heap-size >>dwLength
     dup GlobalMemoryStatusEx win32-error=0/f ;
 
-M: windows memory-load ( -- n )
+M: windows memory-load
     memory-status dwMemoryLoad>> ;
 
-M: windows physical-mem ( -- n )
+M: windows physical-mem
     memory-status ullTotalPhys>> ;
 
-M: windows available-mem ( -- n )
+M: windows available-mem
     memory-status ullAvailPhys>> ;
 
-M: windows total-page-file ( -- n )
+M: windows total-page-file
     memory-status ullTotalPageFile>> ;
 
-M: windows available-page-file ( -- n )
+M: windows available-page-file
     memory-status ullAvailPageFile>> ;
 
-M: windows total-virtual-mem ( -- n )
+M: windows total-virtual-mem
     memory-status ullTotalVirtual>> ;
 
-M: windows available-virtual-mem ( -- n )
+M: windows available-virtual-mem
     memory-status ullAvailVirtual>> ;
 
-M: windows computer-name ( -- string )
+M: windows computer-name
     MAX_COMPUTERNAME_LENGTH 1 +
     [ <byte-array> dup ] keep uint <ref>
     GetComputerName win32-error=0/f alien>native-string ;
index bfcabbc98c0551735092609a9ba630af3daceead..d0352f4d29d923baac478624035470d88f492735 100644 (file)
@@ -84,7 +84,7 @@ GENERIC: coverage ( object -- seq )
 M: string coverage
     [ dup coverage 2array ] map-words ;
 
-M: word coverage ( word -- seq )
+M: word coverage
     "coverage" word-prop
     [ drop executed?>> ] assoc-reject values ;
 
index d148c80e8d06f6988294e13e163281cf21004602..d6cbb9ed79369f09c31616c6c52981364e317efc 100644 (file)
@@ -39,7 +39,7 @@ M: callable quot-uses seq-uses ;
 
 M: wrapper quot-uses [ wrapped>> ] dip quot-uses ;
 
-M: callable uses ( quot -- seq )
+M: callable uses
     IHS{ } clone visited [
         HS{ } clone [ quot-uses ] keep members
     ] with-variable ;
index 9b091136a922eb453f7d1efd9407ccecb2597adb..1c28c983b639dd600a17c023d0969eb02d9e8445 100644 (file)
@@ -85,7 +85,7 @@ SINGLETON: udis-disassembler
         ] loop
     ] { } make ;
 
-M: udis-disassembler disassemble* ( from to -- buffer )
+M: udis-disassembler disassemble*
     '[
         _ _
         [ drop ud_set_pc ]
index 574dc7d647602a3501c56a098c7f0218a4031b72..262d598b52e522a5bc2a6b48b17aee93088da24f 100644 (file)
@@ -58,7 +58,7 @@ ERROR: unknown-file-spec symbol ;
 
 HOOK: file-spec>string os ( file-listing spec -- string )
 
-M: object file-spec>string ( file-listing spec -- string )
+M: object file-spec>string
     {
         { +file-name+ [ directory-entry>> name>> ] }
         { +directory-or-size+ [ file-info>> dir-or-size ] }
index 642ee164cca36ca037156d2bb2c8bbf45cd014a5..fdc55c864d90df29e1823d22cee5e43d0a96fc22 100644 (file)
@@ -45,7 +45,7 @@ IN: tools.files.unix
         [ drop "" ]
     } cond ;
 
-M: unix (directory.) ( path -- lines )
+M: unix (directory.)
     <listing-tool>
         {
             +permissions+ +nlinks+ +user+ +group+
@@ -54,7 +54,7 @@ M: unix (directory.) ( path -- lines )
         { { directory-entry>> name>> <=> } } >>sort
     [ [ list-files ] with-group-cache ] with-user-cache ;
 
-M: unix file-spec>string ( file-listing spec -- string )
+M: unix file-spec>string
     {
         { +file-name/type+ [
             directory-entry>> [ name>> ] [ file-type>trailing ] bi append
index 874b2ef5c1faf89af6d7348b04d70a0a9c92ecd6..ca6d9c218ccb4125e51cb9d7d7c33e17223a3feb 100644 (file)
@@ -7,7 +7,7 @@ IN: tools.files.windows
 
 <PRIVATE
 
-M: windows (directory.) ( entries -- lines )
+M: windows (directory.)
     <listing-tool>
         { +file-datetime+ +directory-or-size+ +file-name+ } >>specs
         { { directory-entry>> name>> <=> } } >>sort
index 0a6d201f879ad642c14150c55fdbfc6d185efd00..56cc14637989e380888f5d68fc51f5db5f2f0933 100644 (file)
@@ -17,7 +17,7 @@ IN: tools.ps.linux
 : safe-ps-cmdline ( path -- string/f )
     [ ps-cmdline ] [ 2drop f ] recover ;
 
-M: linux ps ( -- assoc )
+M: linux ps
     "/proc" [
         "." directory-files [ string>number ] filter
         [ dup safe-ps-cmdline 2array ] map sift-values
index e2bd4e2912006781bc6bb2f3e3676b4600d1f840..a7e9d42387425d918072bbbfc2fca379c27e5ffd 100644 (file)
@@ -145,6 +145,6 @@ STRUCT: kinfo_proc
 
 PRIVATE>
 
-M: macosx ps ( -- assoc )
+M: macosx ps
     procs [ kp_proc>> p_pid>> 0 > ] filter
     [ kp_proc>> [ p_pid>> ] [ ps-arg ] bi ] { } map>assoc ;
index b1a3004ff15c51e62a40dcd6128e3469601f474d..470318edcbe765788605b393c8bc2b463859d35c 100644 (file)
@@ -95,4 +95,4 @@ IN: tools.ps.windows
         ] map sift
     ] with-destructors ;
 
-M: windows ps ( -- assoc ) process-list ;
+M: windows ps process-list ;
index b264dcf44a459062b0e2079889a6309ea5130cb4..214bfeb7c723d76f28bc0532384705702bb22d07 100644 (file)
@@ -142,7 +142,7 @@ M: array add-using [ add-using ] each ;
 
 M: string add-using drop ;
 
-M: object add-using ( object -- )
+M: object add-using
     vocabulary>> using get [ adjoin ] [ drop ] if* ;
 
 : ($values.) ( array -- )
@@ -378,4 +378,4 @@ ${example-indent}}
 
 HOOK: scaffold-emacs os ( -- )
 
-M: unix scaffold-emacs ( -- ) ".emacs" scaffold-rc ;
+M: unix scaffold-emacs ".emacs" scaffold-rc ;
index 9c2d5ca76ce9c22f374c39891ae6a24e52c79491..114d8ebab7b8d6970531737722275832d3039ddf 100644 (file)
@@ -82,7 +82,7 @@ M: pasteboard set-clipboard-contents
         ] if
     ] [ first2 <CGPoint> -> setFrameTopLeftPoint: ] if ;
 
-M: cocoa-ui-backend set-title ( string world -- )
+M: cocoa-ui-backend set-title
     handle>> window>> swap <NSString> -> setTitle: ;
 
 : enter-fullscreen ( world -- )
@@ -96,10 +96,10 @@ M: cocoa-ui-backend set-title ( string world -- )
     [ view>> f -> exitFullScreenModeWithOptions: ]
     [ [ window>> ] [ view>> ] bi -> makeFirstResponder: drop ] bi ;
 
-M: cocoa-ui-backend (set-fullscreen) ( world ? -- )
+M: cocoa-ui-backend (set-fullscreen)
     [ enter-fullscreen ] [ exit-fullscreen ] if ;
 
-M: cocoa-ui-backend (fullscreen?) ( world -- ? )
+M: cocoa-ui-backend (fullscreen?)
     handle>> view>> -> isInFullScreenMode zero? not ;
 
 ! XXX: Until someone tests OSX with a tiling window manager,
@@ -138,14 +138,14 @@ M:: cocoa-ui-backend (open-window) ( world -- )
     window f -> makeKeyAndOrderFront:
     t world active?<< ;
 
-M: cocoa-ui-backend (close-window) ( handle -- )
+M: cocoa-ui-backend (close-window)
     [
         view>> dup -> isInFullScreenMode zero?
         [ drop ]
         [ f -> exitFullScreenModeWithOptions: ] if
     ] [ window>> -> release ] bi ;
 
-M: cocoa-ui-backend (grab-input) ( handle -- )
+M: cocoa-ui-backend (grab-input)
     0 CGAssociateMouseAndMouseCursorPosition drop
     CGMainDisplayID CGDisplayHideCursor drop
     window>> -> frame CGRect>rect rect-center
@@ -154,31 +154,31 @@ M: cocoa-ui-backend (grab-input) ( handle -- )
     [ GetCurrentButtonState zero? not ] [ yield ] while
     CGWarpMouseCursorPosition drop ;
 
-M: cocoa-ui-backend (ungrab-input) ( handle -- )
+M: cocoa-ui-backend (ungrab-input)
     drop
     CGMainDisplayID CGDisplayShowCursor drop
     1 CGAssociateMouseAndMouseCursorPosition drop ;
 
-M: cocoa-ui-backend close-window ( gadget -- )
+M: cocoa-ui-backend close-window
     find-world [
         handle>> [
             window>> -> close
         ] when*
     ] when* ;
 
-M: cocoa-ui-backend raise-window* ( world -- )
+M: cocoa-ui-backend raise-window*
     handle>> [
         window>> dup f -> orderFront: -> makeKeyWindow
         NSApp 1 -> activateIgnoringOtherApps:
     ] when* ;
 
-M: window-handle select-gl-context ( handle -- )
+M: window-handle select-gl-context
     view>> -> openGLContext -> makeCurrentContext ;
 
-M: window-handle flush-gl-context ( handle -- )
+M: window-handle flush-gl-context
     view>> -> openGLContext -> flushBuffer ;
 
-M: cocoa-ui-backend beep ( -- )
+M: cocoa-ui-backend beep
     NSBeep ;
 
 M: cocoa-ui-backend resize-window
index ea6e6687581f51659993d7b0f7a3173377482b82..128ac48b8996ed104eb1f646f446ddafd9e9b0a5 100644 (file)
@@ -391,12 +391,12 @@ M: gtk-ui-backend (make-pixel-format)
 M: gtk-ui-backend (free-pixel-format)
     handle>> g_object_unref ;
 
-M: window-handle select-gl-context ( handle -- )
+M: window-handle select-gl-context
     drawable>>
     [ gtk_widget_get_gl_window ] [ gtk_widget_get_gl_context ] bi
     gdk_gl_drawable_make_current drop ;
 
-M: window-handle flush-gl-context ( handle -- )
+M: window-handle flush-gl-context
     drawable>> gtk_widget_get_gl_window
     gdk_gl_drawable_swap_buffers ;
 
@@ -448,7 +448,7 @@ M:: gtk-ui-backend (open-window) ( world -- )
     win world window-controls>> configure-window-controls
     win gtk_widget_show_all ;
 
-M: gtk-ui-backend (close-window) ( handle -- )
+M: gtk-ui-backend (close-window)
     window>> [ gtk_widget_destroy ] [ unregister-window ] bi
     event-loop? [ gtk_main_quit ] unless ;
 
index 7c63f37a7f5ee3defb6c662d0cefac299378f2a2..8165898bc1a9617b11c07c458971aa49820999ae 100644 (file)
@@ -196,7 +196,7 @@ M: world selection-request-event
         [ drop send-notify-failure ]
     } cond ;
 
-M: x11-ui-backend (close-window) ( handle -- )
+M: x11-ui-backend (close-window)
     [ xic>> XDestroyIC ]
     [ glx>> destroy-glx ]
     [ window>> [ unregister-window ] [ destroy-window ] bi ]
@@ -249,7 +249,7 @@ M: x-clipboard paste-clipboard
     XA_WM_CLASS XA_UTF8_STRING 8 PropModeReplace "Factor"
     utf8 encode dup length XChangeProperty drop ;
 
-M: x11-ui-backend set-title ( string world -- )
+M: x11-ui-backend set-title
     handle>> window>> swap
     [ dpy get ] 2dip [ set-title-old ] [ set-title-new ] 3bi ;
 
@@ -271,14 +271,14 @@ M: x11-ui-backend set-title ( string world -- )
         flags{ SubstructureNotifyMask SubstructureRedirectMask }
     ] dip XSendEvent drop ;
 
-M: x11-ui-backend (set-fullscreen) ( world ? -- )
+M: x11-ui-backend (set-fullscreen)
     [ handle>> window>> ] dip make-fullscreen-msg send-event ;
 
-M: x11-ui-backend (fullscreen?) ( world -- ? )
+M: x11-ui-backend (fullscreen?)
     handle>> window>> XA_NET_WM_STATE get-atom-properties
     XA_NET_WM_STATE_FULLSCREEN swap member? ;
 
-M: x11-ui-backend (open-window) ( world -- )
+M: x11-ui-backend (open-window)
     dup gadget-window handle>> window>>
     [ set-closable ]
     [ [ dpy get ] dip set-class ]
@@ -303,22 +303,22 @@ M: x11-ui-backend (open-window) ( world -- )
     [ XRaiseWindow drop ]
     2bi ;
 
-M: x11-ui-backend raise-window* ( world -- )
+M: x11-ui-backend raise-window*
     handle>> [
         window>>
         XA_NET_ACTIVE_WINDOW net-wm-hint-supported?
         [ raise-window-new ] [ raise-window-old ] if
     ] when* ;
 
-M: x11-handle select-gl-context ( handle -- )
+M: x11-handle select-gl-context
     dpy get swap
     [ window>> ] [ glx>> ] bi glXMakeCurrent
     [ "Failed to set current GLX context" throw ] unless ;
 
-M: x11-handle flush-gl-context ( handle -- )
+M: x11-handle flush-gl-context
     dpy get swap window>> glXSwapBuffers ;
 
-M: x11-ui-backend (with-ui) ( quot -- )
+M: x11-ui-backend (with-ui)
     f [
         [
             init-clipboard
@@ -327,7 +327,7 @@ M: x11-ui-backend (with-ui) ( quot -- )
         ] with-xim
     ] with-x ;
 
-M: x11-ui-backend beep ( -- )
+M: x11-ui-backend beep
     dpy get 100 XBell drop ;
 
 <PRIVATE
index 3497f677c08fda3c191afa59766eb29c0ee2ce2e..e2f00f0ecc8fa3aa21984e80af539e2dd43cbc00 100644 (file)
@@ -82,13 +82,13 @@ TR: convert-command-name "-" " " ;
     swap pick commands set-at
     update-gestures ;
 
-M: word command-name ( word -- str )
+M: word command-name
     name>>
     "com-" ?head drop "." ?tail drop
     dup first Letter? [ rest ] unless
     (command-name) ;
 
-M: word command-description ( word -- str )
+M: word command-description
     +description+ word-prop ;
 
 : default-flags ( -- assoc )
@@ -102,9 +102,9 @@ M: word command-description ( word -- str )
     [ 1quotation ] [ +nullary+ word-prop ] bi
     [ nip ] [ curry ] if ;
 
-M: word invoke-command ( target command -- )
+M: word invoke-command
     command-quot call( -- ) ;
 
 M: word command-word ;
 
-M: f invoke-command ( target command -- ) 2drop ;
+M: f invoke-command 2drop ;
index ca9aa2d2d2f38527467a3b3b940ba9db5a320692..9d101316a08b3e5a02913951145169d7b4665cd5 100644 (file)
@@ -10,7 +10,7 @@ TUPLE: book < gadget ;
 
 : current-page ( book -- gadget ) [ control-value ] keep nth-gadget ;
 
-M: book model-changed ( model book -- )
+M: book model-changed
     nip
     dup hide-all
     dup current-page show-gadget
@@ -26,9 +26,9 @@ M: book model-changed ( model book -- )
 : <empty-book> ( model -- book )
     book new-book ;
 
-M: book pref-dim* ( book -- dim ) children>> pref-dims max-dims ;
+M: book pref-dim* children>> pref-dims max-dims ;
 
-M: book layout* ( book -- )
+M: book layout*
     [ children>> ] [ dim>> ] bi '[ _ >>dim drop ] each ;
 
-M: book focusable-child* ( book -- child/t ) current-page ;
+M: book focusable-child* current-page ;
index 6906257453f07dec2cfd5646fb89783bd4ab6723..c045a91aed1352cc9876ce103a93ee0dce288fd4 100644 (file)
@@ -234,7 +234,7 @@ TUPLE: selected-line start end first? last? ;
 
 PRIVATE>
 
-M: editor draw-line ( line index editor -- )
+M: editor draw-line
     [ selected-lines get at ] dip over
     [ draw-selected-line ] [ nip draw-unselected-line ] if ;
 
index 2a81f56718f6bec85dce2d9b3ab3ce1438417e01..e06ab08c914c7a936f85e75f389f3b0d8ca8c885 100644 (file)
@@ -79,10 +79,10 @@ PRIVATE>
     rect rect-bounds v+ axis children quot (fast-children-on) ?1+
     children <slice> ; inline
 
-M: gadget contains-rect? ( bounds gadget -- ? )
+M: gadget contains-rect?
     dup visible?>> [ call-next-method ] [ 2drop f ] if ;
 
-M: gadget contains-point? ( loc gadget -- ? )
+M: gadget contains-point?
     dup visible?>> [ call-next-method ] [ 2drop f ] if ;
 
 : pick-up ( point gadget -- child/f )
@@ -182,7 +182,7 @@ M: gadget dim-changed
 
 PRIVATE>
 
-M: gadget dim<< ( dim gadget -- )
+M: gadget dim<<
     2dup dim>> =
     [ 2drop ]
     [ [ nip ] [ call-next-method ] 2bi dim-changed ] if ;
index 73dc62267ca480162956a627b26e0c40f697a512..58ae904a1eea1af48e23c0dfcecb63210f59e18f 100644 (file)
@@ -113,7 +113,7 @@ M: grid pref-dim* <grid-layout> grid-pref-dim ;
 
 M: grid layout* [ grid>> ] [ <grid-layout> ] bi layout-grid ;
 
-M: grid children-on ( rect gadget -- seq )
+M: grid children-on
     dup children>> empty? [ 2drop f ] [
         [ { 0 1 } ] dip
         [ grid>> ] [ dim>> ] bi
index b3e6248ce4d8886d5487554328f5eb88b5925f74..d4a0cd03e4950dfe6bcf6b1d1c8f683651b9e29c 100644 (file)
@@ -12,7 +12,7 @@ TUPLE: label < aligned-gadget text font ;
 
 SLOT: string
 
-M: label string>> ( label -- string )
+M: label string>>
     text>> dup string? [ "\n" join ] unless ; inline
 
 <PRIVATE
@@ -24,7 +24,7 @@ PRIVATE>
 : ?string-lines ( string -- string/array )
     CHAR: \n over member-eq? [ string-lines ] when ;
 
-M: label string<< ( string label -- )
+M: label string<<
     [
         dup string-array? [
             string check-instance ?string-lines
index 9e7b8eb4f2dd782b66cfe0d213bff1a200a95789..cc5281c9db1df075aeb65741f496e94075133c60 100644 (file)
@@ -96,5 +96,5 @@ M: pack cap-height* pack-cap-height ;
 M: pack layout*
     dup children>> pref-dims pack-layout ;
 
-M: pack children-on ( rect gadget -- seq )
+M: pack children-on
     [ orientation>> ] [ children>> ] bi [ loc>> ] fast-children-on ;
index fce19fa098ff090e30bd85f11b691c24e80d11d1..139d516efc0d85f63a1796e395398143c15950ca 100644 (file)
@@ -201,7 +201,7 @@ M: pane-stream write-gadget
 
 TUPLE: pane-control < pane quot ;
 
-M: pane-control model-changed ( model pane-control -- )
+M: pane-control model-changed
     [ value>> ] [ dup quot>> ] bi*
     '[ _ call( value -- ) ] with-pane ;
 
@@ -364,7 +364,7 @@ M: paragraph pane-line
 
 GENERIC: sloppy-pick-up* ( loc gadget -- n )
 
-M: pack sloppy-pick-up* ( loc gadget -- n )
+M: pack sloppy-pick-up*
     [ orientation>> ] [ children>> ] bi
     [ loc>> ] (fast-children-on) ;
 
index 32cf0fd1eb6ddfb5d787b82b4d1f76a0bbae4d86..db685b64e4a39239a71f5543902a1fec06b6e1e0 100644 (file)
@@ -216,7 +216,7 @@ M: table draw-gadget*
         ] with-variable
     ] if ;
 
-M: table line-height* ( table -- y )
+M: table line-height*
     [ font>> ] [ renderer>> prototype-row ] bi
     [ cell-dim + nip ] with [ max ] map-reduce ;
 
index 11ff0fb51dbbd9c7b8b8b7fe7dd51c0580d846d9..0b133117239352b93c44c81162de0e1920948cd9 100644 (file)
@@ -35,7 +35,7 @@ TUPLE: track < pack sizes ;
     } cleave
     '[ [ _ n*v _ set-axis ] when* ] 2map ;
 
-M: track layout* ( track -- ) dup track-layout pack-layout ;
+M: track layout* dup track-layout pack-layout ;
 
 : track-pref-dims-1 ( track -- dim )
     [ children>> pref-dims max-dims ]
@@ -48,7 +48,7 @@ M: track layout* ( track -- ) dup track-layout pack-layout ;
         max-dims
     ] [ gap-dim ] bi v+ ;
 
-M: track pref-dim* ( gadget -- dim )
+M: track pref-dim*
     [ track-pref-dims-1 ]
     [ [ alloted-dim ] [ track-pref-dims-2 ] bi v+ ]
     [ orientation>> ]
index abfab5ce48b9532a99aada153471bf53d5b13dbd..8e8a702e022edafb56ddc33f7b7ff9d7d1d0f2f6 100644 (file)
@@ -112,7 +112,7 @@ ERROR: no-world-found ;
         [ (request-focus) ] keep
     ] unless focus-child ;
 
-M: world request-focus-on ( child gadget -- )
+M: world request-focus-on
     2dup eq?
     [ 2drop ] [ dup focused?>> (request-focus) ] if ;
 
@@ -248,7 +248,7 @@ PREDICATE: specific-drag < drag #>> ;
 : generalize-gesture ( gesture -- )
     clone f >># button-gesture ;
 
-M: world handle-gesture ( gesture gadget -- ? )
+M: world handle-gesture
     2dup call-next-method [
         {
             { [ over specific-button-up? ] [ drop generalize-gesture f ] }
index 64f0fb2ab2583ceac93e87efbfbb26d3483668d5..bcb56c5cb0543c9bf12a3d47ad57f2584a94212b 100644 (file)
@@ -18,7 +18,7 @@ M: object handle-gesture
 
 GENERIC: handles-gesture? ( gesture gadget -- ? )
 
-M: object handles-gesture? ( gesture gadget -- ? )
+M: object handles-gesture?
     get-gesture-handler >boolean ;
 
 : parents-handle-gesture? ( gesture gadget -- ? )
index a441ca92739603643a64e9b02f9fd55bec6d3dfe..7eb5a65a247b404189c3c4e788c7907ea818ca6c 100644 (file)
@@ -91,5 +91,5 @@ operations [ <linked-hash> ] initialize
 : operation-quot ( target operation -- quot )
     [ translator>> ] [ command>> ] bi '[ _ @ _ execute ] ;
 
-M: operation invoke-command ( target command -- )
+M: operation invoke-command
     operation-quot call( -- ) ;
index aa916448958496638d3e26dc8612b426830181e5..58c72f7505915d59f726fd9cd061bee383ad6b06 100644 (file)
@@ -24,7 +24,7 @@ TUPLE: gradient < caching-pen colors last-vertices last-colors ;
     [ >rgba-components 4array dup 2array ] map concat concat
     float >c-array ;
 
-M: gradient recompute-pen ( gadget gradient -- )
+M: gradient recompute-pen
     [ nip ] [ [ [ orientation>> ] [ dim>> ] bi ] [ colors>> ] bi* ] 2bi
     [ gradient-vertices >>last-vertices ]
     [ gradient-colors >>last-colors ]
index 72f9c44421255741656b1a9cb599746792dc40b1..e2ee3dd066b0cfe92e71efdedb361f564ec0f3af 100644 (file)
@@ -38,7 +38,7 @@ M: tile-pen pen-pref-dim
        swap draw-scaled-image
    ] with-translation ;
 
-M: tile-pen draw-interior ( gadget pen -- )
+M: tile-pen draw-interior
     {
         [ nip >tile-pen< ]
         [ compute-tile-xs ]
index 80353404a5b26bce6e36f9040e99ea7ed9b71ad3..1871fc4e381f2416923878dd7e476d71a28afd3e 100644 (file)
@@ -41,7 +41,7 @@ M: core-text-renderer string-dim
 M: core-text-renderer flush-layout-cache
     cached-lines get-global purge-cache ;
 
-M: core-text-renderer string>image ( font string -- image loc )
+M: core-text-renderer string>image
     cached-line [ line>image ] [ loc>> scale-dim ] bi ;
 
 M:: core-text-renderer x>offset ( x font string -- n )
@@ -59,10 +59,10 @@ M:: core-text-renderer offset>x ( n font string -- x )
     f
     CTLineGetOffsetForStringIndex unscale ;
 
-M: core-text-renderer font-metrics ( font -- metrics )
+M: core-text-renderer font-metrics
     cache-font-metrics ;
 
-M: core-text-renderer line-metrics ( font string -- metrics )
+M: core-text-renderer line-metrics
     [ " " line-metrics clone 0 >>width ]
     [ cached-line metrics>> scale-metrics ]
     if-empty ;
index d9331000bbd6f9657bd9c8859339e9686cb48235..6679362e292c3673a6b323dda4993d78941067bc 100644 (file)
@@ -187,19 +187,19 @@ M: pango-renderer string-dim
 M: pango-renderer flush-layout-cache
     cached-layouts get-global purge-cache ;
 
-M: pango-renderer string>image ( font string -- image loc )
+M: pango-renderer string>image
     cached-layout [ layout>image ] [ text-position vneg ] bi ;
 
-M: pango-renderer x>offset ( x font string -- n )
+M: pango-renderer x>offset
     cached-layout swap x>line-offset ;
 
-M: pango-renderer offset>x ( n font string -- x )
+M: pango-renderer offset>x
     cached-layout swap line-offset>x ;
 
-M: pango-renderer font-metrics ( font -- metrics )
+M: pango-renderer font-metrics
     " " cached-layout metrics>> clone f >>width ;
 
-M: pango-renderer line-metrics ( font string -- metrics )
+M: pango-renderer line-metrics
     [ " " line-metrics clone 0 >>width ]
     [ cached-layout metrics>> ]
     if-empty ;
index 3b73d3d1c723c2f07197ee91c53b6f58ec710b60..5115f3d0cf042e04fec0a22dcc1f5a16a00fba84 100644 (file)
@@ -13,21 +13,21 @@ M: uniscribe-renderer string-dim
 M: uniscribe-renderer flush-layout-cache
     cached-script-strings get-global purge-cache ;
 
-M: uniscribe-renderer string>image ( font string -- image loc )
+M: uniscribe-renderer string>image
     cached-script-string script-string>image { 0 0 } ;
 
-M: uniscribe-renderer x>offset ( x font string -- n )
+M: uniscribe-renderer x>offset
     [ 2drop 0 ] [
         cached-script-string x>line-offset 0 = [ 1 + ] unless
     ] if-empty ;
 
-M: uniscribe-renderer offset>x ( n font string -- x )
+M: uniscribe-renderer offset>x
     [ 2drop 0 ] [ cached-script-string line-offset>x ] if-empty ;
 
-M: uniscribe-renderer font-metrics ( font -- metrics )
+M: uniscribe-renderer font-metrics
     " " cached-script-string metrics>> clone f >>width ;
 
-M: uniscribe-renderer line-metrics ( font string -- metrics )
+M: uniscribe-renderer line-metrics
     [ " " line-metrics clone 0 >>width ]
     [ cached-script-string metrics>> 50 >>width 10 >>cap-height 10 >>x-height ]
     if-empty ;
index 8d34e3d6c5e08eb1de2f8dbb97b01fbbaa0866a2..9eca133cc075696a18362d9658728bf69e5cb337 100644 (file)
@@ -140,7 +140,7 @@ M: browser-gadget handle-gesture
         [ [ dup vocab-link? [ lookup-vocab ] when ] dip in? ]
     } 2|| ;
 
-M: browser-gadget definitions-changed ( set browser -- )
+M: browser-gadget definitions-changed
     [ control-value swap showing-definition? ] keep
     '[ _ [ history-value ] keep set-history-value ] when ;
 
index 5ce038470ba6d4484e77bc63b178ca73b4198016..a8140c52bf2e0a698c44e55951e53a4cedc489d1 100644 (file)
@@ -173,7 +173,7 @@ M: interactor stream-read1
         [ nip first first ]
     } cond ;
 
-M: interactor stream-read-until ( seps stream -- seq sep/f )
+M: interactor stream-read-until
     swap '[
         _ interactor-read [
             "\n" join CHAR: \n suffix
@@ -289,10 +289,10 @@ M: string listener-input
         [ (call-listener) ] with-ctrl-break
     ] "Listener call" spawn drop ;
 
-M: listener-command invoke-command ( target command -- )
+M: listener-command invoke-command
     [ command-quot ] [ nip ] 2bi call-listener ;
 
-M: listener-operation invoke-command ( target command -- )
+M: listener-operation invoke-command
     [ operation-quot ] [ nip command>> ] 2bi call-listener ;
 
 : eval-listener ( string -- )
@@ -362,7 +362,7 @@ M: object accept-completion-hook 2drop ;
 : try-parse ( lines -- quot/f )
     [ parse-lines-interactive ] [ nip '[ _ rethrow ] ] recover ;
 
-M: interactor stream-read-quot ( stream -- quot/f )
+M: interactor stream-read-quot
     dup interactor-yield dup array? [
         over interactor-finish try-parse
         [ ] [ stream-read-quot ] ?if
index 92cf9f258fbf115bddf49cc8c1b1d876eecd1418..be37a97c10645b4465fa6b9b21a02d6e8c2c2ca9 100644 (file)
@@ -24,12 +24,12 @@ GENERIC: group-struct ( obj -- group/f )
 : check-group-struct ( group-struct ptr -- group-struct/f )
     void* deref [ drop f ] unless ;
 
-M: integer group-struct ( id -- group/f )
+M: integer group-struct
     (group-struct)
     [ [ unix.ffi:getgrgid_r ] unix-system-call drop ] keep
     check-group-struct ;
 
-M: string group-struct ( string -- group/f )
+M: string group-struct
     (group-struct)
     [ [ unix.ffi:getgrnam_r ] unix-system-call drop ] keep
     check-group-struct ;
@@ -79,10 +79,10 @@ PRIVATE>
 
 GENERIC: user-groups ( string/id -- seq )
 
-M: string user-groups ( string -- seq )
+M: string user-groups
     (user-groups) ;
 
-M: integer user-groups ( id -- seq )
+M: integer user-groups
     user-name (user-groups) ;
 
 : all-groups ( -- seq )
@@ -137,14 +137,14 @@ GENERIC: set-effective-group ( obj -- )
 
 PRIVATE>
 
-M: integer set-real-group ( id -- )
+M: integer set-real-group
     (set-real-group) ;
 
-M: string set-real-group ( string -- )
+M: string set-real-group
     ?group-id (set-real-group) ;
 
-M: integer set-effective-group ( id -- )
+M: integer set-effective-group
     (set-effective-group) ;
 
-M: string set-effective-group ( string -- )
+M: string set-effective-group
     ?group-id (set-effective-group) ;
index bf4b7f76b12f3c2c64efdf02dc62486bdd99bb39..c2de4270f887a3e8a421f9fb9472a24a1f31fa07 100644 (file)
@@ -282,12 +282,12 @@ TUPLE: proc-uptime up idle ;
 
 GENERIC#: proc-pid-path 1 ( object string -- path )
 
-M: integer proc-pid-path ( pid string -- path )
+M: integer proc-pid-path
     [ "/proc/" ] 2dip
     [ number>string "/" append ] dip
     3append ;
 
-M: string proc-pid-path ( pid-string string -- path )
+M: string proc-pid-path
     [ "/proc/" ] 2dip [ append-path ] dip append-path ;
 
 : proc-file-lines ( path -- strings ) utf8 file-lines ;
index 25abdfba0797f5affa59b2df6807e11e65029665..9f972d0e29dd65d6877ffe6fef72cb1d45bd5095 100644 (file)
@@ -20,7 +20,7 @@ GENERIC: signal-name ( obj -- str/f )
 
 M: signal signal-name n>> signal-name ;
 
-M: integer signal-name ( n -- str/f ) 1 - signal-names ?nth ;
+M: integer signal-name 1 - signal-names ?nth ;
 
 : signal-name. ( n -- )
     signal-name [ " (" ")" surround write ] when* ;
index d9c378e629a1eb80888cb37a563d5aee7d440210..8575fc6002fae2195f05bd743861c219de2bc640 100644 (file)
@@ -6,9 +6,9 @@ IN: unix.users.macosx
 
 TUPLE: macosx-passwd < passwd change class expire fields ;
 
-M: macosx new-passwd ( -- macosx-passwd ) macosx-passwd new ;
+M: macosx new-passwd macosx-passwd new ;
 
-M: macosx passwd>new-passwd ( passwd -- macosx-passwd )
+M: macosx passwd>new-passwd
     [ call-next-method ] keep
     {
         [ pw_change>> >>change ]
index 7b77eebefeb8debeb073189e6d5be67d5a7e44f9..d5253d0a506c024a985180520da6732cfac35ad1 100644 (file)
@@ -15,10 +15,10 @@ HOOK: passwd>new-passwd os ( passwd -- new-passwd )
 
 <PRIVATE
 
-M: unix new-passwd ( -- passwd )
+M: unix new-passwd
     passwd new ;
 
-M: unix passwd>new-passwd ( passwd -- seq )
+M: unix passwd>new-passwd
     [ new-passwd ] dip
     {
         [ pw_name>> >>user-name ]
@@ -54,11 +54,11 @@ SYMBOL: user-cache
 
 GENERIC: user-passwd ( obj -- passwd/f )
 
-M: integer user-passwd ( id -- passwd/f )
+M: integer user-passwd
     user-cache get
     [ at ] [ unix.ffi:getpwuid [ passwd>new-passwd ] [ f ] if* ] if* ;
 
-M: string user-passwd ( string -- passwd/f )
+M: string user-passwd
     unix.ffi:getpwnam dup [ passwd>new-passwd ] when ;
 
 : user-name ( id -- string )
@@ -117,16 +117,16 @@ GENERIC: set-effective-user ( string/id -- )
 
 PRIVATE>
 
-M: integer set-real-user ( id -- )
+M: integer set-real-user
     (set-real-user) ;
 
-M: string set-real-user ( string -- )
+M: string set-real-user
     ?user-id (set-real-user) ;
 
-M: integer set-effective-user ( id -- )
+M: integer set-effective-user
     (set-effective-user) ;
 
-M: string set-effective-user ( string -- )
+M: string set-effective-user
     ?user-id (set-effective-user) ;
 
 ERROR: no-such-user obj ;
index 6374eacaffc9d161bd2d97e04329360032f4a94e..521fed343a18452eba7f8023b47cb61e956741ad 100644 (file)
@@ -4,7 +4,7 @@ USING: accessors calendar.unix combinators kernel system
 unix.ffi unix.utmpx ;
 IN: unix.utmpx.linux
 
-M: linux utmpx>utmpx-record ( utmpx -- utmpx-record )
+M: linux utmpx>utmpx-record
     [ new-utmpx-record ] dip {
         [ ut_user>> __UT_NAMESIZE memory>string >>user ]
         [ ut_id>>   4 memory>string >>id ]
index 3ca89a068716ec48eb51b3ce74f81507b2eb5201..f99163e1ef7b7ac93f70dbf67a9b4e1bc0982ff3 100644 (file)
@@ -4,7 +4,7 @@ USING: accessors calendar.unix combinators kernel system
 unix.ffi unix.utmpx ;
 IN: unix.utmpx.macosx
 
-M: macosx utmpx>utmpx-record ( utmpx -- utmpx-record )
+M: macosx utmpx>utmpx-record
     [ new-utmpx-record ] dip {
         [ ut_user>> _UTX_USERSIZE memory>string >>user ]
         [ ut_id>>   _UTX_IDSIZE memory>string >>id ]
index 6d9ffd1a2a63caf1cc6a1b3b90b59cf843795152..873bec53c4a5444a5008781b1515500d10f48ebb 100644 (file)
@@ -27,7 +27,7 @@ IN: vocabs.prettyprint
 
 GENERIC: pprint-qualified ( qualified -- )
 
-M: qualified pprint-qualified ( qualified -- )
+M: qualified pprint-qualified
     [
         dup [ vocab>> vocab-name ] [ prefix>> ] bi = [
             \ QUALIFIED: pprint-word
@@ -38,7 +38,7 @@ M: qualified pprint-qualified ( qualified -- )
         ] if
     ] with-pprint ;
 
-M: from pprint-qualified ( from -- )
+M: from pprint-qualified
     [
         \ FROM: pprint-word
         [ vocab>> pprint-vocab "=>" text ]
@@ -46,7 +46,7 @@ M: from pprint-qualified ( from -- )
         \ ; pprint-word
     ] with-pprint ;
 
-M: exclude pprint-qualified ( exclude -- )
+M: exclude pprint-qualified
     [
         \ EXCLUDE: pprint-word
         [ vocab>> pprint-vocab "=>" text ]
@@ -54,7 +54,7 @@ M: exclude pprint-qualified ( exclude -- )
         \ ; pprint-word
     ] with-pprint ;
 
-M: rename pprint-qualified ( rename -- )
+M: rename pprint-qualified
     [
         \ RENAME: pprint-word
         [ word>> text ]
index 5b9db50b53861644de9436b9f860671c07f79661..cc1399f582eb64a8220c1d9c23aa7a77d5b52143 100644 (file)
@@ -5,5 +5,5 @@ USING: arrays io.launcher kernel present system webbrowser ;
 
 IN: webbrowser.freebsd
 
-M: freebsd open-item ( item -- )
+M: freebsd open-item
     present "open" swap 2array run-detached drop ;
index e5ae19ec26153b59ccdb1745540b2b6348f9cb1f..544abae86f445b5de71ad27728af5e36b2aae29e 100644 (file)
@@ -5,5 +5,5 @@ USING: arrays io.launcher kernel present system webbrowser ;
 
 IN: webbrowser.linux
 
-M: linux open-item ( item -- )
+M: linux open-item
     present "xdg-open" swap 2array run-detached drop ;
index 9975c3ce29693e17986c8e8ac80e80fac9239b83..4382f5689346717549c05a1b620ff9d15c441b88 100644 (file)
@@ -5,5 +5,5 @@ USING: arrays io.launcher kernel present system webbrowser ;
 
 IN: webbrowser.macosx
 
-M: macosx open-item ( item -- )
+M: macosx open-item
     present "open" swap 2array run-detached drop ;
index 7a7a7dee9914e85f161bcd359b74eaaf89e9edc4..f1752c162228d39f33c7cc5e7e0a356fcbbd2152 100644 (file)
@@ -3,6 +3,6 @@
 USING: kernel present system webbrowser windows.shell32 windows.user32 ;
 IN: webbrowser.windows
 
-M: windows open-item ( item -- )
+M: windows open-item
     [ f "open" ] dip present f f
     SW_SHOWNORMAL ShellExecute drop ;
index 07d6c8f5d2fd66eb02c01dbf15f3966b6f45beed..bada92b738187647a1773e1d6517bd7aa64f9299 100644 (file)
@@ -17,5 +17,5 @@ TUPLE: win32-handle < disposable handle ;
 : <win32-handle> ( handle -- win32-handle )
     win32-handle new-win32-handle ;
 
-M: win32-handle dispose* ( handle -- )
+M: win32-handle dispose*
     handle>> CloseHandle win32-error=0/f ;
index 4fb2ef7fbce2e8acf884fb4f660a00185fb8f250..f10c13d5a94264592aa64f4465f0ca952784ada4 100644 (file)
@@ -158,10 +158,10 @@ STRUCT: timeval
 
 GENERIC: sockaddr>ip ( sockaddr -- string )
 
-M: sockaddr-in sockaddr>ip ( sockaddr -- string )
+M: sockaddr-in sockaddr>ip
     addr>> uint <ref> [ number>string ] { } map-as "." join ;
 
-M: sockaddr-in6 sockaddr>ip ( uchar-array -- string )
+M: sockaddr-in6 sockaddr>ip
     addr>> [ >hex ] { } map-as 2 group [ concat ] map ":" join ;
 
 STRUCT: fd_set