summaryrefslogtreecommitdiffstats
path: root/generic/tkEntry.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/tkEntry.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/tkEntry.c')
-rw-r--r--generic/tkEntry.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/generic/tkEntry.c b/generic/tkEntry.c
index fdb8eb3..6cb3a1c 100644
--- a/generic/tkEntry.c
+++ b/generic/tkEntry.c
@@ -14,7 +14,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkEntry.c,v 1.53 2008/10/17 23:18:37 nijtmans Exp $
+ * RCS: @(#) $Id: tkEntry.c,v 1.54 2008/10/28 22:33:06 nijtmans Exp $
*/
#include "tkInt.h"
@@ -37,7 +37,7 @@
#define DOUBLES_EQ(d1, d2) (fabs((d1) - (d2)) < MIN_DBL_VAL)
-static char *const stateStrings[] = {
+static const char *const stateStrings[] = {
"disabled", "normal", "readonly", NULL
};
@@ -45,7 +45,7 @@ static char *const stateStrings[] = {
* Definitions for -validate option values:
*/
-static char *const validateStrings[] = {
+static const char *const validateStrings[] = {
"all", "key", "focus", "focusin", "focusout", "none", NULL
};
enum validateType {
@@ -4172,7 +4172,7 @@ SpinboxInvoke(
* "down" button. */
{
Entry *entryPtr = (Entry *) sbPtr;
- char *type;
+ const char *type;
int code, up;
Tcl_DString script;