summaryrefslogtreecommitdiffstats
path: root/generic/tkTextIndex.c
diff options
context:
space:
mode:
authornijtmans <nijtmans>2008-10-15 06:41:06 (GMT)
committernijtmans <nijtmans>2008-10-15 06:41:06 (GMT)
commitf79e189f976af35d752ba54c2b953e741dcaa8f4 (patch)
tree29f5c39636b7be9789e731887bc5a58b1b1ee2f3 /generic/tkTextIndex.c
parent839a6f162354dc5a817af33d37722091a4c39025 (diff)
downloadtk-f79e189f976af35d752ba54c2b953e741dcaa8f4.zip
tk-f79e189f976af35d752ba54c2b953e741dcaa8f4.tar.gz
tk-f79e189f976af35d752ba54c2b953e741dcaa8f4.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/tkTextIndex.c')
-rw-r--r--generic/tkTextIndex.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tkTextIndex.c b/generic/tkTextIndex.c
index a0cce5c..b9763d6 100644
--- a/generic/tkTextIndex.c
+++ b/generic/tkTextIndex.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: tkTextIndex.c,v 1.30 2008/10/05 18:22:22 dkf Exp $
+ * RCS: @(#) $Id: tkTextIndex.c,v 1.31 2008/10/15 06:41:06 nijtmans Exp $
*/
#include "default.h"
@@ -72,7 +72,7 @@ static void UpdateStringOfTextIndex(Tcl_Obj *objPtr);
* text widgets internally.
*/
-Tcl_ObjType tkTextIndexType = {
+const Tcl_ObjType tkTextIndexType = {
"textindex", /* name */
FreeTextIndexInternalRep, /* freeIntRepProc */
DupTextIndexInternalRep, /* dupIntRepProc */