diff options
author | dgp@users.sourceforge.net <dgp> | 2002-01-25 21:09:35 (GMT) |
---|---|---|
committer | dgp@users.sourceforge.net <dgp> | 2002-01-25 21:09:35 (GMT) |
commit | 88acd7b2c13e4966ea7b12e5a313babc157d15b2 (patch) | |
tree | 2041d0c0de9f76a800e1af4c067e78376fbdd570 /generic/tkOption.c | |
parent | cdee35ad481be1d543e491b568c49f42ebaa7115 (diff) | |
download | tk-88acd7b2c13e4966ea7b12e5a313babc157d15b2.zip tk-88acd7b2c13e4966ea7b12e5a313babc157d15b2.tar.gz tk-88acd7b2c13e4966ea7b12e5a313babc157d15b2.tar.bz2 |
* Updated callers of Tcl_SplitList and Tcl_Merge.
* Updated callers of Tcl_GetStringResult.
Rewrote PrintScrollFractions to ScrollFractions to stop scribbling
directly on interp->result.
* Updated callers of Tcl_GetVar, Tcl_GetVar2
* Updated callers of Tcl_SplitPath, Tcl_JoinPath, and
Tcl_TranslateFileName.
Diffstat (limited to 'generic/tkOption.c')
-rw-r--r-- | generic/tkOption.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/generic/tkOption.c b/generic/tkOption.c index f9d9935..173eef0 100644 --- a/generic/tkOption.c +++ b/generic/tkOption.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: tkOption.c,v 1.9 2002/01/17 05:13:11 dgp Exp $ + * RCS: @(#) $Id: tkOption.c,v 1.10 2002/01/25 21:09:37 dgp Exp $ */ #include "tkPort.h" @@ -262,8 +262,8 @@ void Tk_AddOption(tkwin, name, value, priority) Tk_Window tkwin; /* Window token; option will be associated * with main window for this window. */ - char *name; /* Multi-element name of option. */ - char *value; /* String value for option. */ + CONST char *name; /* Multi-element name of option. */ + CONST char *value; /* String value for option. */ int priority; /* Overall priority level to use for * this option, such as TK_USER_DEFAULT_PRIO * or TK_INTERACTIVE_PRIO. Must be between @@ -273,8 +273,8 @@ Tk_AddOption(tkwin, name, value, priority) register ElArray **arrayPtrPtr; register Element *elPtr; Element newEl; - register char *p; - char *field; + register CONST char *p; + CONST char *field; int count, firstField, length; #define TMP_SIZE 100 char tmp[TMP_SIZE+1]; @@ -1091,7 +1091,8 @@ ReadOptionFile(interp, tkwin, fileName, priority) * or TK_INTERACTIVE_PRIO. Must be between * 0 and TK_MAX_PRIO. */ { - char *realName, *buffer; + CONST char *realName; + char *buffer; int result, bufferSize; Tcl_Channel chan; Tcl_DString newName; |