Tcl_CallWhenDeleted, Tcl_DontCallWhenDeleted − Arrange for callback when interpreter is deleted


#include <tcl.h>

Tcl_CallWhenDeleted(interp, proc, clientData)

Tcl_DontCallWhenDeleted(interp, proc, clientData)


Tcl_Interp *interp (in)

Interpreter with which to associated callback.

Tcl_InterpDeleteProc *proc (in)

Procedure to call when interp is deleted.

ClientData clientData (in)

Arbitrary one-word value to pass to proc.



Tcl_CallWhenDeleted arranges for proc to be called by Tcl_DeleteInterp if/when interp is deleted at some future time. Proc will be invoked just before the interpreter is deleted, but the interpreter will still be valid at the time of the call. Proc should have arguments and result that match the type Tcl_InterpDeleteProc:

typedef void Tcl_InterpDeleteProc(
ClientData clientData,
Tcl_Interp *interp);

The clientData and interp parameters are copies of the clientData and interp arguments given to Tcl_CallWhenDeleted. Typically, clientData points to an application-specific data structure that proc uses to perform cleanup when an interpreter is about to go away. Proc does not return a value.

Tcl_DontCallWhenDeleted cancels a previous call to Tcl_CallWhenDeleted with the same arguments, so that proc will not be called after all when interp is deleted. If there is no deletion callback that matches interp, proc, and clientData then the call to Tcl_DontCallWhenDeleted has no effect.


callback, delete, interpreter

More Linux Commands

gcov-4.8(1) coverage testing tool - Linux manual page.......
gcov-4.8.1 - gcov is a test coverage program. Use it in concert with GCC to analyze your programs to help create more efficient, faster running code and to disc

mkfs.ntfs(8) - create an NTFS file system - Linux man page
mkntfs is used to create an NTFS file system on a device (usually a disk partition) or file. device is the special file corresponding to the device (e.g /dev/hd

pamvalidate(1) validate Netpbm image format - Linux man page
This program is part of Netpbm(1) pamvalidate copies a Netpbm image from Standard Input to Standard Output, except that if there are certain violations of the i

Tcl_CreateObjCommand(3) - implement new commands in C.......
Tcl_CreateObjCommand defines a new command in interp and associates it with procedure proc such that whenever name is invoked as a Tcl command (e.g., via a call

glGetError(3gl) - return error information - Linux man page
glGetError returns the value of the error flag. Each detectable error is assigned a numeric code and symbolic name. When an error occurs, the error flag is set

get_escdelay_sp(3ncurses) - curses screen-pointer extension
This implementation can be configured to provide a set of functions which improve the ability to manage multiple screens. This feature can be added to any of th

rtkitctl(8) Realtime Policy and Watchdog daemon control.....
RealtimeKit is a D-Bus system service that changes the scheduling policy of user processes/threads to SCHED_RR (i.e. realtime scheduling mode) on request. It is

idmap_rfc2307(8) Samba's idmap_rfc2307 Backend for Winbind
The idmap_rfc2307 plugin provides a way for winbind to read id mappings from records in an LDAP server as defined in RFC 2307. The LDAP server can be stand-alon

ptrace(2) - process trace (System calls - Linux man page)...
The ptrace() system call provides a means by which one process (the tracer) may observe and control the execution of another process (the tracee), and examine a

glTexEnv(3gl) - set texture environment parameters (ManPage)
A texture environment specifies how texture values are interpreted when a fragment is textured. target must be GL_TEXTURE_ENV. pname can be either GL_TEXTURE_EN

ntp-keygen(1) - Create a NTP host key - Linux manual page...
This manual page briefly documents the ntp-keygen command. If there is no new host key, look for an existing one. If one is not found, create it. OPTIONS -c sch

dngettext(3) - translate message and choose plural form.....
The ngettext, dngettext and dcngettext functions attempt to translate a text string into the users native language, by looking up the appropriate plural form of

We can't live, work or learn in freedom unless the software we use is free.