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/tkPlace.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/tkPlace.c')
-rw-r--r-- | generic/tkPlace.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/generic/tkPlace.c b/generic/tkPlace.c index 007c052..649d490 100644 --- a/generic/tkPlace.c +++ b/generic/tkPlace.c @@ -10,7 +10,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkPlace.c,v 1.25 2008/04/27 22:38:56 dkf Exp $ + * RCS: @(#) $Id: tkPlace.c,v 1.26 2008/10/17 23:18:37 nijtmans Exp $ */ #include "tkInt.h" @@ -215,7 +215,7 @@ Tk_PlaceObjCmd( char *string; TkDisplay *dispPtr; Tk_OptionTable optionTable; - static const char *optionStrings[] = { + static const char *const optionStrings[] = { "configure", "forget", "info", "slaves", NULL }; enum options { PLACE_CONFIGURE, PLACE_FORGET, PLACE_INFO, PLACE_SLAVES }; @@ -509,7 +509,7 @@ UnlinkSlave( } } } - + if (masterPtr->abortPtr != NULL) { *masterPtr->abortPtr = 1; } @@ -861,11 +861,11 @@ RecomputePlacement( * placement operation. */ masterPtr->flags &= ~PARENT_RECONFIG_PENDING; - + /* * Abort any nested call to RecomputePlacement for this window, since * we'll do everything necessary here, and set up so this call - * can be aborted if necessary. + * can be aborted if necessary. */ if (masterPtr->abortPtr != NULL) { |