summaryrefslogtreecommitdiffstats
path: root/generic/tkListbox.c
diff options
context:
space:
mode:
authornijtmans <nijtmans@noemail.net>2008-10-17 23:18:36 (GMT)
committernijtmans <nijtmans@noemail.net>2008-10-17 23:18:36 (GMT)
commit0e4c55ad7ee1dd9a2ee70ebce782873cab46f0cf (patch)
tree44f5a027c41b824d344a2113ff678351840eaaec /generic/tkListbox.c
parent757fc57b54df134be23bb24b2ccba5d425df7063 (diff)
downloadtk-0e4c55ad7ee1dd9a2ee70ebce782873cab46f0cf.zip
tk-0e4c55ad7ee1dd9a2ee70ebce782873cab46f0cf.tar.gz
tk-0e4c55ad7ee1dd9a2ee70ebce782873cab46f0cf.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. FossilOrigin-Name: da3819dbb53904a418b6098f3b103df483c53304
Diffstat (limited to 'generic/tkListbox.c')
-rw-r--r--generic/tkListbox.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/generic/tkListbox.c b/generic/tkListbox.c
index 94be1fb..b35d6ea 100644
--- a/generic/tkListbox.c
+++ b/generic/tkListbox.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: tkListbox.c,v 1.49 2008/10/09 21:21:03 dgp Exp $
+ * RCS: @(#) $Id: tkListbox.c,v 1.50 2008/10/17 23:18:37 nijtmans Exp $
*/
#include "default.h"
@@ -340,7 +340,7 @@ static const Tk_OptionSpec itemAttrOptionSpecs[] = {
* dispatch the listbox widget command.
*/
-static const char *commandNames[] = {
+static const char *const commandNames[] = {
"activate", "bbox", "cget", "configure", "curselection", "delete", "get",
"index", "insert", "itemcget", "itemconfigure", "nearest", "scan",
"see", "selection", "size", "xview", "yview", NULL
@@ -353,21 +353,21 @@ enum command {
COMMAND_SIZE, COMMAND_XVIEW, COMMAND_YVIEW
};
-static const char *selCommandNames[] = {
+static const char *const selCommandNames[] = {
"anchor", "clear", "includes", "set", NULL
};
enum selcommand {
SELECTION_ANCHOR, SELECTION_CLEAR, SELECTION_INCLUDES, SELECTION_SET
};
-static const char *scanCommandNames[] = {
+static const char *const scanCommandNames[] = {
"mark", "dragto", NULL
};
enum scancommand {
SCAN_MARK, SCAN_DRAGTO
};
-static const char *indexNames[] = {
+static const char *const indexNames[] = {
"active", "anchor", "end", NULL
};
enum indices {