From cfa13d98b75f061041620fe58e5c2beca784d94d Mon Sep 17 00:00:00 2001 From: dkf Date: Fri, 21 May 2004 21:30:53 +0000 Subject: Variables should only ever be declarated at the start of a block... --- ChangeLog | 5 +++++ generic/tclExecute.c | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 67ac12d..a8b8869 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-05-21 Donal K. Fellows + + * generic/tclExecute.c (TclExecuteByteCode): Move a few + declarations a short distance so pre-C99 compilers can cope. + 2004-05-21 Miguel Sofer * 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); -- cgit v0.12