summaryrefslogtreecommitdiffstats
path: root/generic/tk.h
diff options
context:
space:
mode:
authornijtmans <nijtmans>2007-01-05 00:00:47 (GMT)
committernijtmans <nijtmans>2007-01-05 00:00:47 (GMT)
commit5c9860687fc1c16102a753d81ef3cf17392cd998 (patch)
treeef0668274bd47be5de7af3d70163084f9e530aa3 /generic/tk.h
parenta15b7dcbd6c700fb5f1854f09c0d26cfd53e04bb (diff)
downloadtk-5c9860687fc1c16102a753d81ef3cf17392cd998.zip
tk-5c9860687fc1c16102a753d81ef3cf17392cd998.tar.gz
tk-5c9860687fc1c16102a753d81ef3cf17392cd998.tar.bz2
various "const" additions, in line with TIP #27
fix bug #1627732
Diffstat (limited to 'generic/tk.h')
-rw-r--r--generic/tk.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/generic/tk.h b/generic/tk.h
index 6927370..560967a 100644
--- a/generic/tk.h
+++ b/generic/tk.h
@@ -12,7 +12,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tk.h,v 1.92 2007/01/03 05:06:26 nijtmans Exp $
+ * RCS: @(#) $Id: tk.h,v 1.93 2007/01/05 00:00:50 nijtmans Exp $
*/
#ifndef _TK
@@ -163,11 +163,11 @@ typedef struct Tk_OptionSpec {
Tk_OptionType type; /* Type of option, such as TK_OPTION_COLOR;
* see definitions above. Last option in table
* must have type TK_OPTION_END. */
- char *optionName; /* Name used to specify option in Tcl
+ const char *optionName; /* Name used to specify option in Tcl
* commands. */
- char *dbName; /* Name for option in option database. */
- char *dbClass; /* Class for option in database. */
- char *defValue; /* Default value for option if not specified
+ const char *dbName; /* Name for option in option database. */
+ const char *dbClass; /* Class for option in database. */
+ const char *defValue; /* Default value for option if not specified
* in command line, the option database, or
* the system. */
int objOffset; /* Where in record to store a Tcl_Obj * that
@@ -223,7 +223,7 @@ typedef void (Tk_CustomOptionFreeProc) _ANSI_ARGS_((ClientData clientData,
Tk_Window tkwin, char *internalPtr));
typedef struct Tk_ObjCustomOption {
- char *name; /* Name of the custom option. */
+ const char *name; /* Name of the custom option. */
Tk_CustomOptionSetProc *setProc;
/* Function to use to set a record's option
* value from a Tcl_Obj */