summaryrefslogtreecommitdiffstats
path: root/generic/tclCmdAH.c
diff options
context:
space:
mode:
authornijtmans <nijtmans>2009-02-03 23:34:32 (GMT)
committernijtmans <nijtmans>2009-02-03 23:34:32 (GMT)
commit22d5aa3e9618d2c3f426a16282fbdb93be01b417 (patch)
tree7d87c563d81459de0af29d9c6276a5d4c21f403b /generic/tclCmdAH.c
parent6b40f13d26013e672072cb794817a2d322d8127e (diff)
downloadtcl-22d5aa3e9618d2c3f426a16282fbdb93be01b417.zip
tcl-22d5aa3e9618d2c3f426a16282fbdb93be01b417.tar.gz
tcl-22d5aa3e9618d2c3f426a16282fbdb93be01b417.tar.bz2
- eliminate some unnessary type casts
- some internal const decorations - spacing
Diffstat (limited to 'generic/tclCmdAH.c')
-rw-r--r--generic/tclCmdAH.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/generic/tclCmdAH.c b/generic/tclCmdAH.c
index 988f21f..c8829f8 100644
--- a/generic/tclCmdAH.c
+++ b/generic/tclCmdAH.c
@@ -10,7 +10,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclCmdAH.c,v 1.114 2009/01/04 22:57:39 dkf Exp $
+ * RCS: @(#) $Id: tclCmdAH.c,v 1.115 2009/02/03 23:34:33 nijtmans Exp $
*/
#include "tclInt.h"
@@ -126,7 +126,7 @@ Tcl_CaseObjCmd(
{
register int i;
int body, result, caseObjc;
- char *stringPtr, *arg;
+ const char *stringPtr, *arg;
Tcl_Obj *const *caseObjv;
Tcl_Obj *armPtr;
@@ -163,7 +163,7 @@ Tcl_CaseObjCmd(
for (i = 0; i < caseObjc; i += 2) {
int patObjc, j;
const char **patObjv;
- char *pat;
+ const char *pat;
unsigned char *p;
if (i == caseObjc-1) {
@@ -514,7 +514,7 @@ Tcl_EncodingObjCmd(
Tcl_DString ds;
Tcl_Encoding encoding;
int length;
- char *stringPtr;
+ const char *stringPtr;
if (objc == 3) {
encoding = Tcl_GetEncoding(interp, NULL);