diff options
author | dgp <dgp@noemail.net> | 2007-06-20 18:46:05 (GMT) |
---|---|---|
committer | dgp <dgp@noemail.net> | 2007-06-20 18:46:05 (GMT) |
commit | daf38a3140c3c3b587edb14188137ba534138e33 (patch) | |
tree | 3d231361d50bc42a020d3f65eefb68a5951da2ae /generic/tclIndexObj.c | |
parent | 79e94ad9a88f3578b06bb2a92c16bd5dc8609b9f (diff) | |
download | tcl-daf38a3140c3c3b587edb14188137ba534138e33.zip tcl-daf38a3140c3c3b587edb14188137ba534138e33.tar.gz tcl-daf38a3140c3c3b587edb14188137ba534138e33.tar.bz2 |
* generic/tclInt.decls: Revised the interfaces of the routines
* generic/tclExecute.c: TclStackAlloc and TclStackFree to make them
easier for callers to use (or more precisely, harder to misuse).
TclStackFree now takes a (void *) argument which is the pointer
intended to be freed. TclStackFree will panic if that's not actually
the memory the call will free. TSA/TSF also now tolerate receiving
(interp == NULL), in which case they simply fall back to be calls to
Tcl_Alloc/Tcl_Free.
* generic/tclIntDecls.h: make genstubs
* generic/tclBasic.c: Updated callers
* generic/tclCmdAH.c:
* generic/tclCmdIL.c:
* generic/tclCompCmds.c:
* generic/tclCompExpr.c:
* generic/tclCompile.c:
* generic/tclFCmd.c:
* generic/tclFileName.c:
* generic/tclIOCmd.c:
* generic/tclIndexObj.c:
* generic/tclInterp.c:
* generic/tclNamesp.c:
* generic/tclProc.c:
* generic/tclTrace.c:
* unix/tclUnixPipe.c:
FossilOrigin-Name: 4ea644b0decea73815d69d6a1d3767ed27191491
Diffstat (limited to 'generic/tclIndexObj.c')
-rw-r--r-- | generic/tclIndexObj.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tclIndexObj.c b/generic/tclIndexObj.c index e45a902..ef2f3ed 100644 --- a/generic/tclIndexObj.c +++ b/generic/tclIndexObj.c @@ -10,7 +10,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclIndexObj.c,v 1.34 2007/06/12 12:36:54 dkf Exp $ + * RCS: @(#) $Id: tclIndexObj.c,v 1.35 2007/06/20 18:46:13 dgp Exp $ */ #include "tclInt.h" @@ -543,7 +543,7 @@ Tcl_WrongNumArgs( len = Tcl_ConvertCountedElement(elementStr, elemLen, quotedElementStr, flags); Tcl_AppendToObj(objPtr, quotedElementStr, len); - TclStackFree(interp); /* quotedElementStr */ + TclStackFree(interp, quotedElementStr); } else { Tcl_AppendToObj(objPtr, elementStr, elemLen); } @@ -597,7 +597,7 @@ Tcl_WrongNumArgs( len = Tcl_ConvertCountedElement(elementStr, elemLen, quotedElementStr, flags); Tcl_AppendToObj(objPtr, quotedElementStr, len); - TclStackFree(interp); /* quotedElementStr */ + TclStackFree(interp, quotedElementStr); } else { Tcl_AppendToObj(objPtr, elementStr, elemLen); } |