NAME ^

src/inter_misc.c - Parrot Interpreter miscellaneous functions

DESCRIPTION ^

NCI function setup, compiler registration, interpinfo, and sysinfo opcodes.

Functions ^

void register_nci_method(PARROT_INTERP, 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_mark_method_writes(PARROT_INTERP, int type, const char *name)

Mark the method name on PMC type type as one that modifies the PMC.

INTVAL interpinfo(PARROT_INTERP, INTVAL what)

PMC *interpinfo_p(PARROT_INTERP, INTVAL what)

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

INTVAL sysinfo_i(PARROT_INTERP, 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, 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