parrotcode: Parrot Interpreter - Misc functions | |
Contents | C |
src/inter_misc.c - Parrot Interpreter - Misc functions
NCI function setup,
interpinfo
,
and sysinfo
opcodes.
void enter_nci_method(Parrot_Interp interp, int type, void *func, const char *name, const char *proto)
nci_method_table
for the given NCI method of PMC class type
.void Parrot_mark_method_writes(Parrot_Interp interp, int type, const char *name)
name
on PMC type type
as one that modifies the PMC.void Parrot_compreg(Parrot_Interp interp, STRING *type, Parrot_compiler_func_t func);
PMC *Parrot_compile_string(Parrot_Interp interp, STRING *type, char *code, String **error)
void Parrot_compile_file(Parrot_Interp interp, const char *fullname, String **error)
INTVAL interpinfo(Interp *interp, INTVAL what)
PMC *interpinfo_p(Interp *interp, INTVAL what)
what
specifies the type of information you want about the interpreter.INTVAL sysinfo_i(Parrot_Interp interp, INTVAL info_wanted)
info_wanted
is one of: PARROT_INTSIZE
PARROT_FLOATSIZE
PARROT_POINTERSIZE
STRING *sysinfo_s(Parrot_Interp interp, INTVAL info_wanted)
info_wanted
is one of: PARROT_OS
PARROT_OS_VERSION
PARROT_OS_VERSION_NUMBER
CPU_ARCH
CPU_TYPE
include/parrot/interpreter.h.
|