diff options
author | nijtmans <nijtmans> | 2008-10-17 23:18:37 (GMT) |
---|---|---|
committer | nijtmans <nijtmans> | 2008-10-17 23:18:37 (GMT) |
commit | f9bdfaa967982fbe680e45cd3a3f9873a71ebe8f (patch) | |
tree | 44f5a027c41b824d344a2113ff678351840eaaec /generic/tk.h | |
parent | 803826de028dcbb2cb0ff3392c7801bf3f5c83e9 (diff) | |
download | tk-f9bdfaa967982fbe680e45cd3a3f9873a71ebe8f.zip tk-f9bdfaa967982fbe680e45cd3a3f9873a71ebe8f.tar.gz tk-f9bdfaa967982fbe680e45cd3a3f9873a71ebe8f.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. */ |