diff options
author | nijtmans <nijtmans> | 2007-01-03 04:10:48 (GMT) |
---|---|---|
committer | nijtmans <nijtmans> | 2007-01-03 04:10:48 (GMT) |
commit | df1d5b0c6b3bdf308fd86c0101f8e9110b177a6d (patch) | |
tree | 55ba9040aa4b132a813feb9491021de15558513d /generic/tkObj.c | |
parent | ba7fa40f47b2346070ac01a694ba15c111ffb9eb (diff) | |
download | tk-df1d5b0c6b3bdf308fd86c0101f8e9110b177a6d.zip tk-df1d5b0c6b3bdf308fd86c0101f8e9110b177a6d.tar.gz tk-df1d5b0c6b3bdf308fd86c0101f8e9110b177a6d.tar.bz2 |
various "const" additions in implementation
Diffstat (limited to 'generic/tkObj.c')
-rw-r--r-- | generic/tkObj.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/generic/tkObj.c b/generic/tkObj.c index f4ca2fd..7910c9f 100644 --- a/generic/tkObj.c +++ b/generic/tkObj.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: tkObj.c,v 1.15 2005/11/17 16:21:56 dkf Exp $ + * RCS: @(#) $Id: tkObj.c,v 1.16 2007/01/03 04:10:55 nijtmans Exp $ */ #include "tkInt.h" @@ -282,7 +282,7 @@ SetPixelFromAny( Tcl_Interp *interp, /* Used for error reporting if not NULL. */ Tcl_Obj *objPtr) /* The object to convert. */ { - Tcl_ObjType *typePtr; + const Tcl_ObjType *typePtr; char *string, *rest; double d; int i, units; @@ -544,14 +544,14 @@ SetMMFromAny( Tcl_Interp *interp, /* Used for error reporting if not NULL. */ Tcl_Obj *objPtr) /* The object to convert. */ { - Tcl_ObjType *typePtr; + const Tcl_ObjType *typePtr; char *string, *rest; double d; int units; MMRep *mmPtr; - static Tcl_ObjType *tclDoubleObjType = NULL; - static Tcl_ObjType *tclIntObjType = NULL; + static const Tcl_ObjType *tclDoubleObjType = NULL; + static const Tcl_ObjType *tclIntObjType = NULL; if (tclDoubleObjType == NULL) { /* @@ -729,7 +729,7 @@ SetWindowFromAny( Tcl_Interp *interp, /* Used for error reporting if not NULL. */ register Tcl_Obj *objPtr) /* The object to convert. */ { - Tcl_ObjType *typePtr; + const Tcl_ObjType *typePtr; WindowRep *winPtr; /* |