diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2017-06-06 17:51:12 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2017-06-06 17:51:12 (GMT) |
commit | aa9f62da23ab5e38de116429abb7fcfcc0504c4c (patch) | |
tree | 582b3c47a3c3d3b321ee8e319415e761bec0114c /generic/tclDictObj.c | |
parent | 9c05979998520bc1162e96cdd7a6de1011ff548c (diff) | |
download | tcl-aa9f62da23ab5e38de116429abb7fcfcc0504c4c.zip tcl-aa9f62da23ab5e38de116429abb7fcfcc0504c4c.tar.gz tcl-aa9f62da23ab5e38de116429abb7fcfcc0504c4c.tar.bz2 |
Expose some of the core variable access APIs.
dkf_expose_ptrgetvar_8_6
(Cherrypick from [b4dfc30083])
Diffstat (limited to 'generic/tclDictObj.c')
-rw-r--r-- | generic/tclDictObj.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tclDictObj.c b/generic/tclDictObj.c index 87fb333..d15255f 100644 --- a/generic/tclDictObj.c +++ b/generic/tclDictObj.c @@ -3535,7 +3535,7 @@ TclDictWithFinish( * If the dictionary variable doesn't exist, drop everything silently. */ - dictPtr = TclPtrGetVar(interp, varPtr, arrayPtr, part1Ptr, part2Ptr, + dictPtr = TclPtrGetVarIdx(interp, varPtr, arrayPtr, part1Ptr, part2Ptr, TCL_LEAVE_ERR_MSG, index); if (dictPtr == NULL) { return TCL_OK; @@ -3618,8 +3618,8 @@ TclDictWithFinish( * Write back the outermost dictionary to the variable. */ - if (TclPtrSetVar(interp, varPtr, arrayPtr, part1Ptr, part2Ptr, dictPtr, - TCL_LEAVE_ERR_MSG, index) == NULL) { + if (TclPtrSetVarIdx(interp, varPtr, arrayPtr, part1Ptr, part2Ptr, + dictPtr, TCL_LEAVE_ERR_MSG, index) == NULL) { if (allocdict) { TclDecrRefCount(dictPtr); } |