dup meta>> "path" of binary <file-reader> handle>> fd>> >>fd
H{ } clone >>state
dup meta>> "capabilities" of EV_KEY of keys seq>explode-positions >>buttons ; inline
- ! swap over state>> '[ _ _ read-events ] in-thread ;
+ ! tuck state>> '[ _ _ read-events ] in-thread ;
M: linux-controller dispose* fd>> close drop ;
pos get apply-rule process-parser-result ;
: preset-parser-word ( parser -- word parser )
- gensym swap over >>compiled ;
+ gensym tuck >>compiled ;
: define-parser-word ( word parser -- )
! Return the body of the word that is the compiled version
: encode-integer ( first-byte int prefix-length -- bytes )
2^ 1 - 2dup <
[ drop bitor 1byte-array ]
- [ swap over [ bitor 1byte-array >byte-vector ] [ - ] 2bi*
+ [ tuck [ bitor 1byte-array >byte-vector ] [ - ] 2bi*
[ dup 128 >= ] [ [ 128 mod 128 + over push ] [ 128 /i ] bi ]
while over push >byte-array
] if ;