summaryrefslogtreecommitdiffstats
path: root/generic/tclCompile.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2011-03-06 22:33:01 (GMT)
committerdgp <dgp@users.sourceforge.net>2011-03-06 22:33:01 (GMT)
commit2974197dc80bf11f3de2283e0a2275242eeba099 (patch)
treedba041e4a0b7494a00e6c28357073b27feb6d9c9 /generic/tclCompile.c
parent42a0f5eabc531da30fc887e4c56cca4fdfd41d35 (diff)
parent590b69308f62e20ef06bc1dddb80c910187ec9a0 (diff)
downloadtcl-2974197dc80bf11f3de2283e0a2275242eeba099.zip
tcl-2974197dc80bf11f3de2283e0a2275242eeba099.tar.gz
tcl-2974197dc80bf11f3de2283e0a2275242eeba099.tar.bz2
* generic/tclBasic.c: More replacements of Tcl_UtfBackslash() calls
* generic/tclCompile.c: with TclParseBackslash() where possible. * generic/tclCompCmdsSZ.c: * generic/tclParse.c: * generic/tclUtil.c:
Diffstat (limited to 'generic/tclCompile.c')
-rw-r--r--generic/tclCompile.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/generic/tclCompile.c b/generic/tclCompile.c
index 8005034..9dcafb4 100644
--- a/generic/tclCompile.c
+++ b/generic/tclCompile.c
@@ -1393,7 +1393,8 @@ TclWordKnownAtCompileTime(
case TCL_TOKEN_BS:
if (tempPtr != NULL) {
char utfBuf[TCL_UTF_MAX];
- int length = Tcl_UtfBackslash(tokenPtr->start, NULL, utfBuf);
+ int length = TclParseBackslash(tokenPtr->start,
+ tokenPtr->size, NULL, utfBuf);
Tcl_AppendToObj(tempPtr, utfBuf, length);
}
@@ -2031,7 +2032,8 @@ TclCompileTokens(
break;
case TCL_TOKEN_BS:
- length = Tcl_UtfBackslash(tokenPtr->start, NULL, buffer);
+ length = TclParseBackslash(tokenPtr->start, tokenPtr->size,
+ NULL, buffer);
Tcl_DStringAppend(&textBuffer, buffer, length);
/*