summaryrefslogtreecommitdiffstats
path: root/generic/tclConfig.c
diff options
context:
space:
mode:
authordkf <dkf@noemail.net>2012-08-03 10:56:28 (GMT)
committerdkf <dkf@noemail.net>2012-08-03 10:56:28 (GMT)
commit6e86ccf7fe809f84e5672157ea4989aabdde3d7d (patch)
tree75be1366adc438a7d2ef0f75fc7c2ffe414d7872 /generic/tclConfig.c
parentfcdd3afc5ee7b8e46352738cb0262168fa9bb6c7 (diff)
downloadtcl-6e86ccf7fe809f84e5672157ea4989aabdde3d7d.zip
tcl-6e86ccf7fe809f84e5672157ea4989aabdde3d7d.tar.gz
tcl-6e86ccf7fe809f84e5672157ea4989aabdde3d7d.tar.bz2
converting to using Tcl_Obj API for error message generation; part done
FossilOrigin-Name: 7fb86a29c9bfa1140ea3a8af6f65221ce4474e45
Diffstat (limited to 'generic/tclConfig.c')
-rw-r--r--generic/tclConfig.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/generic/tclConfig.c b/generic/tclConfig.c
index dea487a..a4ba71a 100644
--- a/generic/tclConfig.c
+++ b/generic/tclConfig.c
@@ -236,7 +236,7 @@ QueryConfigObjCmd(
* present.
*/
- Tcl_SetResult(interp, "package not known", TCL_STATIC);
+ Tcl_SetObjResult(interp, Tcl_NewStringObj("package not known", -1));
Tcl_SetErrorCode(interp, "TCL", "FATAL", "PKGCFG_BASE",
Tcl_GetString(pkgName), NULL);
return TCL_ERROR;
@@ -251,7 +251,7 @@ QueryConfigObjCmd(
if (Tcl_DictObjGet(interp, pkgDict, objv[2], &val) != TCL_OK
|| val == NULL) {
- Tcl_SetResult(interp, "key not known", TCL_STATIC);
+ Tcl_SetObjResult(interp, Tcl_NewStringObj("key not known", -1));
Tcl_SetErrorCode(interp, "TCL", "LOOKUP", "CONFIG",
Tcl_GetString(objv[2]), NULL);
return TCL_ERROR;
@@ -270,8 +270,8 @@ QueryConfigObjCmd(
listPtr = Tcl_NewListObj(n, NULL);
if (!listPtr) {
- Tcl_SetResult(interp, "insufficient memory to create list",
- TCL_STATIC);
+ Tcl_SetObjResult(interp, Tcl_NewStringObj(
+ "insufficient memory to create list", -1));
Tcl_SetErrorCode(interp, "TCL", "MEMORY", NULL);
return TCL_ERROR;
}