summaryrefslogtreecommitdiffstats
path: root/generic/tkClipboard.c
diff options
context:
space:
mode:
Diffstat (limited to 'generic/tkClipboard.c')
-rw-r--r--generic/tkClipboard.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/generic/tkClipboard.c b/generic/tkClipboard.c
index 426af71..9558d0c 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.7 2000/08/01 18:52:45 ericm Exp $
+ * RCS: @(#) $Id: tkClipboard.c,v 1.8 2002/01/17 05:13:11 dgp Exp $
*/
#include "tkInt.h"
@@ -434,7 +434,7 @@ Tk_ClipboardObjCmd(clientData, interp, objc, objv)
Tk_Window tkwin = (Tk_Window) clientData;
char *path = NULL;
Atom selection;
- static char *optionStrings[] = { "append", "clear", "get", NULL };
+ static CONST char *optionStrings[] = { "append", "clear", "get", NULL };
enum options { CLIPBOARD_APPEND, CLIPBOARD_CLEAR, CLIPBOARD_GET };
int index, i;
@@ -454,8 +454,9 @@ Tk_ClipboardObjCmd(clientData, interp, objc, objv)
char *targetName = NULL;
char *formatName = NULL;
char *string;
- static char *appendOptionStrings[] = { "-displayof", "-format",
- "-type", NULL };
+ static CONST char *appendOptionStrings[] = {
+ "-displayof", "-format", "-type", NULL
+ };
enum appendOptions { APPEND_DISPLAYOF, APPEND_FORMAT,
APPEND_TYPE };
int subIndex, length;
@@ -525,7 +526,7 @@ Tk_ClipboardObjCmd(clientData, interp, objc, objv)
Tcl_GetString(objv[i]));
}
case CLIPBOARD_CLEAR: {
- static char *clearOptionStrings[] = { "-displayof", NULL };
+ static CONST char *clearOptionStrings[] = { "-displayof", NULL };
enum clearOptions { CLEAR_DISPLAYOF };
int subIndex;
if (objc != 2 && objc != 4) {
@@ -556,7 +557,9 @@ Tk_ClipboardObjCmd(clientData, interp, objc, objv)
Tcl_DString selBytes;
int result;
char *string;
- static char *getOptionStrings[] = { "-displayof", "-type", NULL };
+ static CONST char *getOptionStrings[] = {
+ "-displayof", "-type", NULL
+ };
enum getOptions { APPEND_DISPLAYOF, APPEND_TYPE };
int subIndex;