summaryrefslogtreecommitdiffstats
path: root/generic/tk.h
diff options
context:
space:
mode:
authornijtmans <nijtmans>2008-10-22 20:56:43 (GMT)
committernijtmans <nijtmans>2008-10-22 20:56:43 (GMT)
commita8baed51098eafe5ecd9cce9d6a8da628fab0174 (patch)
treef3a11af6ca4dfdd77bab832cf288d9605edf6e0f /generic/tk.h
parentdd7fe8791473c7789707c174fb28450afc762e04 (diff)
downloadtk-a8baed51098eafe5ecd9cce9d6a8da628fab0174.zip
tk-a8baed51098eafe5ecd9cce9d6a8da628fab0174.tar.gz
tk-a8baed51098eafe5ecd9cce9d6a8da628fab0174.tar.bz2
Letting CONST die a slow and graceful death, since NO_CONST was
broken since 8.4 and no-one complained about it.
Diffstat (limited to 'generic/tk.h')
-rw-r--r--generic/tk.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/generic/tk.h b/generic/tk.h
index d8eb505..e7a57f8 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.118 2008/10/17 23:18:37 nijtmans Exp $
+ * RCS: @(#) $Id: tk.h,v 1.119 2008/10/22 20:56:43 nijtmans Exp $
*/
#ifndef _TK
@@ -888,7 +888,7 @@ typedef enum {
} Tk_State;
typedef struct Tk_SmoothMethod {
- char *name;
+ const char *name;
int (*coordProc) (Tk_Canvas canvas, double *pointPtr, int numPoints,
int numSteps, XPoint xPoints[], double dblPoints[]);
void (*postscriptProc) (Tcl_Interp *interp, Tk_Canvas canvas,
@@ -1006,7 +1006,7 @@ typedef void Tk_ItemDCharsProc (Tk_Canvas canvas, Tk_Item *itemPtr,
#ifndef __NO_OLD_CONFIG
typedef struct Tk_ItemType {
- CONST char *name; /* The name of this type of item, such as
+ const char *name; /* The name of this type of item, such as
* "line". */
int itemSize; /* Total amount of space needed for item's
* record. */
@@ -1201,7 +1201,7 @@ typedef int (Tk_ImagePostscriptProc) (ClientData clientData,
*/
struct Tk_ImageType {
- CONST char *name; /* Name of image type. */
+ const char *name; /* Name of image type. */
Tk_ImageCreateProc *createProc;
/* Procedure to call to create a new image of
* this type. */