summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--generic/tclCmdIL.c9
-rw-r--r--generic/tclListObj.c9
-rw-r--r--generic/tclUtil.c6
3 files changed, 8 insertions, 16 deletions
diff --git a/generic/tclCmdIL.c b/generic/tclCmdIL.c
index 37c9822..83320cd 100644
--- a/generic/tclCmdIL.c
+++ b/generic/tclCmdIL.c
@@ -2638,8 +2638,7 @@ Tcl_LpopObjCmd(
/* empty list, throw the same error as with index "end" */
Tcl_SetObjResult(interp, Tcl_NewStringObj(
"index \"end\" out of range", -1));
- Tcl_SetErrorCode(interp, "TCL", "VALUE", "INDEX"
- "OUTOFRANGE", (char *)NULL);
+ Tcl_SetErrorCode(interp, "TCL", "VALUE", "INDEX", "OUTOFRANGE", (char *)NULL);
return TCL_ERROR;
}
@@ -3497,8 +3496,7 @@ Tcl_LsearchObjCmd(
Tcl_SetObjResult(interp, Tcl_ObjPrintf(
"index \"%s\" out of range",
TclGetString(indices[j])));
- Tcl_SetErrorCode(interp, "TCL", "VALUE", "INDEX"
- "OUTOFRANGE", (char *)NULL);
+ Tcl_SetErrorCode(interp, "TCL", "VALUE", "INDEX", "OUTOFRANGE", (char *)NULL);
result = TCL_ERROR;
}
if (result == TCL_ERROR) {
@@ -4640,8 +4638,7 @@ Tcl_LsortObjCmd(
Tcl_SetObjResult(interp, Tcl_ObjPrintf(
"index \"%s\" out of range",
TclGetString(indexv[j])));
- Tcl_SetErrorCode(interp, "TCL", "VALUE", "INDEX"
- "OUTOFRANGE", (char *)NULL);
+ Tcl_SetErrorCode(interp, "TCL", "VALUE", "INDEX", "OUTOFRANGE", (char *)NULL);
result = TCL_ERROR;
}
if (result == TCL_ERROR) {
diff --git a/generic/tclListObj.c b/generic/tclListObj.c
index 1bb3587..a8e16d4 100644
--- a/generic/tclListObj.c
+++ b/generic/tclListObj.c
@@ -2970,10 +2970,8 @@ TclLsetFlat(
/* ...the index points outside the sublist. */
if (interp != NULL) {
Tcl_SetObjResult(interp, Tcl_ObjPrintf(
- "index \"%s\" out of range",
- Tcl_GetString(indexArray[-1])));
- Tcl_SetErrorCode(interp,
- "TCL", "VALUE", "INDEX" "OUTOFRANGE", (void *)NULL);
+ "index \"%s\" out of range", TclGetString(indexArray[-1])));
+ Tcl_SetErrorCode(interp, "TCL", "VALUE", "INDEX", "OUTOFRANGE", (char *)NULL);
}
result = TCL_ERROR;
break;
@@ -3163,8 +3161,7 @@ TclListObjSetElement(
if (interp != NULL) {
Tcl_SetObjResult(interp, Tcl_ObjPrintf(
"index \"%" TCL_SIZE_MODIFIER "d\" out of range", index));
- Tcl_SetErrorCode(interp, "TCL", "VALUE", "INDEX",
- "OUTOFRANGE", (void *)NULL);
+ Tcl_SetErrorCode(interp, "TCL", "VALUE", "INDEX", "OUTOFRANGE", (char *)NULL);
}
return TCL_ERROR;
}
diff --git a/generic/tclUtil.c b/generic/tclUtil.c
index e2c96a9..c2fa64f 100644
--- a/generic/tclUtil.c
+++ b/generic/tclUtil.c
@@ -3921,10 +3921,8 @@ TclIndexEncode(
rangeerror:
if (interp) {
- Tcl_SetObjResult(
- interp,
- Tcl_ObjPrintf("index \"%s\" out of range", TclGetString(objPtr)));
- Tcl_SetErrorCode(interp, "TCL", "VALUE", "INDEX", "OUTOFRANGE", (void *)NULL);
+ Tcl_SetObjResult(interp, Tcl_ObjPrintf("index \"%s\" out of range", TclGetString(objPtr)));
+ Tcl_SetErrorCode(interp, "TCL", "VALUE", "INDEX", "OUTOFRANGE", (char *)NULL);
}
return TCL_ERROR;
}