NAME ^

src/inter_create.c - Parrot Interpreter Creation and Destruction

DESCRIPTION ^

Create or destroy a Parrot interpreter

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 interp)

Setup default compiler for PASM.

Parrot_Interp make_interpreter(Parrot_Interp parent, INTVAL flags)

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

void Parrot_destroy(Interp *interp)

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(Interp *interp, int exit_code, void *arg)

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