Skip to content

Commit 4c43937

Browse files
author
jan.nijtmans
committed
Merge 9.0
2 parents 7e01424 + 07df807 commit 4c43937

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

generic/tclExecute.c

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -155,22 +155,17 @@ typedef struct {
155155
((Var *) ((char *)hPtr - offsetof(VarInHash, entry)))
156156

157157
static inline Var *
158-
VarHashCreateVar(
158+
VarHashFindVar(
159159
TclVarHashTable *tablePtr,
160-
Tcl_Obj *key,
161-
int *newPtr)
160+
Tcl_Obj *key)
162161
{
163-
Tcl_HashEntry *hPtr = Tcl_CreateHashEntry(&tablePtr->table,
164-
key, newPtr);
165-
162+
Tcl_HashEntry *hPtr = Tcl_FindHashEntry(&tablePtr->table,
163+
key);
166164
if (!hPtr) {
167165
return NULL;
168166
}
169167
return VarHashGetValue(hPtr);
170168
}
171-
172-
#define VarHashFindVar(tablePtr, key) \
173-
VarHashCreateVar((tablePtr), (key), NULL)
174169

175170
/*
176171
* The new macro for ending an instruction; note that a reasonable C-optimiser

0 commit comments

Comments
 (0)