diff options
| author | dgp@users.sourceforge.net <dgp> | 2011-03-06 22:19:29 (GMT) |
|---|---|---|
| committer | dgp@users.sourceforge.net <dgp> | 2011-03-06 22:19:29 (GMT) |
| commit | 29ba233e57fab7ff8029b11243101a70df29c59b (patch) | |
| tree | 143a00b3e9c1727409f8c0498c59131b75126e4f /generic/tclCompile.c | |
| parent | 5f6e4cb4be342828b212fac649774eea2beda6e2 (diff) | |
| parent | 2931b138ee14f59f706197de4f135bf2223db194 (diff) | |
| download | tcl-29ba233e57fab7ff8029b11243101a70df29c59b.zip tcl-29ba233e57fab7ff8029b11243101a70df29c59b.tar.gz tcl-29ba233e57fab7ff8029b11243101a70df29c59b.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); /* |
