diff options
author | kennykb <kennykb@noemail.net> | 2005-06-24 20:07:07 (GMT) |
---|---|---|
committer | kennykb <kennykb@noemail.net> | 2005-06-24 20:07:07 (GMT) |
commit | 7398ab1f1e8140c0776ff0b5e6de64f7d45858f9 (patch) | |
tree | 92f6646260678c2a5a490c82febb89f3dc354f98 /generic/tclPreserve.c | |
parent | c77b8e3c30fc028603c3a714a3bc1ad6b95fc988 (diff) | |
download | tcl-7398ab1f1e8140c0776ff0b5e6de64f7d45858f9.zip tcl-7398ab1f1e8140c0776ff0b5e6de64f7d45858f9.tar.gz tcl-7398ab1f1e8140c0776ff0b5e6de64f7d45858f9.tar.bz2 |
cleanup Tcl_Preserve after exit handlers
FossilOrigin-Name: 3519b5327d59d72d06c913b34c319c9ca2303129
Diffstat (limited to 'generic/tclPreserve.c')
-rw-r--r-- | generic/tclPreserve.c | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/generic/tclPreserve.c b/generic/tclPreserve.c index 624675e..cea5725 100644 --- a/generic/tclPreserve.c +++ b/generic/tclPreserve.c @@ -12,7 +12,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclPreserve.c,v 1.5 2003/12/24 04:18:20 davygrvy Exp $ + * RCS: @(#) $Id: tclPreserve.c,v 1.6 2005/06/24 20:07:22 kennykb Exp $ */ #include "tclInt.h" @@ -66,17 +66,11 @@ typedef struct HandleStruct { } HandleStruct; -/* - * Static routines in this file: - */ - -static void PreserveExitProc _ANSI_ARGS_((ClientData clientData)); - /* *---------------------------------------------------------------------- * - * PreserveExitProc -- + * TclFinalizePreserve -- * * Called during exit processing to clean up the reference array. * @@ -90,9 +84,8 @@ static void PreserveExitProc _ANSI_ARGS_((ClientData clientData)); */ /* ARGSUSED */ -static void -PreserveExitProc(clientData) - ClientData clientData; /* NULL -Unused. */ +void +TclFinalizePreserve() { Tcl_MutexLock(&preserveMutex); if (spaceAvl != 0) { @@ -151,8 +144,6 @@ Tcl_Preserve(clientData) if (inUse == spaceAvl) { if (spaceAvl == 0) { - Tcl_CreateExitHandler((Tcl_ExitProc *) PreserveExitProc, - (ClientData) NULL); refArray = (Reference *) ckalloc((unsigned) (INITIAL_SIZE*sizeof(Reference))); spaceAvl = INITIAL_SIZE; |