From b6f6d97e727f10bb363e7951b3cb80bbfac6296a Mon Sep 17 00:00:00 2001 From: Miguel Sofer Date: Wed, 17 Jul 2002 20:27:34 +0000 Subject: * generic/tclVar.c (TclPtrIncrVar): missing CONST in declarations, inconsistent with tclInt.h --- ChangeLog | 6 ++++++ generic/tclVar.c | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index d2ea46b..7d8c9cf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2002-07-17 Miguel Sofer + + * generic/tclVar.c (TclPtrIncrVar): missing CONST in declarations, + inconsistent with tclInt.h. Thanks to Vince Darley for reporting, + boo to gcc for not complaining. + 2002-07-17 Vince Darley * generic/tclInt.h: diff --git a/generic/tclVar.c b/generic/tclVar.c index d20f7e3..2392961 100644 --- a/generic/tclVar.c +++ b/generic/tclVar.c @@ -15,7 +15,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclVar.c,v 1.58 2002/07/17 18:21:55 msofer Exp $ + * RCS: @(#) $Id: tclVar.c,v 1.59 2002/07/17 20:27:34 msofer Exp $ */ #include "tclInt.h" @@ -1775,8 +1775,8 @@ TclPtrIncrVar(interp, varPtr, arrayPtr, part1, part2, incrAmount, flags) CONST char *part2; /* If non-null, points to an object holding * the name of an element in the array * part1Ptr. */ - long incrAmount; /* Amount to be added to variable. */ - int flags; /* Various flags that tell how to incr value: + CONST long incrAmount; /* Amount to be added to variable. */ + CONST int flags; /* Various flags that tell how to incr value: * any of TCL_GLOBAL_ONLY, * TCL_NAMESPACE_ONLY, TCL_APPEND_VALUE, * TCL_LIST_ELEMENT, TCL_LEAVE_ERR_MSG. */ -- cgit v0.12