Fossil SCM

For the TH1 unset command, simplify removal of variable from the call frame.

mistachkin 2014-01-15 01:26 trunk
Commit 95292a13fa083dac2bf1b53765671873c462fdac
1 file changed +1 -1
+1 -1
--- src/th.c
+++ src/th.c
@@ -1338,11 +1338,11 @@
13381338
Th_Variable *pValue2 = find.pValueEntry->pData;
13391339
Th_HashFind(interp, pValue2->pHash, find.zElem, find.nElem, -1);
13401340
}
13411341
}
13421342
if( !find.zElem ){
1343
- thFindValue(interp, zVar, nVar, -1, 1, 1, 0);
1343
+ Th_HashFind(interp, interp->pFrame->paVar, zVar, nVar, -1);
13441344
}
13451345
return rc;
13461346
}
13471347
13481348
/*
13491349
--- src/th.c
+++ src/th.c
@@ -1338,11 +1338,11 @@
1338 Th_Variable *pValue2 = find.pValueEntry->pData;
1339 Th_HashFind(interp, pValue2->pHash, find.zElem, find.nElem, -1);
1340 }
1341 }
1342 if( !find.zElem ){
1343 thFindValue(interp, zVar, nVar, -1, 1, 1, 0);
1344 }
1345 return rc;
1346 }
1347
1348 /*
1349
--- src/th.c
+++ src/th.c
@@ -1338,11 +1338,11 @@
1338 Th_Variable *pValue2 = find.pValueEntry->pData;
1339 Th_HashFind(interp, pValue2->pHash, find.zElem, find.nElem, -1);
1340 }
1341 }
1342 if( !find.zElem ){
1343 Th_HashFind(interp, interp->pFrame->paVar, zVar, nVar, -1);
1344 }
1345 return rc;
1346 }
1347
1348 /*
1349

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button