NAME ^

classes/env.pmc - System Environment

DESCRIPTION ^

Env is a singleton class which provides access to the system environment.

Methods ^

void *get_pointer()

void set_pointer(void *ptr)

These two functions are part of the singleton creation interface. For more information see src/pmc.c.

STRING *get_string_keyed(PMC *key)

Returns the Parrot string value for the environment variable *key.

STRING *get_pmc_keyed(PMC *key)

Returns a String PMC for the environment variable *key.

void set_string_keyed(PMC *key, STRING *value)

Sets the environment variable *key to *value.

void set_pmc_keyed(PMC *key, PMC *value)

Sets the environment variable *key to *value.

INTVAL exists_keyed(PMC *key)

Returns whether the environment variable for *key exists.

void delete_keyed(PMC *key)

Deletes the the environment variable for *key.


parrot