summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authornijtmans <nijtmans>2010-05-31 08:54:14 (GMT)
committernijtmans <nijtmans>2010-05-31 08:54:14 (GMT)
commit3de22ff5a384e6d63befbefeb166e2b60bd419b1 (patch)
treef05920f7861dea83ee1a1df44b1bae4c4bc8fa0b /generic
parent2cfdeb547ac56dfec52582059f7105b800d527ee (diff)
downloadtcl-3de22ff5a384e6d63befbefeb166e2b60bd419b1.zip
tcl-3de22ff5a384e6d63befbefeb166e2b60bd419b1.tar.gz
tcl-3de22ff5a384e6d63befbefeb166e2b60bd419b1.tar.bz2
Eliminate some casts to (Tcl_HashTable *)
Diffstat (limited to 'generic')
-rw-r--r--generic/tclExecute.c4
-rw-r--r--generic/tclVar.c8
2 files changed, 6 insertions, 6 deletions
diff --git a/generic/tclExecute.c b/generic/tclExecute.c
index 7a69673..aae542a 100644
--- a/generic/tclExecute.c
+++ b/generic/tclExecute.c
@@ -14,7 +14,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclExecute.c,v 1.483 2010/05/28 08:30:49 dkf Exp $
+ * RCS: @(#) $Id: tclExecute.c,v 1.484 2010/05/31 08:54:15 nijtmans Exp $
*/
#include "tclInt.h"
@@ -232,7 +232,7 @@ VarHashCreateVar(
Tcl_Obj *key,
int *newPtr)
{
- Tcl_HashEntry *hPtr = Tcl_CreateHashEntry((Tcl_HashTable *) tablePtr,
+ Tcl_HashEntry *hPtr = Tcl_CreateHashEntry(&tablePtr->table,
(char *) key, newPtr);
if (!hPtr) {
diff --git a/generic/tclVar.c b/generic/tclVar.c
index 9b2a11b..c07cc6f 100644
--- a/generic/tclVar.c
+++ b/generic/tclVar.c
@@ -16,7 +16,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclVar.c,v 1.198 2010/03/05 14:34:04 dkf Exp $
+ * RCS: @(#) $Id: tclVar.c,v 1.199 2010/05/31 08:54:14 nijtmans Exp $
*/
#include "tclInt.h"
@@ -54,7 +54,7 @@ VarHashCreateVar(
Tcl_Obj *key,
int *newPtr)
{
- Tcl_HashEntry *hPtr = Tcl_CreateHashEntry((Tcl_HashTable *) tablePtr,
+ Tcl_HashEntry *hPtr = Tcl_CreateHashEntry(&tablePtr->table,
(char *) key, newPtr);
if (hPtr) {
@@ -74,7 +74,7 @@ VarHashCreateVar(
Tcl_DeleteHashEntry(&(((VarInHash *) varPtr)->entry))
#define VarHashFirstEntry(tablePtr, searchPtr) \
- Tcl_FirstHashEntry((Tcl_HashTable *) (tablePtr), (searchPtr))
+ Tcl_FirstHashEntry(&(tablePtr)->table, (searchPtr))
#define VarHashNextEntry(searchPtr) \
Tcl_NextHashEntry((searchPtr))
@@ -110,7 +110,7 @@ VarHashNextVar(
(((VarInHash *)(varPtr))->entry.key.objPtr)
#define VarHashDeleteTable(tablePtr) \
- Tcl_DeleteHashTable((Tcl_HashTable *) (tablePtr))
+ Tcl_DeleteHashTable(&(tablePtr)->table)
/*
* The strings below are used to indicate what went wrong when a variable