diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-04-06 22:04:03 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-04-06 22:04:03 (GMT) |
commit | edf582e29363915f6b8ea7954176768d8545934f (patch) | |
tree | 845dc4e8e220a3589692bbc862c9d74649410158 /generic | |
parent | ca830add40b2f1d21998d01aa0a67b9d0d4dd275 (diff) | |
download | tk-edf582e29363915f6b8ea7954176768d8545934f.zip tk-edf582e29363915f6b8ea7954176768d8545934f.tar.gz tk-edf582e29363915f6b8ea7954176768d8545934f.tar.bz2 |
some more cygwin compatibility improvements
Diffstat (limited to 'generic')
-rwxr-xr-x[-rw-r--r--] | generic/default.h | 0 | ||||
-rwxr-xr-x[-rw-r--r--] | generic/tkColor.c | 0 | ||||
-rwxr-xr-x[-rw-r--r--] | generic/tkMenu.c | 4 | ||||
-rw-r--r-- | generic/tkMenu.h | 2 |
4 files changed, 3 insertions, 3 deletions
diff --git a/generic/default.h b/generic/default.h index dd4f609..dd4f609 100644..100755 --- a/generic/default.h +++ b/generic/default.h diff --git a/generic/tkColor.c b/generic/tkColor.c index a5a1136..a5a1136 100644..100755 --- a/generic/tkColor.c +++ b/generic/tkColor.c diff --git a/generic/tkMenu.c b/generic/tkMenu.c index c996df8..19031c5 100644..100755 --- a/generic/tkMenu.c +++ b/generic/tkMenu.c @@ -101,7 +101,7 @@ TCL_DECLARE_MUTEX(menuMutex) * to update code in TkpMenuInit that changes the font string entry. */ -char *tkMenuStateStrings[] = {"active", "normal", "disabled", (char *) NULL}; +CONST char *tkMenuStateStrings[] = {"active", "normal", "disabled", (char *) NULL}; static CONST char *menuEntryTypeStrings[] = { "cascade", "checkbutton", "command", "radiobutton", "separator", @@ -113,7 +113,7 @@ static CONST char *menuEntryTypeStrings[] = { * It is used with the "enum compound" declaration in tkMenu.h */ -static char *compoundStrings[] = { +static const char *compoundStrings[] = { "bottom", "center", "left", "none", "right", "top", (char *) NULL }; diff --git a/generic/tkMenu.h b/generic/tkMenu.h index 767e3fc..a428d4c 100644 --- a/generic/tkMenu.h +++ b/generic/tkMenu.h @@ -238,7 +238,7 @@ typedef struct TkMenuEntry { * Menu states */ -EXTERN char *tkMenuStateStrings[]; +EXTERN CONST char *tkMenuStateStrings[]; #define ENTRY_ACTIVE 0 #define ENTRY_NORMAL 1 |