Handbook
Glossary
unbox-parameters ( parameters -- vregs reps )
Vocabulary
compiler
.
cfg
.
builder
.
alien
Inputs
parameters
a
sequence
Outputs
vregs
a
sequence
reps
a
sequence
Word description
Unboxes a sequence of parameters to send to an ffi function.
Definition
USING:
alien.c-types
compiler.cfg.builder.alien.boxing
compiler.cfg.registers
compiler.cfg.stacks.local
kernel
math
sequences
sequences.generalizations
;
IN:
compiler.cfg.builder.alien
:
unbox-parameters
( parameters -- vregs reps )
[
[
length
<iota>
<reversed>
]
keep
[
[
<ds-loc>
peek-loc
]
[
base-type
]
bi*
unbox-parameter
]
2 2
mnmap
[
concat
]
bi@
]
[
length
neg
<ds-loc>
inc-stack
]
bi
;