``swap drop`` is ``nip``.
parent
fec182d2d8
commit
87433a4585
|
@ -20,7 +20,7 @@ IN: formatting
|
|||
{
|
||||
{ CHAR: - [ [ 1 - ] dip remove-nth "-" prepend ] }
|
||||
{ CHAR: + [ [ 1 - ] dip remove-nth "+" prepend ] }
|
||||
[ drop swap drop ]
|
||||
[ drop nip ]
|
||||
} case
|
||||
] [ drop ] if
|
||||
] when ;
|
||||
|
|
|
@ -114,8 +114,8 @@ M: xinput-game-input-backend instance-id
|
|||
if ;
|
||||
|
||||
M: xinput-game-input-backend read-controller
|
||||
XINPUT_STATE <struct> [ XInputGetState ] keep
|
||||
swap drop fill-controller-state ;
|
||||
XINPUT_STATE <struct> [ XInputGetState drop ] keep
|
||||
fill-controller-state ;
|
||||
|
||||
M: xinput-game-input-backend calibrate-controller drop ;
|
||||
|
||||
|
|
|
@ -58,7 +58,7 @@ ERROR: bad-tga-unsupported ;
|
|||
read ; inline
|
||||
|
||||
: read-color-map ( type length elt-size -- color-map )
|
||||
pick 1 = [ 8 align 8 / * read ] [ 2drop f ] if swap drop ; inline
|
||||
pick 1 = [ 8 align 8 / * read ] [ 2drop f ] if nip ; inline
|
||||
|
||||
: read-image-data ( width height depth -- image-data )
|
||||
8 align 8 / * * read ; inline
|
||||
|
|
Loading…
Reference in New Issue