diff options
author | dgp <dgp@users.sourceforge.net> | 2013-06-26 20:20:23 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2013-06-26 20:20:23 (GMT) |
commit | 04ccb7817ce7656204d750f7205d441dceb94ac3 (patch) | |
tree | 171aa2207fad7add22bdafd52cc1ec1e6b58371b /generic | |
parent | 33e20f17a6f8a5fddafb1a39563a04aed53705e1 (diff) | |
parent | d8e108cc4748d02d928366cc07447b2e738e796b (diff) | |
download | tcl-04ccb7817ce7656204d750f7205d441dceb94ac3.zip tcl-04ccb7817ce7656204d750f7205d441dceb94ac3.tar.gz tcl-04ccb7817ce7656204d750f7205d441dceb94ac3.tar.bz2 |
merge trunk
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tclConfig.c | 4 | ||||
-rw-r--r-- | generic/tclExecute.c | 2 | ||||
-rw-r--r-- | generic/tclOptimize.c | 3 | ||||
-rw-r--r-- | generic/tclPanic.c | 4 |
4 files changed, 9 insertions, 4 deletions
diff --git a/generic/tclConfig.c b/generic/tclConfig.c index a4ba71a..1d84cac 100644 --- a/generic/tclConfig.c +++ b/generic/tclConfig.c @@ -88,9 +88,9 @@ Tcl_RegisterConfig( * package meta data. Only if we have an ok encoding. * * Phase II: Create a command for querying this database, specific to the - * package registerting its configuration. This is the approved interface + * package registering its configuration. This is the approved interface * in TIP 59. In the future a more general interface should be done, as - * followup to TIP 59. Simply because our database is now general across + * follow-up to TIP 59. Simply because our database is now general across * packages, and not a structure tied to one package. * * Note, the created command will have a reference through its clientdata. diff --git a/generic/tclExecute.c b/generic/tclExecute.c index 98f1ed8..d3a0d32 100644 --- a/generic/tclExecute.c +++ b/generic/tclExecute.c @@ -2766,7 +2766,7 @@ TEBCresume( */ auxObjList->length += objc - 1; - if ((objc > 1) && (auxObjList-length > 0)) { + if ((objc > 1) && (auxObjList->length > 0)) { length = auxObjList->length /* Total expansion room we need */ + codePtr->maxStackDepth /* Beyond the original max */ - CURR_DEPTH; /* Relative to where we are */ diff --git a/generic/tclOptimize.c b/generic/tclOptimize.c index cd37a6a..b7f4173 100644 --- a/generic/tclOptimize.c +++ b/generic/tclOptimize.c @@ -212,7 +212,8 @@ ConvertZeroEffectToNOP( int blank = 0, i, nextInst; size = AddrLength(currentInstPtr); - while (*(currentInstPtr+size) == INST_NOP) { + while ((currentInstPtr + size < envPtr->codeNext) + && *(currentInstPtr+size) == INST_NOP) { if (IsTargetAddress(&targets, currentInstPtr + size)) { break; } diff --git a/generic/tclPanic.c b/generic/tclPanic.c index b87a8df..2a453b9 100644 --- a/generic/tclPanic.c +++ b/generic/tclPanic.c @@ -52,6 +52,10 @@ Tcl_SetPanicProc( #if defined(_WIN32) /* tclWinDebugPanic only installs if there is no panicProc yet. */ if ((proc != tclWinDebugPanic) || (panicProc == NULL)) +#elif defined(__CYGWIN__) + if (proc == NULL) + panicProc = tclWinDebugPanic; + else #endif panicProc = proc; } |