summaryrefslogtreecommitdiffstats
path: root/generic/tkPack.c
diff options
context:
space:
mode:
authornijtmans <nijtmans>2009-02-03 23:55:47 (GMT)
committernijtmans <nijtmans>2009-02-03 23:55:47 (GMT)
commit4b9f05fc68f4d1a561c16fcb44c31af46bedb3d6 (patch)
treeaa98658e57c70b6cb91802ffef5779126e54b6b5 /generic/tkPack.c
parentc9098b1706ee463447e128156b9baaf23fa4f0a9 (diff)
downloadtk-4b9f05fc68f4d1a561c16fcb44c31af46bedb3d6.zip
tk-4b9f05fc68f4d1a561c16fcb44c31af46bedb3d6.tar.gz
tk-4b9f05fc68f4d1a561c16fcb44c31af46bedb3d6.tar.bz2
- eliminate some unnessary type casts
- some internal const decorations - spacing
Diffstat (limited to 'generic/tkPack.c')
-rw-r--r--generic/tkPack.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/generic/tkPack.c b/generic/tkPack.c
index b1dcd6a..334afdb 100644
--- a/generic/tkPack.c
+++ b/generic/tkPack.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: tkPack.c,v 1.32 2008/12/07 16:35:44 das Exp $
+ * RCS: @(#) $Id: tkPack.c,v 1.33 2009/02/03 23:55:47 nijtmans Exp $
*/
#include "tkInt.h"
@@ -190,7 +190,7 @@ Tk_PackObjCmd(
Tcl_Obj *const objv[]) /* Argument objects. */
{
Tk_Window tkwin = clientData;
- char *argv2;
+ const char *argv2;
static const char *const optionStrings[] = {
/* after, append, before and unpack are deprecated */
"after", "append", "before", "unpack",
@@ -201,7 +201,7 @@ Tk_PackObjCmd(
int index;
if (objc >= 2) {
- char *string = Tcl_GetString(objv[1]);
+ const char *string = Tcl_GetString(objv[1]);
if (string[0] == '.') {
return ConfigureSlaves(interp, tkwin, objc-1, objv+1);
@@ -1135,7 +1135,7 @@ PackAfter(
packPtr->flags |= OLD_STYLE;
for (index = 0 ; index < optionCount; index++) {
Tcl_Obj *curOptPtr = options[index];
- char *curOpt = Tcl_GetStringFromObj(curOptPtr, &length);
+ const char *curOpt = Tcl_GetStringFromObj(curOptPtr, &length);
c = curOpt[0];
@@ -1459,7 +1459,7 @@ ConfigureSlaves(
Packer *masterPtr, *slavePtr, *prevPtr, *otherPtr;
Tk_Window other, slave, parent, ancestor;
int i, j, numWindows, tmp, positionGiven;
- char *string;
+ const char *string;
static const char *const optionStrings[] = {
"-after", "-anchor", "-before", "-expand", "-fill",
"-in", "-ipadx", "-ipady", "-padx", "-pady", "-side", NULL };