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/tkImgPhoto.c | |
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/tkImgPhoto.c')
-rw-r--r-- | generic/tkImgPhoto.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/generic/tkImgPhoto.c b/generic/tkImgPhoto.c index 993ae46..b09682d 100644 --- a/generic/tkImgPhoto.c +++ b/generic/tkImgPhoto.c @@ -17,7 +17,7 @@ * Department of Computer Science, * Australian National University. * - * RCS: @(#) $Id: tkImgPhoto.c,v 1.82 2008/10/05 18:22:21 dkf Exp $ + * RCS: @(#) $Id: tkImgPhoto.c,v 1.83 2008/10/17 23:18:37 nijtmans Exp $ */ #include "tkImgPhoto.h" @@ -398,7 +398,7 @@ ImgPhotoCmd( int objc, /* Number of arguments. */ Tcl_Obj *const objv[]) /* Argument objects. */ { - static const char *photoOptions[] = { + static const char *const photoOptions[] = { "blank", "cget", "configure", "copy", "data", "get", "put", "read", "redither", "transparency", "write", NULL }; @@ -1125,7 +1125,7 @@ ImgPhotoCmd( return TCL_OK; case PHOTO_TRANS: { - static const char *photoTransOptions[] = { + static const char *const photoTransOptions[] = { "get", "set", NULL }; enum transOptions { @@ -1510,7 +1510,7 @@ ParseSubcommandOptions( * constants. */ - static const char *compositingRules[] = { + static const char *const compositingRules[] = { "overlay", "set", NULL }; |