Handbook Glossary
factorcode.org
c-type-rep ( name -- rep )


Vocabulary
alien.c-types

Inputs
namean object


Outputs
repan object


Definition
IN: alien.c-types

GENERIC: c-type-rep ( name -- rep )


Methods
USING: alien.c-types kernel ;

M: c-type-name c-type-rep
[ lookup-c-type ] call \ c-type-rep execute ;


USING: accessors alien.c-types ;

M: c-type c-type-rep rep>> ;


USING: accessors alien.c-types alien.enums.private kernel ;

M: enum-c-type c-type-rep
[ base-type>> ] call \ c-type-rep execute ;


USING: alien.arrays alien.c-types cpu.architecture kernel ;

M: string-type c-type-rep drop int-rep ;


USING: alien.c-types cpu.architecture kernel ;

M: value-type c-type-rep drop int-rep ;