NAME

src/inter_misc.c - Parrot Interpreter miscellaneous functions

DESCRIPTION

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

Functions

void register_nci_method
Create an entry in the nci_method_table for the given NCI method of PMC class type.
void register_raw_nci_method_in_ns
Create an entry in the nci_method_table for the given raw NCI method of PMC class type.
void Parrot_mark_method_writes
Mark the method name on PMC type type as one that modifies the PMC.
void Parrot_compreg
Register a parser/compiler function.
PMC *Parrot_compile_string
Compile code string.
void *Parrot_compile_file
Compile code file.
INTVAL interpinfo
what specifies the type of information you want about the interpreter.
PMC *interpinfo_p
what specifies the type of information you want about the interpreter.
STRING *interpinfo_s
Takes an interpreter name and an information type as arguments. Returns corresponding information strings about the interpreter: the full pathname, executable name, or the file stem, (or throws an error exception, if the type is not recognised). Valid types are EXECUTABLE_FULLNAME, EXECUTABLE_BASENAME, and RUNTIME_PREFIX.
INTVAL sysinfo_i
Returns the system info.info_wanted is one of:
    PARROT_INTSIZE
    PARROT_FLOATSIZE
    PARROT_POINTERSIZE
    PARROT_INTMAX
    PARROT_INTMIN
In unknown info is requested then -1 is returned.
STRING *sysinfo_s
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 an empty string is returned.