📄 calldel.3
字号:
'\"'\" Copyright (c) 1993 The Regents of the University of California.'\" Copyright (c) 1994-1996 Sun Microsystems, Inc.'\"'\" See the file "license.terms" for information on usage and redistribution'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.'\" '\" SCCS: @(#) CallDel.3 1.11 96/03/25 19:57:25'\" .so man.macros.TH Tcl_CallWhenDeleted 3 7.0 Tcl "Tcl Library Procedures".BS.SH NAMETcl_CallWhenDeleted, Tcl_DontCallWhenDeleted \- Arrange for callback when interpreter is deleted.SH SYNOPSIS.nf\fB#include <tcl.h>\fR.sp\fBTcl_CallWhenDeleted\fR(\fIinterp\fR, \fIproc\fR, \fIclientData\fR).sp\fBTcl_DontCallWhenDeleted\fR(\fIinterp\fR, \fIproc\fR, \fIclientData\fR).SH ARGUMENTS.AS Tcl_InterpDeleteProc clientData.AP Tcl_Interp *interp inInterpreter with which to associated callback..AP Tcl_InterpDeleteProc *proc inProcedure to call when \fIinterp\fR is deleted..AP ClientData clientData inArbitrary one-word value to pass to \fIproc\fR..BE.SH DESCRIPTION.PP\fBTcl_CallWhenDeleted\fR arranges for \fIproc\fR to be called by\fBTcl_DeleteInterp\fR if/when \fIinterp\fR is deleted at some futuretime. \fIProc\fR will be invoked just before the interpreteris deleted, but the interpreter will still be valid at thetime of the call.\fIProc\fR should have arguments and result that match thetype \fBTcl_InterpDeleteProc\fR:.CStypedef void Tcl_InterpDeleteProc( ClientData \fIclientData\fR, Tcl_Interp *\fIinterp\fR);.CEThe \fIclientData\fR and \fIinterp\fR parameters arecopies of the \fIclientData\fR and \fIinterp\fR arguments givento \fBTcl_CallWhenDeleted\fR.Typically, \fIclientData\fR points to an application-specificdata structure that \fIproc\fR uses to perform cleanup when aninterpreter is about to go away.\fIProc\fR does not return a value..PP\fBTcl_DontCallWhenDeleted\fR cancels a previous call to\fBTcl_CallWhenDeleted\fR with the same arguments, so that\fIproc\fR won't be called after all when \fIinterp\fR isdeleted.If there is no deletion callback that matches \fIinterp\fR,\fIproc\fR, and \fIclientData\fR then the call to\fBTcl_DontCallWhenDeleted\fR has no effect..SH KEYWORDScallback, delete, interpreter
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -