diff options
author | nijtmans <nijtmans> | 2008-10-17 23:18:37 (GMT) |
---|---|---|
committer | nijtmans <nijtmans> | 2008-10-17 23:18:37 (GMT) |
commit | 1cc08bb263130bcf88e80f28fee1566d82e8483b (patch) | |
tree | 44f5a027c41b824d344a2113ff678351840eaaec /generic/tkGrab.c | |
parent | 6dc6826a1dc7d007b786417a1bdae7579d312afa (diff) | |
download | tk-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/tkGrab.c')
-rw-r--r-- | generic/tkGrab.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tkGrab.c b/generic/tkGrab.c index 5ae15d3..d07c197 100644 --- a/generic/tkGrab.c +++ b/generic/tkGrab.c @@ -9,7 +9,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkGrab.c,v 1.15 2008/07/23 23:24:23 nijtmans Exp $ + * RCS: @(#) $Id: tkGrab.c,v 1.16 2008/10/17 23:18:37 nijtmans Exp $ */ #include "tkInt.h" @@ -191,10 +191,10 @@ Tk_GrabObjCmd( char *arg; int index; int len; - static const char *optionStrings[] = { + static const char *const optionStrings[] = { "current", "release", "set", "status", NULL }; - static const char *flagStrings[] = { + static const char *const flagStrings[] = { "-global", NULL }; enum options { |