summaryrefslogtreecommitdiffstats
path: root/generic/tkTextWind.c
diff options
context:
space:
mode:
authornijtmans <nijtmans>2008-10-17 23:18:37 (GMT)
committernijtmans <nijtmans>2008-10-17 23:18:37 (GMT)
commit1cc08bb263130bcf88e80f28fee1566d82e8483b (patch)
tree44f5a027c41b824d344a2113ff678351840eaaec /generic/tkTextWind.c
parent6dc6826a1dc7d007b786417a1bdae7579d312afa (diff)
downloadtk-1cc08bb263130bcf88e80f28fee1566d82e8483b.zip
tk-1cc08bb263130bcf88e80f28fee1566d82e8483b.tar.gz
tk-1cc08bb263130bcf88e80f28fee1566d82e8483b.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/tkTextWind.c')
-rw-r--r--generic/tkTextWind.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tkTextWind.c b/generic/tkTextWind.c
index 3f5f88f..0e97d92 100644
--- a/generic/tkTextWind.c
+++ b/generic/tkTextWind.c
@@ -11,7 +11,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkTextWind.c,v 1.24 2008/07/23 23:24:23 nijtmans Exp $
+ * RCS: @(#) $Id: tkTextWind.c,v 1.25 2008/10/17 23:18:37 nijtmans Exp $
*/
#include "tkPort.h"
@@ -87,7 +87,7 @@ static const Tk_SegType tkTextEmbWindowType = {
* Definitions for alignment values:
*/
-static char *alignStrings[] = {
+static const char *const alignStrings[] = {
"baseline", "bottom", "center", "top", NULL
};
@@ -143,7 +143,7 @@ TkTextWindowCmd(
* objv[1] is "window". */
{
int optionIndex;
- static const char *windOptionStrings[] = {
+ static const char *const windOptionStrings[] = {
"cget", "configure", "create", "names", NULL
};
enum windOptions {