diff options
author | nijtmans <nijtmans> | 2008-07-27 22:18:21 (GMT) |
---|---|---|
committer | nijtmans <nijtmans> | 2008-07-27 22:18:21 (GMT) |
commit | 18bbede136bbdbc5867f284093730f6b5b57cff6 (patch) | |
tree | 9addfbbe83939c7f293726911007b5a5c83bb4be /generic/tclOOMethod.c | |
parent | 496f531a89bb73a3d70a47ab4ef3d124081806ec (diff) | |
download | tcl-18bbede136bbdbc5867f284093730f6b5b57cff6.zip tcl-18bbede136bbdbc5867f284093730f6b5b57cff6.tar.gz tcl-18bbede136bbdbc5867f284093730f6b5b57cff6.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***
Diffstat (limited to 'generic/tclOOMethod.c')
-rw-r--r-- | generic/tclOOMethod.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclOOMethod.c b/generic/tclOOMethod.c index 3afe314..8dfb834 100644 --- a/generic/tclOOMethod.c +++ b/generic/tclOOMethod.c @@ -8,7 +8,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclOOMethod.c,v 1.8 2008/07/18 23:29:44 msofer Exp $ + * RCS: @(#) $Id: tclOOMethod.c,v 1.9 2008/07/27 22:18:23 nijtmans Exp $ */ #ifdef HAVE_CONFIG_H @@ -736,7 +736,7 @@ PushMethodCallFrame( register int result; const char *namePtr; CallFrame **framePtrPtr = &fdPtr->framePtr; - static Tcl_ObjType *byteCodeTypePtr = NULL; /* HACK! */ + static const Tcl_ObjType *byteCodeTypePtr = NULL; /* HACK! */ /* * Compute basic information on the basis of the type of method it is. |