diff options
author | dgp <dgp@users.sourceforge.net> | 2011-03-06 22:19:29 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2011-03-06 22:19:29 (GMT) |
commit | 590b69308f62e20ef06bc1dddb80c910187ec9a0 (patch) | |
tree | 143a00b3e9c1727409f8c0498c59131b75126e4f /generic/tclCompile.c | |
parent | 85e04692fde0b069530d71cd79b6f9fedb42571b (diff) | |
parent | a083ddc8208f8e9f625ef92db90f941262a260a6 (diff) | |
download | tcl-590b69308f62e20ef06bc1dddb80c910187ec9a0.zip tcl-590b69308f62e20ef06bc1dddb80c910187ec9a0.tar.gz tcl-590b69308f62e20ef06bc1dddb80c910187ec9a0.tar.bz2 |
* generic/tclBasic.c: More replacements of Tcl_UtfBackslash() calls
* generic/tclCompile.c: with TclParseBackslash() where possible.
* generic/tclParse.c:
* generic/tclUtil.c:
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); /* |