diff options
author | dgp <dgp@users.sourceforge.net> | 2013-09-27 16:54:10 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2013-09-27 16:54:10 (GMT) |
commit | 0e135facf9ea83fb0acc6ea913bc016dc5429c38 (patch) | |
tree | c72ff5e4788cb648a586690a19ebd6dd47008703 /generic | |
parent | 130082d57a8eecf64d27adcb53065841cffae765 (diff) | |
parent | f43e26d84c0342402389b06a5fa4e419a927e541 (diff) | |
download | tcl-adjust_fix.zip tcl-adjust_fix.tar.gz tcl-adjust_fix.tar.bz2 |
Patch to the original line continuation commit to fix up TclCompileTokens.adjust_fix
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tclCompile.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/generic/tclCompile.c b/generic/tclCompile.c index a0ac9d3..8bb105b 100644 --- a/generic/tclCompile.c +++ b/generic/tclCompile.c @@ -1687,7 +1687,7 @@ TclCompileTokens( char buffer[TCL_UTF_MAX]; const char *name, *p; int numObjsToConcat, nameBytes, localVarName, localVar; - int length, i; + int length, i, adjust; unsigned char *entryCodeNext = envPtr->codeNext; #define NUM_STATIC_POS 20 int isLiteral, maxNumCL, numCL; @@ -1725,6 +1725,7 @@ TclCompileTokens( clPosition = (int*) ckalloc (maxNumCL*sizeof(int)); } + adjust = 0; Tcl_DStringInit(&textBuffer); numObjsToConcat = 0; for ( ; count > 0; count--, tokenPtr++) { @@ -1765,6 +1766,7 @@ TclCompileTokens( clPosition[numCL] = clPos; numCL ++; } + adjust++; } break; @@ -1789,8 +1791,10 @@ TclCompileTokens( numCL = 0; } + envPtr->line += adjust; TclCompileScript(interp, tokenPtr->start+1, tokenPtr->size-2, envPtr); + envPtr->line -= adjust; numObjsToConcat++; break; |