summaryrefslogtreecommitdiffstats
path: root/generic/tkPanedWindow.c
diff options
context:
space:
mode:
authornijtmans <nijtmans@noemail.net>2010-02-13 13:47:48 (GMT)
committernijtmans <nijtmans@noemail.net>2010-02-13 13:47:48 (GMT)
commite219e22b792ba07eb8da4e3b6307bded30b611a0 (patch)
treed5a35b36ffd02f3cb0421a640eda7ee6ee229478 /generic/tkPanedWindow.c
parentcaf4ec2a5761622fe0413608098f925d7dce274c (diff)
downloadtk-e219e22b792ba07eb8da4e3b6307bded30b611a0.zip
tk-e219e22b792ba07eb8da4e3b6307bded30b611a0.tar.gz
tk-e219e22b792ba07eb8da4e3b6307bded30b611a0.tar.bz2
use -pipe for gcc on win32 (mingw/cygwin)
make sure that TkpCmapStressed is exported clean up unused Tk_CreatePhotoOption Make more internal arrays "const" FossilOrigin-Name: 9cc7f1a2331c199de4eed2503923906f3935f0a7
Diffstat (limited to 'generic/tkPanedWindow.c')
-rw-r--r--generic/tkPanedWindow.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/generic/tkPanedWindow.c b/generic/tkPanedWindow.c
index 046555c..adf2f2b 100644
--- a/generic/tkPanedWindow.c
+++ b/generic/tkPanedWindow.c
@@ -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: tkPanedWindow.c,v 1.40 2010/01/18 20:43:38 nijtmans Exp $
+ * RCS: @(#) $Id: tkPanedWindow.c,v 1.41 2010/02/13 13:47:49 nijtmans Exp $
*/
#include "default.h"
@@ -2316,22 +2316,22 @@ GetSticky(
* sticky value. */
{
int sticky = *(int *)(recordPtr + internalOffset);
- static char buffer[5];
- int count = 0;
+ char buffer[5];
+ char *p = &buffer[0];
if (sticky & STICK_NORTH) {
- buffer[count++] = 'n';
+ *p++ = 'n';
}
if (sticky & STICK_EAST) {
- buffer[count++] = 'e';
+ *p++ = 'e';
}
if (sticky & STICK_SOUTH) {
- buffer[count++] = 's';
+ *p++ = 's';
}
if (sticky & STICK_WEST) {
- buffer[count++] = 'w';
+ *p++ = 'w';
}
- buffer[count] = '\0';
+ *p = '\0';
return Tcl_NewStringObj(buffer, -1);
}