diff options
author | dgp <dgp@users.sourceforge.net> | 2003-09-04 16:44:11 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2003-09-04 16:44:11 (GMT) |
commit | 50a76c2d9e2b751c9ca040cbb8308ca088f3d034 (patch) | |
tree | e4dab2e65e57de3f104811a01c704395859cc326 /generic/tclListObj.c | |
parent | dbcc5e83bdefe43d400134dba999965c93892c73 (diff) | |
download | tcl-50a76c2d9e2b751c9ca040cbb8308ca088f3d034.zip tcl-50a76c2d9e2b751c9ca040cbb8308ca088f3d034.tar.gz tcl-50a76c2d9e2b751c9ca040cbb8308ca088f3d034.tar.bz2 |
* doc/SplitList.3: Implementation of TIP 148. Fixes [Bug 489537].
* generic/tcl.h: Updated Tcl_ConvertCountedElement() to quote
* generic/tclUtil.c: the leading "#" character of all list elements
unless the TCL_DONT_QUOTE_HASH flag is passed in.
* generic/tclDictObj.c: Updated Tcl_ConvertCountedElement() callers
* generic/tclListObj.c: to pass in the TCL_DONT_QUOTE_HASH flags
* generic/tclResult.c: when appropriate.
Diffstat (limited to 'generic/tclListObj.c')
-rw-r--r-- | generic/tclListObj.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/generic/tclListObj.c b/generic/tclListObj.c index cdd8cb9..2fb083c 100644 --- a/generic/tclListObj.c +++ b/generic/tclListObj.c @@ -11,7 +11,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclListObj.c,v 1.13 2002/01/07 23:09:13 dgp Exp $ + * RCS: @(#) $Id: tclListObj.c,v 1.14 2003/09/04 16:44:12 dgp Exp $ */ #include "tclInt.h" @@ -1641,7 +1641,8 @@ UpdateStringOfList(listPtr) dst = listPtr->bytes; for (i = 0; i < numElems; i++) { elem = Tcl_GetStringFromObj(listRepPtr->elements[i], &length); - dst += Tcl_ConvertCountedElement(elem, length, dst, flagPtr[i]); + dst += Tcl_ConvertCountedElement(elem, length, dst, + flagPtr[i] | (i==0 ? 0 : TCL_DONT_QUOTE_HASH) ); *dst = ' '; dst++; } |