summaryrefslogtreecommitdiffstats
path: root/generic/tkObj.c
diff options
context:
space:
mode:
authornijtmans <nijtmans>2008-10-15 06:41:06 (GMT)
committernijtmans <nijtmans>2008-10-15 06:41:06 (GMT)
commit61b16774d545ab31705be8fda1520731cb0075f7 (patch)
tree29f5c39636b7be9789e731887bc5a58b1b1ee2f3 /generic/tkObj.c
parentd7a70751627660bb7343dab5abda94a068388dd1 (diff)
downloadtk-61b16774d545ab31705be8fda1520731cb0075f7.zip
tk-61b16774d545ab31705be8fda1520731cb0075f7.tar.gz
tk-61b16774d545ab31705be8fda1520731cb0075f7.tar.bz2
Add "const" to many internal
const tables, so those will be put by the C-compiler in the TEXT segment in stead of the DATA segment. This makes those table sharable in shared libraries.
Diffstat (limited to 'generic/tkObj.c')
-rw-r--r--generic/tkObj.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/generic/tkObj.c b/generic/tkObj.c
index 647ea8b..41cc589 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.21 2008/10/14 13:24:32 dkf Exp $
+ * RCS: @(#) $Id: tkObj.c,v 1.22 2008/10/15 06:41:06 nijtmans Exp $
*/
#include "tkInt.h"
@@ -87,7 +87,7 @@ static int SetWindowFromAny(Tcl_Interp *interp, Tcl_Obj *objPtr);
* initial display-independant settings.
*/
-static Tcl_ObjType pixelObjType = {
+static const Tcl_ObjType pixelObjType = {
"pixel", /* name */
FreePixelInternalRep, /* freeIntRepProc */
DupPixelInternalRep, /* dupIntRepProc */
@@ -101,7 +101,7 @@ static Tcl_ObjType pixelObjType = {
* initial display-independant settings.
*/
-static Tcl_ObjType mmObjType = {
+static const Tcl_ObjType mmObjType = {
"mm", /* name */
FreeMMInternalRep, /* freeIntRepProc */
DupMMInternalRep, /* dupIntRepProc */
@@ -114,7 +114,7 @@ static Tcl_ObjType mmObjType = {
* Tcl object.
*/
-static Tcl_ObjType windowObjType = {
+static const Tcl_ObjType windowObjType = {
"window", /* name */
FreeWindowInternalRep, /* freeIntRepProc */
DupWindowInternalRep, /* dupIntRepProc */