Handbook
Glossary
flatten-c-type ( c-type -- pairs )
Vocabulary
compiler
.
cfg
.
builder
.
alien
.
boxing
Inputs
c-type
an
abstract-c-type
Outputs
pairs
a
sequence
Word description
pairs have shape { rep on-stack? f }
Definition
IN:
compiler.cfg.builder.alien.boxing
GENERIC:
flatten-c-type
( c-type -- pairs )
Methods
USING:
accessors
alien.c-types
arrays
compiler.cfg.builder.alien.boxing
;
M:
c-type
flatten-c-type
rep>>
f
f
3array
1array
record-reg-reps
;
USING:
alien.c-types
arrays
compiler.cfg.builder.alien.boxing
cpu.architecture
kernel
sequences
;
M:
long-long-type
flatten-c-type
drop
2
[
int-rep
long-long-on-stack?
f
3array
]
replicate
record-reg-reps
;
USING:
classes.struct
compiler.cfg.builder.alien.boxing
;
M:
struct-c-type
flatten-c-type
flatten-struct-type
;