parrotcode: Base vtable calling functions | |
Contents | C |
src/key.c - Base vtable calling functions
The base vtable calling functions.
PMC *key_new(Interp *interpreter)
Key
PMC.PMC *key_new_integer(Interp *interpreter, INTVAL value)
Key
PMC with value value
.PMC *key_new_number(Interp *interpreter, FLOATVAL value)
Key
PMC with value value
.PMC *key_new_string(Interp *interpreter, STRING *value)
Key
PMC with value value
.PMC *key_new_cstring(Interp *interpreter, const char *value)
Key
PMC with value value
converted to a STRING
.PMC *key_new_pmc(Interp *interpreter, PMC *value)
Key
PMC with value value
.void key_set_integer(Interp *interpreter, PMC *key, INTVAL value)
value
in key
.void key_set_register(Interp *interpreter, PMC *key, INTVAL value, INTVAL flag)
value
in key
.void key_set_number(Interp *interpreter, PMC *key, FLOATVAL value)
value
in key
.void key_set_string(Interp *interpreter, PMC *key, STRING *value)
value
in key
.void key_set_pmc(Interp *interpreter, PMC *key, PMC *value)
value
in key
.INTVAL key_type(Interp *interpreter, PMC *key)
key
.INTVAL key_integer(Interp *interpreter, PMC *key)
FLOATVAL key_number(Interp *interpreter, PMC *key)
STRING *key_string(Interp *interpreter, PMC *key)
PMC *key_pmc(Interp *interpreter, PMC *key)
key
if possible.
Otherwise they throws an exceptions.PMC *key_next(Interp *interpreter, PMC *key)
key
is in a sequence of linked keys.PMC *key_append(Interp *interpreter, 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 *interpreter, PMC *key)
key
as live.include/parrot/key.h.
Initial version by Jeff G. on 2001.12.05.
|