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 void register_raw_nci_method_in_ns
Create an entry in the void Parrot_mark_method_writes
Mark the method void Parrot_compreg
Register a parser/compiler function.
PMC *Parrot_compile_string
Compile code string.
void *Parrot_compile_file
Compile code file.
INTVAL interpinfo
PMC *interpinfo_p
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.STRING *sysinfo_s
Returns the system info string.
nci_method_table
for the given NCI method of PMC class type
.
nci_method_table
for the given raw NCI method of PMC class type
.
name
on PMC type type
as one that modifies the PMC.
what
specifies the type of information you want about the interpreter.
what
specifies the type of information you want about the interpreter.
info_wanted
is one of:
PARROT_INTSIZE PARROT_FLOATSIZE PARROT_POINTERSIZE PARROT_INTMAX PARROT_INTMINIn unknown info is requested then -1 is returned.
info_wanted
is one of:
PARROT_OS PARROT_OS_VERSION PARROT_OS_VERSION_NUMBER CPU_ARCH CPU_TYPEIf unknown info is requested then an empty string is returned.