summaryrefslogtreecommitdiffstats
path: root/generic/tclDictObj.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2024-05-27 21:04:39 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2024-05-27 21:04:39 (GMT)
commitb727df70e6804bf6a51a40e69cde2ff1a61ce570 (patch)
treea1a470de893f0f36bb2bf0b879c9e3689876e5a1 /generic/tclDictObj.c
parentf8c457b80f302a4587d875329a789e0906b13989 (diff)
parent34acc36d873d6b1ec6a8cd505af4491dfad7fd57 (diff)
downloadtcl-b727df70e6804bf6a51a40e69cde2ff1a61ce570.zip
tcl-b727df70e6804bf6a51a40e69cde2ff1a61ce570.tar.gz
tcl-b727df70e6804bf6a51a40e69cde2ff1a61ce570.tar.bz2
Another round of sentinel improvements
Diffstat (limited to 'generic/tclDictObj.c')
-rw-r--r--generic/tclDictObj.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/generic/tclDictObj.c b/generic/tclDictObj.c
index 01a8aaa..6059854 100644
--- a/generic/tclDictObj.c
+++ b/generic/tclDictObj.c
@@ -727,7 +727,7 @@ SetDictFromAny(
if (interp != NULL) {
Tcl_SetObjResult(interp, Tcl_NewStringObj(
"missing value to go with key", -1));
- Tcl_SetErrorCode(interp, "TCL", "VALUE", "DICTIONARY", (void *)NULL);
+ Tcl_SetErrorCode(interp, "TCL", "VALUE", "DICTIONARY", (char *)NULL);
}
errorInFindDictElement:
DeleteChainTable(dict);
@@ -822,7 +822,7 @@ TclTraceDictPath(
"key \"%s\" not known in dictionary",
TclGetString(keyv[i])));
Tcl_SetErrorCode(interp, "TCL", "LOOKUP", "DICT",
- TclGetString(keyv[i]), (void *)NULL);
+ TclGetString(keyv[i]), (char *)NULL);
}
return NULL;
}
@@ -1761,7 +1761,7 @@ DictGetCmd(
"key \"%s\" not known in dictionary",
TclGetString(objv[objc-1])));
Tcl_SetErrorCode(interp, "TCL", "LOOKUP", "DICT",
- TclGetString(objv[objc-1]), (void *)NULL);
+ TclGetString(objv[objc-1]), (char *)NULL);
return TCL_ERROR;
}
Tcl_SetObjResult(interp, valuePtr);
@@ -2692,7 +2692,7 @@ DictForNRCmd(
if (varc != 2) {
Tcl_SetObjResult(interp, Tcl_NewStringObj(
"must have exactly two variable names", -1));
- Tcl_SetErrorCode(interp, "TCL", "SYNTAX", "dict", "for", (void *)NULL);
+ Tcl_SetErrorCode(interp, "TCL", "SYNTAX", "dict", "for", (char *)NULL);
return TCL_ERROR;
}
searchPtr = (Tcl_DictSearch *)TclStackAlloc(interp, sizeof(Tcl_DictSearch));
@@ -2887,7 +2887,7 @@ DictMapNRCmd(
if (varc != 2) {
Tcl_SetObjResult(interp, Tcl_NewStringObj(
"must have exactly two variable names", -1));
- Tcl_SetErrorCode(interp, "TCL", "SYNTAX", "dict", "map", (void *)NULL);
+ Tcl_SetErrorCode(interp, "TCL", "SYNTAX", "dict", "map", (char *)NULL);
return TCL_ERROR;
}
storagePtr = (DictMapStorage *)TclStackAlloc(interp, sizeof(DictMapStorage));
@@ -3327,7 +3327,7 @@ DictFilterCmd(
if (varc != 2) {
Tcl_SetObjResult(interp, Tcl_NewStringObj(
"must have exactly two variable names", -1));
- Tcl_SetErrorCode(interp, "TCL", "SYNTAX", "dict", "filter", (void *)NULL);
+ Tcl_SetErrorCode(interp, "TCL", "SYNTAX", "dict", "filter", (char *)NULL);
return TCL_ERROR;
}
keyVarObj = varv[0];