diff options
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); |