summaryrefslogtreecommitdiffstats
path: root/generic/tkWindow.c
diff options
context:
space:
mode:
authornijtmans <nijtmans>2008-10-28 22:33:06 (GMT)
committernijtmans <nijtmans>2008-10-28 22:33:06 (GMT)
commit1bd2a6be5bf054d026c081134dedb54ec13bd9f8 (patch)
treecf99f99a21277e0bc21da965946d8e129c1a5814 /generic/tkWindow.c
parentfd5b6de1f656d326d560e1d4edf053cf4c58a551 (diff)
downloadtk-1bd2a6be5bf054d026c081134dedb54ec13bd9f8.zip
tk-1bd2a6be5bf054d026c081134dedb54ec13bd9f8.tar.gz
tk-1bd2a6be5bf054d026c081134dedb54ec13bd9f8.tar.bz2
CONSTify TkPrintPadAmount, TkCreateFrame, TkCreateMainWindow
and Tk_ParseArgv. move TkSelGetSelection to internal stub table (needed in tkWinTest.c)
Diffstat (limited to 'generic/tkWindow.c')
-rw-r--r--generic/tkWindow.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/generic/tkWindow.c b/generic/tkWindow.c
index 87e93c9..87bb2f7 100644
--- a/generic/tkWindow.c
+++ b/generic/tkWindow.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: tkWindow.c,v 1.97 2008/10/18 14:22:21 dkf Exp $
+ * RCS: @(#) $Id: tkWindow.c,v 1.98 2008/10/28 22:33:06 nijtmans Exp $
*/
#include "tkInt.h"
@@ -96,7 +96,7 @@ static XSetWindowAttributes defAtts= {
*/
typedef struct {
- char *name; /* Name of command. */
+ const char *name; /* Name of command. */
Tcl_CmdProc *cmdProc; /* Command's string-based function. */
Tcl_ObjCmdProc *objProc; /* Command's object-based function. */
int isSafe; /* If !0, this command will be exposed in a
@@ -854,7 +854,7 @@ TkCreateMainWindow(
const char *screenName, /* Name of screen on which to create window.
* Empty or NULL string means use DISPLAY
* environment variable. */
- char *baseName) /* Base name for application; usually of the
+ const char *baseName) /* Base name for application; usually of the
* form "prog instance". */
{
Tk_Window tkwin;
@@ -2935,7 +2935,7 @@ Initialize(
char *p;
int argc, code;
const char **argv;
- char *args[20];
+ const char *args[20];
const char *argString = NULL;
Tcl_DString class;
ThreadSpecificData *tsdPtr;