diff options
author | dgp <dgp@noemail.net> | 2011-03-06 22:19:29 (GMT) |
---|---|---|
committer | dgp <dgp@noemail.net> | 2011-03-06 22:19:29 (GMT) |
commit | 839ddd5a0e82b93e05a9fdcf7068ef7769540df9 (patch) | |
tree | 143a00b3e9c1727409f8c0498c59131b75126e4f /generic/tclCompile.c | |
parent | 1fc00f0e8aa93f87ac2638405cc96580dd3e506a (diff) | |
parent | eecfc2d1e8dd5347c4f1e580699bbca23baf39b5 (diff) | |
download | tcl-839ddd5a0e82b93e05a9fdcf7068ef7769540df9.zip tcl-839ddd5a0e82b93e05a9fdcf7068ef7769540df9.tar.gz tcl-839ddd5a0e82b93e05a9fdcf7068ef7769540df9.tar.bz2 |
* generic/tclBasic.c: More replacements of Tcl_UtfBackslash() calls
* generic/tclCompile.c: with TclParseBackslash() where possible.
* generic/tclParse.c:
* generic/tclUtil.c:
FossilOrigin-Name: 7d1cc3f816c892df2a5c153dc5de99c63683e4a7
Diffstat (limited to 'generic/tclCompile.c')
-rw-r--r-- | generic/tclCompile.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/generic/tclCompile.c b/generic/tclCompile.c index 6b00a0e..f2c4fdc 100644 --- a/generic/tclCompile.c +++ b/generic/tclCompile.c @@ -1136,7 +1136,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); } break; @@ -1667,7 +1668,7 @@ TclCompileTokens( * any. The table is extended if needed. * * Note: Different to the equivalent code in function - * 'EvalTokensStandard()' (see file "tclBasic.c") we do not seem to need + * 'TclSubstTokens()' (see file "tclParse.c") we do not seem to need * the 'adjust' variable. We also do not seem to need code which merges * continuation line information of multiple words which concat'd at * runtime. Either that or I have not managed to find a test case for @@ -1700,7 +1701,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); /* |