summaryrefslogtreecommitdiffstats
path: root/generic/tclResult.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2003-09-04 16:44:11 (GMT)
committerdgp <dgp@users.sourceforge.net>2003-09-04 16:44:11 (GMT)
commit50a76c2d9e2b751c9ca040cbb8308ca088f3d034 (patch)
treee4dab2e65e57de3f104811a01c704395859cc326 /generic/tclResult.c
parentdbcc5e83bdefe43d400134dba999965c93892c73 (diff)
downloadtcl-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/tclResult.c')
-rw-r--r--generic/tclResult.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/generic/tclResult.c b/generic/tclResult.c
index 22cf249..7c4d696 100644
--- a/generic/tclResult.c
+++ b/generic/tclResult.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: tclResult.c,v 1.7 2003/07/16 21:24:12 hobbs Exp $
+ * RCS: @(#) $Id: tclResult.c,v 1.8 2003/09/04 16:44:12 dgp Exp $
*/
#include "tclInt.h"
@@ -634,6 +634,12 @@ Tcl_AppendElement(interp, string)
iPtr->appendUsed++;
*dst = ' ';
dst++;
+ /*
+ * If we need a space to separate this element from preceding
+ * stuff, then this element will not lead a list, and need not
+ * have it's leading '#' quoted.
+ */
+ flags |= TCL_DONT_QUOTE_HASH;
}
iPtr->appendUsed += Tcl_ConvertElement(string, dst, flags);
}