diff options
author | dgp <dgp@noemail.net> | 2002-01-17 04:37:32 (GMT) |
---|---|---|
committer | dgp <dgp@noemail.net> | 2002-01-17 04:37:32 (GMT) |
commit | 3f36853ecfb6bbcb1991bde15129d16da8f68965 (patch) | |
tree | 62a19bfcb6159f9beaa9ffb26dcd2b680126c7c8 /generic/tclTestObj.c | |
parent | f0abdf9b8f9092172d08b390156f98df2f135669 (diff) | |
download | tcl-3f36853ecfb6bbcb1991bde15129d16da8f68965.zip tcl-3f36853ecfb6bbcb1991bde15129d16da8f68965.tar.gz tcl-3f36853ecfb6bbcb1991bde15129d16da8f68965.tar.bz2 |
* More TIP 27 updates in tclIOUtil.c and tclIndexObj.c that were
overlooked before. Updated callers.
***POTENTIAL INCOMPATIBILITY***
Includes a source incompatibility in the tablePtr arguments of
the Tcl_GetIndexFromObj* routines.
FossilOrigin-Name: 28b6020550dd9e62f46b824e4c2ba2a6302657f6
Diffstat (limited to 'generic/tclTestObj.c')
-rw-r--r-- | generic/tclTestObj.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/generic/tclTestObj.c b/generic/tclTestObj.c index d423308..ca9b088 100644 --- a/generic/tclTestObj.c +++ b/generic/tclTestObj.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: tclTestObj.c,v 1.8 2001/11/14 23:17:04 hobbs Exp $ + * RCS: @(#) $Id: tclTestObj.c,v 1.9 2002/01/17 04:37:33 dgp Exp $ */ #include "tclInt.h" @@ -404,8 +404,8 @@ TestindexobjCmd(clientData, interp, objc, objv) Tcl_Obj *CONST objv[]; /* Argument objects. */ { int allowAbbrev, index, index2, setError, i, result; - char **argv; - static char *tablePtr[] = {"a", "b", "check", (char *) NULL}; + CONST char **argv; + static CONST char *tablePtr[] = {"a", "b", "check", (char *) NULL}; if ((objc == 3) && (strcmp(Tcl_GetString(objv[1]), "check") == 0)) { @@ -442,7 +442,7 @@ TestindexobjCmd(clientData, interp, objc, objv) return TCL_ERROR; } - argv = (char **) ckalloc((unsigned) ((objc-3) * sizeof(char *))); + argv = (CONST char **) ckalloc((unsigned) ((objc-3) * sizeof(char *))); for (i = 4; i < objc; i++) { argv[i-4] = Tcl_GetString(objv[i]); } @@ -895,7 +895,7 @@ TeststringobjCmd(clientData, interp, objc, objv) #define MAX_STRINGS 11 char *index, *string, *strings[MAX_STRINGS+1]; TestString *strPtr; - static char *options[] = { + static CONST char *options[] = { "append", "appendstrings", "get", "get2", "length", "length2", "set", "set2", "setlength", "ualloc", (char *) NULL }; |