diff options
author | dgp <dgp@users.sourceforge.net> | 2002-01-25 21:09:35 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2002-01-25 21:09:35 (GMT) |
commit | 6ed2bb40b9be7079b3eb3b9872657d06d568dc7f (patch) | |
tree | 2041d0c0de9f76a800e1af4c067e78376fbdd570 /win | |
parent | 7b64060dd94a995160cc8ccbd5bee7556fd996a9 (diff) | |
download | tk-6ed2bb40b9be7079b3eb3b9872657d06d568dc7f.zip tk-6ed2bb40b9be7079b3eb3b9872657d06d568dc7f.tar.gz tk-6ed2bb40b9be7079b3eb3b9872657d06d568dc7f.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 'win')
-rw-r--r-- | win/tkWinCursor.c | 4 | ||||
-rw-r--r-- | win/tkWinInit.c | 8 | ||||
-rw-r--r-- | win/tkWinWm.c | 8 | ||||
-rw-r--r-- | win/tkWinX.c | 8 |
4 files changed, 14 insertions, 14 deletions
diff --git a/win/tkWinCursor.c b/win/tkWinCursor.c index 0d200e0..6bcb8ba 100644 --- a/win/tkWinCursor.c +++ b/win/tkWinCursor.c @@ -8,7 +8,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkWinCursor.c,v 1.4 1999/12/16 21:59:35 hobbs Exp $ + * RCS: @(#) $Id: tkWinCursor.c,v 1.5 2002/01/25 21:09:37 dgp Exp $ */ #include "tkWinInt.h" @@ -111,7 +111,7 @@ TkGetCursorByName(interp, tkwin, string) } if (string[0] == '@') { int argc; - char **argv = NULL; + CONST char **argv = NULL; if (Tcl_SplitList(interp, string, &argc, &argv) != TCL_OK) { return NULL; } diff --git a/win/tkWinInit.c b/win/tkWinInit.c index eb87599..ad3006a 100644 --- a/win/tkWinInit.c +++ b/win/tkWinInit.c @@ -9,7 +9,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkWinInit.c,v 1.6 2001/12/28 23:09:12 hobbs Exp $ + * RCS: @(#) $Id: tkWinInit.c,v 1.7 2002/01/25 21:09:37 dgp Exp $ */ #include "tkWinInt.h" @@ -76,7 +76,7 @@ TkpGetAppName(interp, namePtr) Tcl_DString *namePtr; /* A previously initialized Tcl_DString. */ { int argc; - char **argv = NULL, *name, *p; + CONST char **argv = NULL, *name, *p; name = Tcl_GetVar(interp, "argv0", TCL_GLOBAL_ONLY); if (name != NULL) { @@ -119,8 +119,8 @@ TkpGetAppName(interp, namePtr) void TkpDisplayWarning(msg, title) - char *msg; /* Message to be displayed. */ - char *title; /* Title of warning. */ + CONST char *msg; /* Message to be displayed. */ + CONST char *title; /* Title of warning. */ { Tcl_Encoding unicodeEncoding = Tcl_GetEncoding(NULL, "unicode"); Tcl_DString msgString, titleString; diff --git a/win/tkWinWm.c b/win/tkWinWm.c index cab514f..e68e177 100644 --- a/win/tkWinWm.c +++ b/win/tkWinWm.c @@ -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: tkWinWm.c,v 1.33 2001/12/28 23:44:19 hobbs Exp $ + * RCS: @(#) $Id: tkWinWm.c,v 1.34 2002/01/25 21:09:37 dgp Exp $ */ #include "tkWinInt.h" @@ -240,7 +240,7 @@ typedef struct TkWmInfo { ProtocolHandler *protPtr; /* First in list of protocol handlers for * this window (NULL means none). */ int cmdArgc; /* Number of elements in cmdArgv below. */ - char **cmdArgv; /* Array of strings to store in the + CONST char **cmdArgv; /* Array of strings to store in the * WM_COMMAND property. NULL means nothing * available. */ char *clientMachine; /* String to store in WM_CLIENT_MACHINE @@ -2209,7 +2209,7 @@ Tk_WmCmd(clientData, interp, argc, argv) TkWindow **cmapList; TkWindow *winPtr2; int i, windowArgc, gotToplevel; - char **windowArgv; + CONST char **windowArgv; if ((argc != 3) && (argc != 4)) { Tcl_AppendResult(interp, "wrong # arguments: must be \"", @@ -2278,7 +2278,7 @@ Tk_WmCmd(clientData, interp, argc, argv) } else if ((c == 'c') && (strncmp(argv[1], "command", length) == 0) && (length >= 3)) { int cmdArgc; - char **cmdArgv; + CONST char **cmdArgv; if ((argc != 3) && (argc != 4)) { Tcl_AppendResult(interp, "wrong # arguments: must be \"", diff --git a/win/tkWinX.c b/win/tkWinX.c index d277fc7..e17a8fb 100644 --- a/win/tkWinX.c +++ b/win/tkWinX.c @@ -10,7 +10,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkWinX.c,v 1.17 2001/12/28 23:43:24 hobbs Exp $ + * RCS: @(#) $Id: tkWinX.c,v 1.18 2002/01/25 21:09:37 dgp Exp $ */ #include "tkWinInt.h" @@ -325,10 +325,10 @@ TkWinGetPlatformId() *---------------------------------------------------------------------- */ -char * +CONST char * TkGetDefaultScreenName(interp, screenName) Tcl_Interp *interp; /* Not used. */ - char *screenName; /* If NULL, use default string. */ + CONST char *screenName; /* If NULL, use default string. */ { if ((screenName == NULL) || (screenName[0] == '\0')) { screenName = winScreenName; @@ -355,7 +355,7 @@ TkGetDefaultScreenName(interp, screenName) TkDisplay * TkpOpenDisplay(display_name) - char *display_name; + CONST char *display_name; { Screen *screen; HDC dc; |