diff options
author | nijtmans <nijtmans@noemail.net> | 2008-07-27 22:18:21 (GMT) |
---|---|---|
committer | nijtmans <nijtmans@noemail.net> | 2008-07-27 22:18:21 (GMT) |
commit | 1ed2a28e68d5cf88a5d74406e48ec4a535c1f108 (patch) | |
tree | 9addfbbe83939c7f293726911007b5a5c83bb4be /generic/tclTestObj.c | |
parent | 678bc6433498cbc84e7075112214071301f5350e (diff) | |
download | tcl-1ed2a28e68d5cf88a5d74406e48ec4a535c1f108.zip tcl-1ed2a28e68d5cf88a5d74406e48ec4a535c1f108.tar.gz tcl-1ed2a28e68d5cf88a5d74406e48ec4a535c1f108.tar.bz2 |
* doc/Object.3 CONSTified 3 functions using
* doc/ObjectType.3 Tcl_ObjType which all are supposed
* generic/tcl.decls to be a constant, but this was not
* generic/tcl.h reflected in the API:
* generic/tclDecls.h Tcl_ConvertToType
* generic/tclObj.c Tcl_GetObjType
* generic/tclCompCmds.c Tcl_RegisterObjType
* generic/tclOOMethod.c Introduced a CONST86_RETURN, so extensions which
* generic/tclTestobj.c use Tcl_ObjType directly can be modified to compile
against both Tcl 8.5 and Tcl 8.6
tclDecls.h is re-generated with "make genstubs"
This change complies with TIP #24
***POTENTIAL INCOMPATIBILITY***
FossilOrigin-Name: 4f99dac9fd9e8c3cad5772fdaff95f8bc8fd660a
Diffstat (limited to 'generic/tclTestObj.c')
-rw-r--r-- | generic/tclTestObj.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclTestObj.c b/generic/tclTestObj.c index b39b81d..c0d4f17 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.23 2008/07/19 22:50:43 nijtmans Exp $ + * RCS: @(#) $Id: tclTestObj.c,v 1.24 2008/07/27 22:18:23 nijtmans Exp $ */ #include "tclInt.h" @@ -801,7 +801,7 @@ TestobjCmd( { int varIndex, destIndex, i; char *index, *subCmd, *string; - Tcl_ObjType *targetType; + const Tcl_ObjType *targetType; if (objc < 2) { wrongNumArgs: |