NAME ^

src/inter_create.c - Parrot Interpreter Creation and Destruction

DESCRIPTION ^

Create or destroy a Parrot interpreter.c

Functions ^

static int is_env_var_set(const char *var)

Checks whether the specified environment variable is set.

static void setup_default_compreg(Parrot_Interp interpreter)

Setup default compiler for PASM.

Parrot_Interp make_interpreter(Parrot_Interp parent, Interp_flags flags)

Create the Parrot interpreter. Allocate memory and clear the registers.

void Parrot_destroy(Interp *interpreter)

Does nothing if ATEXIT_DESTROY is defined. Otherwise calls Parrot_really_destroy() with exit code 0.

This function is not currently used.

void Parrot_really_destroy(int exit_code, void *vinterp)

Waits for any threads to complete, then frees all allocated memory, and closes any open file handles, etc.

Note that exit_code is ignored.

SEE ALSO ^

include/parrot/interpreter.h, src/interpreter.c.


parrot