NAME ^

src/key.c - Base vtable calling functions

DESCRIPTION ^

The base vtable calling functions.

Functions ^

key_new

Returns a new Key PMC.

key_new_integer

Returns a new integer Key PMC with value value.

key_new_number

Returns a new number Key PMC with value value.

key_new_string

Returns a new string Key PMC with value value.

key_new_cstring

Returns a new string Key PMC with value value converted to a STRING.

key_new_pmc

Returns a new PMC Key PMC with value value.

key_set_integer

Set the integer value in key.

key_set_register

Set the register value in key.

key_set_number

Set the number value in key.

key_set_string

Set the string value in key.

key_set_pmc

Set the PMC value in key.

key_type

Returns the type of key.

key_pmc

These functions return the integer/number/string/PMC values of key if possible. Otherwise they throws an exceptions.

key_next

Returns the next key if key is in a sequence of linked keys.

key_append

Appends key2 to key1.

Note that if key1 is not the last key in a sequence linked keys then the last key will be found and key2 appended to that.

Returns key1.

key_mark

Marks key as live.

SEE ALSO ^

include/parrot/key.h.

HISTORY ^

Initial version by Jeff G. on 2001.12.05.


parrot