diff options
author | nijtmans <nijtmans> | 2008-10-17 23:18:37 (GMT) |
---|---|---|
committer | nijtmans <nijtmans> | 2008-10-17 23:18:37 (GMT) |
commit | f9bdfaa967982fbe680e45cd3a3f9873a71ebe8f (patch) | |
tree | 44f5a027c41b824d344a2113ff678351840eaaec /generic/tkClipboard.c | |
parent | 803826de028dcbb2cb0ff3392c7801bf3f5c83e9 (diff) | |
download | tk-f9bdfaa967982fbe680e45cd3a3f9873a71ebe8f.zip tk-f9bdfaa967982fbe680e45cd3a3f9873a71ebe8f.tar.gz tk-f9bdfaa967982fbe680e45cd3a3f9873a71ebe8f.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/tkClipboard.c')
-rw-r--r-- | generic/tkClipboard.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/generic/tkClipboard.c b/generic/tkClipboard.c index 6e0057b..ce49319 100644 --- a/generic/tkClipboard.c +++ b/generic/tkClipboard.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: tkClipboard.c,v 1.20 2008/07/23 23:24:23 nijtmans Exp $ + * RCS: @(#) $Id: tkClipboard.c,v 1.21 2008/10/17 23:18:37 nijtmans Exp $ */ #include "tkInt.h" @@ -425,7 +425,7 @@ Tk_ClipboardObjCmd( Tk_Window tkwin = (Tk_Window) clientData; char *path = NULL; Atom selection; - static const char *optionStrings[] = { "append", "clear", "get", NULL }; + static const char *const optionStrings[] = { "append", "clear", "get", NULL }; enum options { CLIPBOARD_APPEND, CLIPBOARD_CLEAR, CLIPBOARD_GET }; int index, i; @@ -445,7 +445,7 @@ Tk_ClipboardObjCmd( char *targetName = NULL; char *formatName = NULL; char *string; - static const char *appendOptionStrings[] = { + static const char *const appendOptionStrings[] = { "-displayof", "-format", "-type", NULL }; enum appendOptions { APPEND_DISPLAYOF, APPEND_FORMAT, APPEND_TYPE }; @@ -516,7 +516,7 @@ Tk_ClipboardObjCmd( Tcl_GetString(objv[i])); } case CLIPBOARD_CLEAR: { - static const char *clearOptionStrings[] = { "-displayof", NULL }; + static const char *const clearOptionStrings[] = { "-displayof", NULL }; enum clearOptions { CLEAR_DISPLAYOF }; int subIndex; @@ -548,7 +548,7 @@ Tk_ClipboardObjCmd( Tcl_DString selBytes; int result; char *string; - static const char *getOptionStrings[] = { + static const char *const getOptionStrings[] = { "-displayof", "-type", NULL }; enum getOptions { APPEND_DISPLAYOF, APPEND_TYPE }; |