NAME
src/key.c - Base vtable calling functions
DESCRIPTION
The base vtable calling functions.
Functions
PMC *key_new
Returns a new PMC *key_new_integer
Returns a new integer PMC *key_new_number
Returns a new number PMC *key_new_string
Returns a new string PMC *key_new_cstring
Returns a new string PMC *key_new_pmc
Returns a new PMC void key_set_integer
Set the integer void key_set_register
Set the register void key_set_number
Set the number void key_set_string
Set the string void key_set_pmc
Set the PMC INTVAL key_type
Returns the type of INTVAL key_integer
Translates a key value into an integer.
Takes an interpreter name and pointer to a key.
Returns an integer value corresponding to the key.
FLOATVAL key_number
Translates a key value into a number.
Takes an interpreter name and pointer to a key.
Returns a number value corresponding to the key.
Throws an exception if the key is not a valid number.
STRING *key_string
Translates a key value into a string.
Takes an interpreter name and pointer to a key.
Returns a string value corresponding to the key.
PMC *key_pmc
These functions return the integer/number/string/PMC values of PMC *key_next
Returns the next key if PMC *key_append
Appends void key_mark
Marks STRING *key_set_to_string
Translates a series of key values into strings,
quoted or bracketed if appropriate.
Takes an interpreter name and pointer to a key.
Returns a string value corresponding to the key.
Key
PMC.
Key
PMC with value value
.
Key
PMC with value value
.
Key
PMC with value value
.
Key
PMC with value value
converted to a STRING
.
Key
PMC with value value
.
value
in key
.
value
in key
.
value
in key
.
value
in key
.
value
in key
.
key
.
key
if possible.
Otherwise they throw exceptions.
key
is in a sequence of linked keys.
key2
to key1
.Note that if key1
is not the last key in a sequence of linked keys then the last key will be found and key2
appended to that.Returns key1
.
key
as live.
SEE ALSO
include/parrot/key.h.
HISTORY
Initial version by Jeff G. on 2001.12.05.