summaryrefslogtreecommitdiffstats
path: root/generic/tclVar.c
diff options
context:
space:
mode:
authorhobbs <hobbs@noemail.net>2000-11-15 22:19:56 (GMT)
committerhobbs <hobbs@noemail.net>2000-11-15 22:19:56 (GMT)
commita9b828e7f52d3779feffdd82518f61c14185a566 (patch)
tree4542ae12246afbdc8a2efe02c0f50a3710846c0d /generic/tclVar.c
parent7d79103fd2a737cd15671d0dbc6c8fb092df9ec7 (diff)
downloadtcl-a9b828e7f52d3779feffdd82518f61c14185a566.zip
tcl-a9b828e7f52d3779feffdd82518f61c14185a566.tar.gz
tcl-a9b828e7f52d3779feffdd82518f61c14185a566.tar.bz2
* generic/tclVar.c (TclLookupVar): reverted fix below as it broke
all other array unset error reporting. Bug-119192 is still open. FossilOrigin-Name: c281b485f69821e66b11edffdaab1c579e1c4953
Diffstat (limited to 'generic/tclVar.c')
-rw-r--r--generic/tclVar.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/generic/tclVar.c b/generic/tclVar.c
index feb319d..6b32fe3 100644
--- a/generic/tclVar.c
+++ b/generic/tclVar.c
@@ -14,7 +14,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclVar.c,v 1.25 2000/11/15 14:09:01 dkf Exp $
+ * RCS: @(#) $Id: tclVar.c,v 1.26 2000/11/15 22:19:56 hobbs Exp $
*/
#include "tclInt.h"
@@ -262,13 +262,13 @@ TclLookupVar(interp, part1, part2, flags, msg, createPart1, createPart2,
if (varNsPtr == NULL) {
if (flags & TCL_LEAVE_ERR_MSG) {
- VarErrMsg(interp, part1, elName, msg, badNamespace);
+ VarErrMsg(interp, part1, part2, msg, badNamespace);
}
goto done;
}
if (tail == NULL) {
if (flags & TCL_LEAVE_ERR_MSG) {
- VarErrMsg(interp, part1, elName, msg, missingName);
+ VarErrMsg(interp, part1, part2, msg, missingName);
}
goto done;
}
@@ -279,7 +279,7 @@ TclLookupVar(interp, part1, part2, flags, msg, createPart1, createPart2,
varPtr->nsPtr = varNsPtr;
} else { /* var wasn't found and not to create it */
if (flags & TCL_LEAVE_ERR_MSG) {
- VarErrMsg(interp, part1, elName, msg, noSuchVar);
+ VarErrMsg(interp, part1, part2, msg, noSuchVar);
}
goto done;
}
@@ -329,7 +329,7 @@ TclLookupVar(interp, part1, part2, flags, msg, createPart1, createPart2,
}
if (hPtr == NULL) {
if (flags & TCL_LEAVE_ERR_MSG) {
- VarErrMsg(interp, part1, elName, msg, noSuchVar);
+ VarErrMsg(interp, part1, part2, msg, noSuchVar);
}
goto done;
}
@@ -370,7 +370,7 @@ TclLookupVar(interp, part1, part2, flags, msg, createPart1, createPart2,
if (TclIsVarUndefined(varPtr) && !TclIsVarArrayElement(varPtr)) {
if (!createPart1) {
if (flags & TCL_LEAVE_ERR_MSG) {
- VarErrMsg(interp, part1, elName, msg, noSuchVar);
+ VarErrMsg(interp, part1, part2, msg, noSuchVar);
}
varPtr = NULL;
goto done;
@@ -382,7 +382,7 @@ TclLookupVar(interp, part1, part2, flags, msg, createPart1, createPart2,
*/
if ((varPtr->flags & VAR_IN_HASHTABLE) && (varPtr->hPtr == NULL)) {
if (flags & TCL_LEAVE_ERR_MSG) {
- VarErrMsg(interp, part1, elName, msg, danglingVar);
+ VarErrMsg(interp, part1, part2, msg, danglingVar);
}
varPtr = NULL;
goto done;
@@ -395,7 +395,7 @@ TclLookupVar(interp, part1, part2, flags, msg, createPart1, createPart2,
Tcl_InitHashTable(varPtr->value.tablePtr, TCL_STRING_KEYS);
} else if (!TclIsVarArray(varPtr)) {
if (flags & TCL_LEAVE_ERR_MSG) {
- VarErrMsg(interp, part1, elName, msg, needArray);
+ VarErrMsg(interp, part1, part2, msg, needArray);
}
varPtr = NULL;
goto done;
@@ -426,7 +426,7 @@ TclLookupVar(interp, part1, part2, flags, msg, createPart1, createPart2,
}
if (hPtr == NULL) {
if (flags & TCL_LEAVE_ERR_MSG) {
- VarErrMsg(interp, part1, elName, msg, noSuchElement);
+ VarErrMsg(interp, part1, part2, msg, noSuchElement);
}
varPtr = NULL;
goto done;