summaryrefslogtreecommitdiffstats
path: root/generic/tk3d.c
diff options
context:
space:
mode:
authordkf <dkf@noemail.net>2005-11-17 10:57:34 (GMT)
committerdkf <dkf@noemail.net>2005-11-17 10:57:34 (GMT)
commit2b01eeecba772490f8267dff8406840460eea975 (patch)
tree551a8431a7603d8f0d73f739344653f03f7c3a35 /generic/tk3d.c
parent4a105adb0f3fdf87cc722f6ef3533274f6e7bbd4 (diff)
downloadtk-2b01eeecba772490f8267dff8406840460eea975.zip
tk-2b01eeecba772490f8267dff8406840460eea975.tar.gz
tk-2b01eeecba772490f8267dff8406840460eea975.tar.bz2
Lots of ANSIfying of function decls.
Also a few spots where code has been cleaned up more completely. FossilOrigin-Name: 2a0a22abb40373f8ef0be9a59e98a390b59ee72f
Diffstat (limited to 'generic/tk3d.c')
-rw-r--r--generic/tk3d.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/generic/tk3d.c b/generic/tk3d.c
index f85d54c..cee599f 100644
--- a/generic/tk3d.c
+++ b/generic/tk3d.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: tk3d.c,v 1.15 2005/11/04 11:52:50 dkf Exp $
+ * RCS: @(#) $Id: tk3d.c,v 1.16 2005/11/17 10:57:35 dkf Exp $
*/
#include "tk3d.h"
@@ -189,7 +189,7 @@ Tk_Get3DBorder(
{
Tcl_HashEntry *hashPtr;
TkBorder *borderPtr, *existingBorderPtr;
- int new;
+ int isNew;
XGCValues gcValues;
XColor *bgColorPtr;
TkDisplay *dispPtr;
@@ -200,8 +200,8 @@ Tk_Get3DBorder(
BorderInit(dispPtr);
}
- hashPtr = Tcl_CreateHashEntry(&dispPtr->borderTable, colorName, &new);
- if (!new) {
+ hashPtr = Tcl_CreateHashEntry(&dispPtr->borderTable, colorName, &isNew);
+ if (!isNew) {
existingBorderPtr = (TkBorder *) Tcl_GetHashValue(hashPtr);
for (borderPtr = existingBorderPtr; borderPtr != NULL;
borderPtr = borderPtr->nextPtr) {
@@ -221,7 +221,7 @@ Tk_Get3DBorder(
bgColorPtr = Tk_GetColor(interp, tkwin, colorName);
if (bgColorPtr == NULL) {
- if (new) {
+ if (isNew) {
Tcl_DeleteHashEntry(hashPtr);
}
return NULL;