summaryrefslogtreecommitdiffstats
path: root/generic/tclDictObj.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2017-06-08 20:49:51 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2017-06-08 20:49:51 (GMT)
commit6e4aac3d59436016f5fe349d8e8c7e141640c425 (patch)
tree6ce62fb115b38baad8c346645a78418ca0182597 /generic/tclDictObj.c
parent381ed7be7a4f2a552dd98af85e52f489f1f077ba (diff)
parentf019737860823b97cfde68d64a5175fa21c3a967 (diff)
downloadtcl-6e4aac3d59436016f5fe349d8e8c7e141640c425.zip
tcl-6e4aac3d59436016f5fe349d8e8c7e141640c425.tar.gz
tcl-6e4aac3d59436016f5fe349d8e8c7e141640c425.tar.bz2
Make read and write operations on Tcl_Var handles available in tclInt API.
Diffstat (limited to 'generic/tclDictObj.c')
-rw-r--r--generic/tclDictObj.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tclDictObj.c b/generic/tclDictObj.c
index 970978f..c82f88a 100644
--- a/generic/tclDictObj.c
+++ b/generic/tclDictObj.c
@@ -3562,7 +3562,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;
@@ -3645,8 +3645,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);
}