diff options
author | dgp <dgp@noemail.net> | 2002-01-25 21:09:35 (GMT) |
---|---|---|
committer | dgp <dgp@noemail.net> | 2002-01-25 21:09:35 (GMT) |
commit | 2662a3d30282b46108055b6087a7235df796d58e (patch) | |
tree | 2041d0c0de9f76a800e1af4c067e78376fbdd570 /generic/tkCanvPs.c | |
parent | 00a5c8508adb8715e08eb3a265d58206e7ee3f2d (diff) | |
download | tk-2662a3d30282b46108055b6087a7235df796d58e.zip tk-2662a3d30282b46108055b6087a7235df796d58e.tar.gz tk-2662a3d30282b46108055b6087a7235df796d58e.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.
FossilOrigin-Name: 933dcfe881579bb3925ff2a05e925a0bd8d67087
Diffstat (limited to 'generic/tkCanvPs.c')
-rw-r--r-- | generic/tkCanvPs.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/generic/tkCanvPs.c b/generic/tkCanvPs.c index 940b754..ea6ec2a 100644 --- a/generic/tkCanvPs.c +++ b/generic/tkCanvPs.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: tkCanvPs.c,v 1.7 2000/04/25 01:03:06 hobbs Exp $ + * RCS: @(#) $Id: tkCanvPs.c,v 1.8 2002/01/25 21:09:36 dgp Exp $ */ #include "tkInt.h" @@ -128,7 +128,7 @@ static CONST char * CONST prolog[]= { \n\ % This is a standard prolog for Postscript generated by Tk's canvas\n\ % widget.\n\ -% RCS: @(#) $Id: tkCanvPs.c,v 1.7 2000/04/25 01:03:06 hobbs Exp $\n\ +% RCS: @(#) $Id: tkCanvPs.c,v 1.8 2002/01/25 21:09:36 dgp Exp $\n\ \n\ % The definitions below just define all of the variables used in\n\ % any of the procedures here. This is needed for obscure reasons\n\ @@ -470,7 +470,8 @@ TkCanvPostscriptCmd(canvasPtr, interp, argc, argv) int result; Tk_Item *itemPtr; #define STRING_LENGTH 400 - char string[STRING_LENGTH+1], *p; + char string[STRING_LENGTH+1]; + CONST char *p; time_t now; size_t length; Tk_Window tkwin = canvasPtr->tkwin; @@ -967,7 +968,7 @@ Tk_PostscriptColor(interp, psInfo, colorPtr) */ if (psInfoPtr->colorVar != NULL) { - char *cmdString; + CONST char *cmdString; cmdString = Tcl_GetVar2(interp, psInfoPtr->colorVar, Tk_NameOfColor(colorPtr), 0); @@ -1047,9 +1048,10 @@ Tk_PostscriptFont(interp, psInfo, tkfont) Tcl_DStringInit(&ds); if (psInfoPtr->fontVar != NULL) { - char *list, **argv; + CONST char *list; int argc; double size; + CONST char **argv; char *name; name = Tk_NameOfFont(tkfont); |