September 2009
Intermediate to advanced
816 pages
19h 38m
English
This chapter explains what interpreters are, how to create them and delete them, and how to use them to evaluate Tcl scripts.
• Tcl_Interp *Tcl_CreateInterp()
Creates and returns a new Tcl interpreter.
• Tcl_DeleteInterp(Tcl_Interp *interp)
Deletes a Tcl interpreter.
• Tcl_InterpDeleted(Tcl_Interp *interp)
Returns nonzero if the interpreter is slated for deletion.
• Tcl_Interp *Tcl_CreateSlave(Tcl_Interp *interp, CONST charslaveName, int isSafe)
Creates a “slave” interpreter with the name slaveName. The isSafe parameter determines whether to create a safe interpreter or not.
• int Tcl_IsSafe(Tcl_Interp *interp)
Returns 1 if the interpreter is safe, otherwise 0.
• int Tcl_MakeSafe(Tcl_Interp ...
Read now
Unlock full access