ClientData Tcl_GetAssocData(interp, key, delProcPtr)
Tcl_SetAssocData(interp, key, delProc, clientData)
- Tcl_Interp *interp (in)
Interpreter in which to execute the specified command.
- char *key (in)
Key for association with which to store data or from which to delete or retrieve data. Typically the module prefix for a package.
- Tcl_InterpDeleteProc *delProc (in)
Procedure to call when interp is deleted.
- Tcl_InterpDeleteProc **delProcPtr (in)
Pointer to location in which to store address of current deletion procedure for association. Ignored if NULL.
- ClientData clientData (in)
Arbitrary one-word value associated with the given key in this interpreter. This data is owned by the caller.
These procedures allow extensions to associate their own data with a Tcl interpreter. An association consists of a string key, typically the name of the extension, and a one-word value, which is typically a pointer to a data structure holding data specific to the extension. Tcl makes no interpretation of either the key or the value for an association.
Storage management is facilitated by storing with each association a procedure to call when the interpreter is deleted. This procedure can dispose of the storage occupied by the client's data in any way it sees fit.
typedef void Tcl_InterpDeleteProc( ClientData clientData, Tcl_Interp *interp);
When deleteProc is invoked the clientData and
arguments will be the same as the corresponding arguments passed to
Windows 8.1. Windows Server 2012 R2. Windows 10. Windows Server 2016. Windows Server 2019. Windows 11. Windows Server 2022.
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition
PTC MKS Toolkit 10.4 Documentation Build 39.