summaryrefslogtreecommitdiffstats
path: root/generic/tk3d.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/tk3d.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/tk3d.c')
-rw-r--r--generic/tk3d.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tk3d.c b/generic/tk3d.c
index c36631a..905e68d 100644
--- a/generic/tk3d.c
+++ b/generic/tk3d.c
@@ -10,7 +10,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tk3d.c,v 1.20 2008/04/27 22:38:55 dkf Exp $
+ * RCS: @(#) $Id: tk3d.c,v 1.21 2008/10/15 06:41:06 nijtmans Exp $
*/
#include "tkInt.h"
@@ -21,7 +21,7 @@
* by Tk_GetReliefFromObj.
*/
-static const char *reliefStrings[] = {
+static const char *const reliefStrings[] = {
"flat", "groove", "raised", "ridge", "solid", "sunken", NULL
};
@@ -47,7 +47,7 @@ static void ShiftLine(XPoint *p1Ptr, XPoint *p2Ptr,
* is set.
*/
-Tcl_ObjType tkBorderObjType = {
+const Tcl_ObjType tkBorderObjType = {
"border", /* name */
FreeBorderObjProc, /* freeIntRepProc */
DupBorderObjProc, /* dupIntRepProc */