summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiguel Sofer <miguel.sofer@gmail.com>2002-07-17 20:27:34 (GMT)
committerMiguel Sofer <miguel.sofer@gmail.com>2002-07-17 20:27:34 (GMT)
commitb6f6d97e727f10bb363e7951b3cb80bbfac6296a (patch)
treea3faf1c2cd1d0ea7f031f0a9761e7d3041160bcc
parente1074e1811926784013cdee67c5f68f4b7f7353c (diff)
downloadtcl-b6f6d97e727f10bb363e7951b3cb80bbfac6296a.zip
tcl-b6f6d97e727f10bb363e7951b3cb80bbfac6296a.tar.gz
tcl-b6f6d97e727f10bb363e7951b3cb80bbfac6296a.tar.bz2
* generic/tclVar.c (TclPtrIncrVar): missing CONST in declarations,
inconsistent with tclInt.h
-rw-r--r--ChangeLog6
-rw-r--r--generic/tclVar.c6
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 <msofer@users.sourceforge.net>
+
+ * 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 <vincentdarley@users.sourceforge.net>
* 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. */