parrotcode: Base vtable calling functions | |
Contents | C |
src/key.c - Base vtable calling functions
The base vtable calling functions.
PMC *key_new(Interp *interp)
Key
PMC.PMC *key_new_integer(Interp *interp, INTVAL value)
Key
PMC with value value
.PMC *key_new_number(Interp *interp, FLOATVAL value)
Key
PMC with value value
.PMC *key_new_string(Interp *interp, STRING *value)
Key
PMC with value value
.PMC *key_new_cstring(Interp *interp, const char *value)
Key
PMC with value value
converted to a STRING
.PMC *key_new_pmc(Interp *interp, PMC *value)
Key
PMC with value value
.void key_set_integer(Interp *interp, PMC *key, INTVAL value)
value
in key
.void key_set_register(Interp *interp, PMC *key, INTVAL value, INTVAL flag)
value
in key
.void key_set_number(Interp *interp, PMC *key, FLOATVAL value)
value
in key
.void key_set_string(Interp *interp, PMC *key, STRING *value)
value
in key
.void key_set_pmc(Interp *interp, PMC *key, PMC *value)
value
in key
.INTVAL key_type(Interp *interp, PMC *key)
key
.INTVAL key_integer(Interp *interp, PMC *key)
FLOATVAL key_number(Interp *interp, PMC *key)
STRING *key_string(Interp *interp, PMC *key)
PMC *key_pmc(Interp *interp, PMC *key)
key
if possible.
Otherwise they throws an exceptions.PMC *key_next(Interp *interp, PMC *key)
key
is in a sequence of linked keys.PMC *key_append(Interp *interp, PMC *key1, PMC *key2)
key2
to key1
.key1
is not the last key in a sequence linked keys then the last key will be found and key2
appended to that.key1
.void key_mark(Interp *interp, PMC *key)
key
as live.include/parrot/key.h.
Initial version by Jeff G. on 2001.12.05.
|