NAME ^

src/inter_create.c - Parrot Interpreter Creation and Destruction

DESCRIPTION ^

Create or destroy a Parrot interpreter

Functions ^

PARROT_WARN_UNUSED_RESULT static int is_env_var_set(NOTNULL(const char *var))

Checks whether the specified environment variable is set.

static void setup_default_compreg(PARROT_INTERP)

Setup default compiler for PASM.

PARROT_API PARROT_CANNOT_RETURN_NULL Parrot_Interp make_interpreter(NULLOK(Interp *parent), INTVAL flags)

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

PARROT_API void Parrot_destroy(PARROT_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(PARROT_INTERP, SHIM(int exit_code), SHIM(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