|
|
Make an Ns_Set accessible through Tcl
int Ns_TclEnterSet(
Tcl_Interp *interp,
Ns_Set *set,
int flags
);
Ns_TclEnterSet makes an Ns_Set accessible through Tcl. The new set ID is sprintf'ed directly into interp->result. It returns either NS_OK or NS_ERROR. The flags can be one or more of the following:
Sets created by Tcl are normally DYNAMIC and TEMPORARY unless the -persist option is used in the Tcl function when creating the set.
set = Ns_SetCreate(name);
return Ns_TclEnterSet(interp, set,
NS_TCL_SET_TEMPORARY | NS_TCL_SET_DYNAMIC);