We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7e01424 + 07df807 commit 4c43937Copy full SHA for 4c43937
generic/tclExecute.c
@@ -155,22 +155,17 @@ typedef struct {
155
((Var *) ((char *)hPtr - offsetof(VarInHash, entry)))
156
157
static inline Var *
158
-VarHashCreateVar(
+VarHashFindVar(
159
TclVarHashTable *tablePtr,
160
- Tcl_Obj *key,
161
- int *newPtr)
+ Tcl_Obj *key)
162
{
163
- Tcl_HashEntry *hPtr = Tcl_CreateHashEntry(&tablePtr->table,
164
- key, newPtr);
165
-
+ Tcl_HashEntry *hPtr = Tcl_FindHashEntry(&tablePtr->table,
+ key);
166
if (!hPtr) {
167
return NULL;
168
}
169
return VarHashGetValue(hPtr);
170
171
172
-#define VarHashFindVar(tablePtr, key) \
173
- VarHashCreateVar((tablePtr), (key), NULL)
174
175
/*
176
* The new macro for ending an instruction; note that a reasonable C-optimiser
0 commit comments