diff options
author | msofer <msofer@noemail.net> | 2005-04-02 02:08:21 (GMT) |
---|---|---|
committer | msofer <msofer@noemail.net> | 2005-04-02 02:08:21 (GMT) |
commit | 01655d82fb04103dca5f97c88a67536f67b58ddc (patch) | |
tree | 60e127a56dc4b46c2944f5cd3e2270be9489cdca /generic/tclStubInit.c | |
parent | 3249c3774db6798eabb2ac608cc9ef829e6dc5c5 (diff) | |
download | tcl-01655d82fb04103dca5f97c88a67536f67b58ddc.zip tcl-01655d82fb04103dca5f97c88a67536f67b58ddc.tar.gz tcl-01655d82fb04103dca5f97c88a67536f67b58ddc.tar.bz2 |
Changed the internal representation of lists to (a) reduce the malloc/free
calls at list creation (from 2 to 1), (b) reduce the cost of handling empty
lists (we now never create a list internal rep for them), (c) allow
refcounting of the list internal rep. The latter permits insuring that the
pointers returned by Tcl_ListObjGetElements remain valid even if the object
shimmers away from its original list type. This is [Patch 1158008]
FossilOrigin-Name: 20cba22d4264a71bbc3de27278a9ed12fbe42004
Diffstat (limited to 'generic/tclStubInit.c')
-rw-r--r-- | generic/tclStubInit.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tclStubInit.c b/generic/tclStubInit.c index 29ed7bb..6dfe793 100644 --- a/generic/tclStubInit.c +++ b/generic/tclStubInit.c @@ -8,7 +8,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclStubInit.c,v 1.113 2005/01/27 00:23:27 andreas_kupries Exp $ + * RCS: @(#) $Id: tclStubInit.c,v 1.114 2005/04/02 02:08:59 msofer Exp $ */ #include "tclInt.h" @@ -264,8 +264,8 @@ TclIntStubs tclIntStubs = { TclVarErrMsg, /* 177 */ Tcl_SetStartupScript, /* 178 */ Tcl_GetStartupScript, /* 179 */ - TclNewListObjDirect, /* 180 */ - TclDbNewListObjDirect, /* 181 */ + NULL, /* 180 */ + NULL, /* 181 */ TclpLocaltime, /* 182 */ TclpGmtime, /* 183 */ TclThreadStorageLockInit, /* 184 */ |