diff options
author | nijtmans <nijtmans@noemail.net> | 2008-10-16 22:34:18 (GMT) |
---|---|---|
committer | nijtmans <nijtmans@noemail.net> | 2008-10-16 22:34:18 (GMT) |
commit | fd1af20283d2bed67e18d4990e3c690ee7740702 (patch) | |
tree | c92c0492d1db21f9b0c7f880eec5c0cd3ce36762 /generic/tclTestObj.c | |
parent | 1e2a3ab0abe30f27bec29e326dadc97ee7856269 (diff) | |
download | tcl-fd1af20283d2bed67e18d4990e3c690ee7740702.zip tcl-fd1af20283d2bed67e18d4990e3c690ee7740702.tar.gz tcl-fd1af20283d2bed67e18d4990e3c690ee7740702.tar.bz2 |
Add "const" to many internal
const tables. No functional
or API change.
FossilOrigin-Name: f03d2e2d83be42035c4aad3b01bbd09f5a967c1b
Diffstat (limited to 'generic/tclTestObj.c')
-rw-r--r-- | generic/tclTestObj.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/generic/tclTestObj.c b/generic/tclTestObj.c index c0d4f17..842cbd0 100644 --- a/generic/tclTestObj.c +++ b/generic/tclTestObj.c @@ -13,7 +13,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclTestObj.c,v 1.24 2008/07/27 22:18:23 nijtmans Exp $ + * RCS: @(#) $Id: tclTestObj.c,v 1.25 2008/10/16 22:34:19 nijtmans Exp $ */ #include "tclInt.h" @@ -129,7 +129,7 @@ TestbignumobjCmd( int objc, /* Argument count */ Tcl_Obj *const objv[]) /* Argument vector */ { - const char * subcmds[] = { + const char *const subcmds[] = { "set", "get", "mult10", "div10", NULL }; enum options { @@ -496,7 +496,7 @@ TestindexobjCmd( { int allowAbbrev, index, index2, setError, i, result; const char **argv; - static const char *tablePtr[] = {"a", "b", "check", NULL}; + static const char *const tablePtr[] = {"a", "b", "check", NULL}; /* * Keep this structure declaration in sync with tclIndexObj.c */ @@ -996,7 +996,7 @@ TeststringobjCmd( #define MAX_STRINGS 11 char *index, *string, *strings[MAX_STRINGS+1]; TestString *strPtr; - static const char *options[] = { + static const char *const options[] = { "append", "appendstrings", "get", "get2", "length", "length2", "set", "set2", "setlength", "ualloc", "getunicode", NULL }; |