diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2017-11-15 08:55:18 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2017-11-15 08:55:18 (GMT) |
commit | e3439b6af28680828231cfcf081ebb618ac1740f (patch) | |
tree | 70afb2ca078b69006eee79db38912879100be06b /generic/tclIndexObj.c | |
parent | 9f6573581348d2a8ceb4647ad9781d35644aee8b (diff) | |
parent | 59ebc49f0f9163be7bcbd33b23e6eae865540ab4 (diff) | |
download | tcl-e3439b6af28680828231cfcf081ebb618ac1740f.zip tcl-e3439b6af28680828231cfcf081ebb618ac1740f.tar.gz tcl-e3439b6af28680828231cfcf081ebb618ac1740f.tar.bz2 |
Change signature of (internal) TclScanElement() function. This saves memory allocation and the possibility for panic's in dict and list handling, requiring 1/4 of memory for internal allocation of temporary storage. No change to external API.
Diffstat (limited to 'generic/tclIndexObj.c')
-rw-r--r-- | generic/tclIndexObj.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/generic/tclIndexObj.c b/generic/tclIndexObj.c index 9f38638..eeed0e5 100644 --- a/generic/tclIndexObj.c +++ b/generic/tclIndexObj.c @@ -876,7 +876,8 @@ Tcl_WrongNumArgs( * NULL. */ { Tcl_Obj *objPtr; - int i, len, elemLen, flags; + int i, len, elemLen; + char flags; Interp *iPtr = (Interp *) interp; const char *elementStr; |