summaryrefslogtreecommitdiffstats
path: root/generic/tclInterp.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2024-04-04 11:44:49 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2024-04-04 11:44:49 (GMT)
commit925a24a48c5e871795429181c391c43fcd1f17c1 (patch)
tree96c798290148ac7d237058f68a1f177fe222b7b6 /generic/tclInterp.c
parent9f0bf96467211b1dc20fd2d1fbc9702a6831ee24 (diff)
parent258d87333264628d6ff1f159f2c92566f609d1a9 (diff)
downloadtcl-925a24a48c5e871795429181c391c43fcd1f17c1.zip
tcl-925a24a48c5e871795429181c391c43fcd1f17c1.tar.gz
tcl-925a24a48c5e871795429181c391c43fcd1f17c1.tar.bz2
Merge 8.6
Diffstat (limited to 'generic/tclInterp.c')
-rw-r--r--generic/tclInterp.c60
1 files changed, 30 insertions, 30 deletions
diff --git a/generic/tclInterp.c b/generic/tclInterp.c
index 5abda57..95b9215 100644
--- a/generic/tclInterp.c
+++ b/generic/tclInterp.c
@@ -795,7 +795,7 @@ NRInterpCmd(
childPtr = NULL;
last = 0;
for (i = 2; i < objc; i++) {
- if ((last == 0) && (Tcl_GetString(objv[i])[0] == '-')) {
+ if ((last == 0) && (TclGetString(objv[i])[0] == '-')) {
if (Tcl_GetIndexFromObj(interp, objv[i], createOptions,
"option", 0, &index) != TCL_OK) {
return TCL_ERROR;
@@ -869,7 +869,7 @@ NRInterpCmd(
Tcl_SetObjResult(interp, Tcl_NewStringObj(
"cannot delete the current interpreter", -1));
Tcl_SetErrorCode(interp, "TCL", "OPERATION", "INTERP",
- "DELETESELF", (void *)NULL);
+ "DELETESELF", (char *)NULL);
return TCL_ERROR;
}
iiPtr = (InterpInfo *) ((Interp *) childInterp)->interpInfo;
@@ -1113,16 +1113,16 @@ NRInterpCmd(
"alias \"%s\" in path \"%s\" not found",
aliasName, TclGetString(objv[2])));
Tcl_SetErrorCode(interp, "TCL", "LOOKUP", "ALIAS", aliasName,
- (void *)NULL);
+ (char *)NULL);
return TCL_ERROR;
}
aliasPtr = (Alias *)Tcl_GetHashValue(hPtr);
if (Tcl_GetInterpPath(interp, aliasPtr->targetInterp) != TCL_OK) {
Tcl_SetObjResult(interp, Tcl_ObjPrintf(
"target interpreter for alias \"%s\" in path \"%s\" is "
- "not my descendant", aliasName, Tcl_GetString(objv[2])));
+ "not my descendant", aliasName, TclGetString(objv[2])));
Tcl_SetErrorCode(interp, "TCL", "OPERATION", "INTERP",
- "TARGETSHROUDED", (void *)NULL);
+ "TARGETSHROUDED", (char *)NULL);
return TCL_ERROR;
}
return TCL_OK;
@@ -1302,7 +1302,7 @@ Tcl_GetAlias(
if (hPtr == NULL) {
Tcl_SetObjResult(interp, Tcl_ObjPrintf(
"alias \"%s\" not found", aliasName));
- Tcl_SetErrorCode(interp, "TCL", "LOOKUP", "ALIAS", aliasName, (void *)NULL);
+ Tcl_SetErrorCode(interp, "TCL", "LOOKUP", "ALIAS", aliasName, (char *)NULL);
return TCL_ERROR;
}
aliasPtr = (Alias *)Tcl_GetHashValue(hPtr);
@@ -1364,7 +1364,7 @@ Tcl_GetAliasObj(
if (hPtr == NULL) {
Tcl_SetObjResult(interp, Tcl_ObjPrintf(
"alias \"%s\" not found", aliasName));
- Tcl_SetErrorCode(interp, "TCL", "LOOKUP", "ALIAS", aliasName, (void *)NULL);
+ Tcl_SetErrorCode(interp, "TCL", "LOOKUP", "ALIAS", aliasName, (char *)NULL);
return TCL_ERROR;
}
aliasPtr = (Alias *)Tcl_GetHashValue(hPtr);
@@ -1471,7 +1471,7 @@ TclPreventAliasLoop(
"cannot define or rename alias \"%s\": would create a loop",
Tcl_GetCommandName(cmdInterp, cmd)));
Tcl_SetErrorCode(interp, "TCL", "OPERATION", "INTERP",
- "ALIASLOOP", (void *)NULL);
+ "ALIASLOOP", (char *)NULL);
return TCL_ERROR;
}
@@ -1692,7 +1692,7 @@ AliasDelete(
Tcl_SetObjResult(interp, Tcl_ObjPrintf(
"alias \"%s\" not found", TclGetString(namePtr)));
Tcl_SetErrorCode(interp, "TCL", "LOOKUP", "ALIAS",
- TclGetString(namePtr), (void *)NULL);
+ TclGetString(namePtr), (char *)NULL);
return TCL_ERROR;
}
aliasPtr = (Alias *)Tcl_GetHashValue(hPtr);
@@ -1736,7 +1736,7 @@ AliasDescribe(
*/
childPtr = &((InterpInfo *) ((Interp *) childInterp)->interpInfo)->child;
- hPtr = Tcl_FindHashEntry(&childPtr->aliasTable, Tcl_GetString(namePtr));
+ hPtr = Tcl_FindHashEntry(&childPtr->aliasTable, TclGetString(namePtr));
if (hPtr == NULL) {
return TCL_OK;
}
@@ -2344,7 +2344,7 @@ GetInterp(
Tcl_SetObjResult(interp, Tcl_ObjPrintf(
"could not find interpreter \"%s\"", TclGetString(pathPtr)));
Tcl_SetErrorCode(interp, "TCL", "LOOKUP", "INTERP",
- TclGetString(pathPtr), (void *)NULL);
+ TclGetString(pathPtr), (char *)NULL);
}
return searchInterp;
}
@@ -2382,7 +2382,7 @@ ChildBgerror(
Tcl_SetObjResult(interp, Tcl_NewStringObj(
"cmdPrefix must be list of length >= 1", -1));
Tcl_SetErrorCode(interp, "TCL", "OPERATION", "INTERP",
- "BGERRORFORMAT", (void *)NULL);
+ "BGERRORFORMAT", (char *)NULL);
return TCL_ERROR;
}
TclSetBgErrorHandler(childInterp, objv[0]);
@@ -2954,7 +2954,7 @@ ChildExpose(
"permission denied: safe interpreter cannot expose commands",
-1));
Tcl_SetErrorCode(interp, "TCL", "OPERATION", "INTERP", "UNSAFE",
- (void *)NULL);
+ (char *)NULL);
return TCL_ERROR;
}
@@ -2999,7 +2999,7 @@ ChildRecursionLimit(
Tcl_SetObjResult(interp, Tcl_NewStringObj("permission denied: "
"safe interpreters cannot change recursion limit", -1));
Tcl_SetErrorCode(interp, "TCL", "OPERATION", "INTERP", "UNSAFE",
- (void *)NULL);
+ (char *)NULL);
return TCL_ERROR;
}
if (TclGetIntFromObj(interp, objv[0], &limit) == TCL_ERROR) {
@@ -3009,7 +3009,7 @@ ChildRecursionLimit(
Tcl_SetObjResult(interp, Tcl_NewStringObj(
"recursion limit must be > 0", -1));
Tcl_SetErrorCode(interp, "TCL", "OPERATION", "INTERP", "BADLIMIT",
- (void *)NULL);
+ (char *)NULL);
return TCL_ERROR;
}
Tcl_SetRecursionLimit(childInterp, limit);
@@ -3017,7 +3017,7 @@ ChildRecursionLimit(
if (interp == childInterp && iPtr->numLevels > limit) {
Tcl_SetObjResult(interp, Tcl_NewStringObj(
"falling back due to new recursion limit", -1));
- Tcl_SetErrorCode(interp, "TCL", "RECURSION", (void *)NULL);
+ Tcl_SetErrorCode(interp, "TCL", "RECURSION", (char *)NULL);
return TCL_ERROR;
}
Tcl_SetObjResult(interp, objv[0]);
@@ -3060,7 +3060,7 @@ ChildHide(
"permission denied: safe interpreter cannot hide commands",
-1));
Tcl_SetErrorCode(interp, "TCL", "OPERATION", "INTERP", "UNSAFE",
- (void *)NULL);
+ (char *)NULL);
return TCL_ERROR;
}
@@ -3145,7 +3145,7 @@ ChildInvokeHidden(
"not allowed to invoke hidden commands from safe interpreter",
-1));
Tcl_SetErrorCode(interp, "TCL", "OPERATION", "INTERP", "UNSAFE",
- (void *)NULL);
+ (char *)NULL);
return TCL_ERROR;
}
@@ -3222,7 +3222,7 @@ ChildMarkTrusted(
"permission denied: safe interpreter cannot mark trusted",
-1));
Tcl_SetErrorCode(interp, "TCL", "OPERATION", "INTERP", "UNSAFE",
- (void *)NULL);
+ (char *)NULL);
return TCL_ERROR;
}
((Interp *) childInterp)->flags &= ~SAFE_INTERP;
@@ -3476,7 +3476,7 @@ Tcl_LimitCheck(
} else if (iPtr->limit.exceeded & TCL_LIMIT_COMMANDS) {
Tcl_SetObjResult(interp, Tcl_NewStringObj(
"command count limit exceeded", -1));
- Tcl_SetErrorCode(interp, "TCL", "LIMIT", "COMMANDS", (void *)NULL);
+ Tcl_SetErrorCode(interp, "TCL", "LIMIT", "COMMANDS", (char *)NULL);
Tcl_Release(interp);
return TCL_ERROR;
}
@@ -3502,7 +3502,7 @@ Tcl_LimitCheck(
} else if (iPtr->limit.exceeded & TCL_LIMIT_TIME) {
Tcl_SetObjResult(interp, Tcl_NewStringObj(
"time limit exceeded", -1));
- Tcl_SetErrorCode(interp, "TCL", "LIMIT", "TIME", (void *)NULL);
+ Tcl_SetErrorCode(interp, "TCL", "LIMIT", "TIME", (char *)NULL);
Tcl_Release(interp);
return TCL_ERROR;
}
@@ -4514,7 +4514,7 @@ ChildCommandLimitCmd(
if (interp == childInterp) {
Tcl_SetObjResult(interp, Tcl_NewStringObj(
"limits on current interpreter inaccessible", -1));
- Tcl_SetErrorCode(interp, "TCL", "OPERATION", "INTERP", "SELF", (void *)NULL);
+ Tcl_SetErrorCode(interp, "TCL", "OPERATION", "INTERP", "SELF", (char *)NULL);
return TCL_ERROR;
}
@@ -4614,7 +4614,7 @@ ChildCommandLimitCmd(
Tcl_SetObjResult(interp, Tcl_NewStringObj(
"granularity must be at least 1", -1));
Tcl_SetErrorCode(interp, "TCL", "OPERATION", "INTERP",
- "BADVALUE", (void *)NULL);
+ "BADVALUE", (char *)NULL);
return TCL_ERROR;
}
break;
@@ -4631,7 +4631,7 @@ ChildCommandLimitCmd(
Tcl_SetObjResult(interp, Tcl_NewStringObj(
"command limit value must be at least 0", -1));
Tcl_SetErrorCode(interp, "TCL", "OPERATION", "INTERP",
- "BADVALUE", (void *)NULL);
+ "BADVALUE", (char *)NULL);
return TCL_ERROR;
}
break;
@@ -4703,7 +4703,7 @@ ChildTimeLimitCmd(
if (interp == childInterp) {
Tcl_SetObjResult(interp, Tcl_NewStringObj(
"limits on current interpreter inaccessible", -1));
- Tcl_SetErrorCode(interp, "TCL", "OPERATION", "INTERP", "SELF", (void *)NULL);
+ Tcl_SetErrorCode(interp, "TCL", "OPERATION", "INTERP", "SELF", (char *)NULL);
return TCL_ERROR;
}
@@ -4824,7 +4824,7 @@ ChildTimeLimitCmd(
Tcl_SetObjResult(interp, Tcl_NewStringObj(
"granularity must be at least 1", -1));
Tcl_SetErrorCode(interp, "TCL", "OPERATION", "INTERP",
- "BADVALUE", (void *)NULL);
+ "BADVALUE", (char *)NULL);
return TCL_ERROR;
}
break;
@@ -4841,7 +4841,7 @@ ChildTimeLimitCmd(
Tcl_SetObjResult(interp, Tcl_ObjPrintf(
"milliseconds must be between 0 and %ld", LONG_MAX));
Tcl_SetErrorCode(interp, "TCL", "OPERATION", "INTERP",
- "BADVALUE", (void *)NULL);
+ "BADVALUE", (char *)NULL);
return TCL_ERROR;
}
limitMoment.usec = ((long)tmp)*1000;
@@ -4859,7 +4859,7 @@ ChildTimeLimitCmd(
Tcl_SetObjResult(interp, Tcl_ObjPrintf(
"seconds must be between 0 and %ld", LONG_MAX));
Tcl_SetErrorCode(interp, "TCL", "OPERATION", "INTERP",
- "BADVALUE", (void *)NULL);
+ "BADVALUE", (char *)NULL);
return TCL_ERROR;
}
limitMoment.sec = (long)tmp;
@@ -4878,7 +4878,7 @@ ChildTimeLimitCmd(
"may only set -milliseconds if -seconds is not "
"also being reset", -1));
Tcl_SetErrorCode(interp, "TCL", "OPERATION", "INTERP",
- "BADUSAGE", (void *)NULL);
+ "BADUSAGE", (char *)NULL);
return TCL_ERROR;
}
if (milliLen == 0 && (secObj == NULL || secLen > 0)) {
@@ -4886,7 +4886,7 @@ ChildTimeLimitCmd(
"may only reset -milliseconds if -seconds is "
"also being reset", -1));
Tcl_SetErrorCode(interp, "TCL", "OPERATION", "INTERP",
- "BADUSAGE", (void *)NULL);
+ "BADUSAGE", (char *)NULL);
return TCL_ERROR;
}
}