diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2007-05-11 09:41:57 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2007-05-11 09:41:57 (GMT) |
commit | 9f466e7384bf194ed56d75d4de8f5a796f3c4672 (patch) | |
tree | 97ac6cfca4eb76e7200b342adc003d8a33814ce3 /generic/tclExecute.c | |
parent | 5c2395f67602902d3da17b6a7dd9043eb43b8d5f (diff) | |
download | tcl-9f466e7384bf194ed56d75d4de8f5a796f3c4672.zip tcl-9f466e7384bf194ed56d75d4de8f5a796f3c4672.tar.gz tcl-9f466e7384bf194ed56d75d4de8f5a796f3c4672.tar.bz2 |
Better const correctness
Diffstat (limited to 'generic/tclExecute.c')
-rw-r--r-- | generic/tclExecute.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/generic/tclExecute.c b/generic/tclExecute.c index 5878cf1..1d354e8 100644 --- a/generic/tclExecute.c +++ b/generic/tclExecute.c @@ -12,7 +12,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.282 2007/04/24 03:14:01 kennykb Exp $ + * RCS: @(#) $Id: tclExecute.c,v 1.283 2007/05/11 09:41:57 dkf Exp $ */ #include "tclInt.h" @@ -103,7 +103,7 @@ static const char *operatorStrings[] = { */ #ifdef TCL_COMPILE_DEBUG -static char *resultStrings[] = { +static const char *resultStrings[] = { "TCL_OK", "TCL_ERROR", "TCL_RETURN", "TCL_BREAK", "TCL_CONTINUE" }; #endif @@ -370,7 +370,7 @@ static void IllegalExprOperandType(Tcl_Interp *interp, static void InitByteCodeExecution(Tcl_Interp *interp); #ifdef TCL_COMPILE_DEBUG static void PrintByteCodeInfo(ByteCode *codePtr); -static char * StringForResultCode(int result); +static const char * StringForResultCode(int result); static void ValidatePcAndStackTop(ByteCode *codePtr, unsigned char *pc, int stackTop, int stackLowerBound, int checkStack); @@ -7569,7 +7569,7 @@ EvalStatsCmd( *---------------------------------------------------------------------- */ -static char * +static const char * StringForResultCode( int result) /* The Tcl result code for which to generate a * string. */ |