diff options
author | nijtmans <nijtmans> | 2008-10-17 23:18:37 (GMT) |
---|---|---|
committer | nijtmans <nijtmans> | 2008-10-17 23:18:37 (GMT) |
commit | 1cc08bb263130bcf88e80f28fee1566d82e8483b (patch) | |
tree | 44f5a027c41b824d344a2113ff678351840eaaec /generic/tk.h | |
parent | 6dc6826a1dc7d007b786417a1bdae7579d312afa (diff) | |
download | tk-1cc08bb263130bcf88e80f28fee1566d82e8483b.zip tk-1cc08bb263130bcf88e80f28fee1566d82e8483b.tar.gz tk-1cc08bb263130bcf88e80f28fee1566d82e8483b.tar.bz2 |
Add "const" to many internal
const tables, so those will be
put by the C-compiler in the
TEXT segment in stead of the
DATA segment. This makes those
table sharable in shared libraries.
Diffstat (limited to 'generic/tk.h')
-rw-r--r-- | generic/tk.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tk.h b/generic/tk.h index 7fc6677..d8eb505 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.117 2008/09/03 06:01:51 dgp Exp $ + * RCS: @(#) $Id: tk.h,v 1.118 2008/10/17 23:18:37 nijtmans Exp $ */ #ifndef _TK @@ -1006,7 +1006,7 @@ typedef void Tk_ItemDCharsProc (Tk_Canvas canvas, Tk_Item *itemPtr, #ifndef __NO_OLD_CONFIG typedef struct Tk_ItemType { - 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 { - 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. */ |