diff options
author | nijtmans <nijtmans> | 2007-01-05 00:00:47 (GMT) |
---|---|---|
committer | nijtmans <nijtmans> | 2007-01-05 00:00:47 (GMT) |
commit | 67771314a2fb4326cc411f74011c1d47edd3bfa5 (patch) | |
tree | ef0668274bd47be5de7af3d70163084f9e530aa3 /generic/tk.h | |
parent | b89f2e9fa3ed933c2d1599be0cdc0f4616ae17c7 (diff) | |
download | tk-67771314a2fb4326cc411f74011c1d47edd3bfa5.zip tk-67771314a2fb4326cc411f74011c1d47edd3bfa5.tar.gz tk-67771314a2fb4326cc411f74011c1d47edd3bfa5.tar.bz2 |
various "const" additions, in line with TIP #27
fix bug #1627732
Diffstat (limited to 'generic/tk.h')
-rw-r--r-- | generic/tk.h | 12 |
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 */ |