NAME ^

src/inter_misc.c - Parrot Interpreter - Misc functions

DESCRIPTION ^

NCI function setup, interpinfo, and sysinfo opcodes.

Functions ^

void enter_nci_method(Parrot_Interp interpreter, int type, void *func, const char *name, const char *proto)

Create an entry in the nci_method_table for the given NCI method of PMC class type.

void Parrot_compreg(Parrot_Interp interpreter, STRING *type, PMC *func)

Register a parser/compiler function.

INTVAL interpinfo(Interp *interpreter, INTVAL what)

PMC *interpinfo_p(Interp *interpreter, INTVAL what)

what specifies the type of information you want about the interpreter.

INTVAL sysinfo_i(Parrot_Interp interpreter, INTVAL info_wanted)

Returns the system info.

info_wanted is one of:

    PARROT_INTSIZE
    PARROT_FLOATSIZE
    PARROT_POINTERSIZE
In unknown info is requested then -1 is returned.

STRING *sysinfo_s(Parrot_Interp interpreter, INTVAL info_wanted)

Returns the system info string.

info_wanted is one of:

    PARROT_OS
    PARROT_OS_VERSION
    PARROT_OS_VERSION_NUMBER
    CPU_ARCH
    CPU_TYPE
If unknown info is requested then and empty string is returned.

SEE ALSO ^

include/parrot/interpreter.h.


parrot