diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2004-05-21 21:30:53 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2004-05-21 21:30:53 (GMT) |
commit | cfa13d98b75f061041620fe58e5c2beca784d94d (patch) | |
tree | b687015f160a32ee48ca0b60a5827576ed6d7359 | |
parent | ba6ec48f9035744eb537bede1f77cffa94e26517 (diff) | |
download | tcl-cfa13d98b75f061041620fe58e5c2beca784d94d.zip tcl-cfa13d98b75f061041620fe58e5c2beca784d94d.tar.gz tcl-cfa13d98b75f061041620fe58e5c2beca784d94d.tar.bz2 |
Variables should only ever be declarated at the start of a block...
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | generic/tclExecute.c | 6 |
2 files changed, 8 insertions, 3 deletions
@@ -1,3 +1,8 @@ +2004-05-21 Donal K. Fellows <donal.k.fellows@man.ac.uk> + + * generic/tclExecute.c (TclExecuteByteCode): Move a few + declarations a short distance so pre-C99 compilers can cope. + 2004-05-21 Miguel Sofer <msofer@users.sf.net> * generic/tclExecute.c (TclExecuteByteCode): reorganised TEBC diff --git a/generic/tclExecute.c b/generic/tclExecute.c index da9b7c8..033e705 100644 --- a/generic/tclExecute.c +++ b/generic/tclExecute.c @@ -11,7 +11,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclExecute.c,v 1.136 2004/05/21 09:39:28 msofer Exp $ + * RCS: @(#) $Id: tclExecute.c,v 1.137 2004/05/21 21:31:03 dkf Exp $ */ #include "tclInt.h" @@ -2520,12 +2520,12 @@ TclExecuteByteCode(interp, codePtr) char *s; Tcl_ObjType *t1Ptr, *t2Ptr; Tcl_Obj *valuePtr, *value2Ptr; + Tcl_WideInt w; value2Ptr = *tosPtr; valuePtr = *(tosPtr - 1); t1Ptr = valuePtr->typePtr; t2Ptr = value2Ptr->typePtr; - Tcl_WideInt w; if ((t1Ptr == &tclIntType) || (t1Ptr == &tclBooleanType)) { i1 = (valuePtr->internalRep.longValue != 0); @@ -3095,9 +3095,9 @@ TclExecuteByteCode(interp, codePtr) */ int index, length; char *bytes; - bytes = NULL; /* lint */ Tcl_Obj *valuePtr, *value2Ptr; + bytes = NULL; /* lint */ value2Ptr = *tosPtr; valuePtr = *(tosPtr - 1); |