summaryrefslogtreecommitdiffstats
path: root/generic/tclConfig.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2012-09-04 21:35:21 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2012-09-04 21:35:21 (GMT)
commita50dcb923a50640e31a433c872caa63630d8202d (patch)
treeb5db0420431479a99a1a92ade263f2d177ff1e7f /generic/tclConfig.c
parent25925f6f8e072a0bc3cf719c7684eff79f96ed8f (diff)
parent4c8d436cd9e92ed6a304fed697f233ecb7996635 (diff)
downloadtcl-a50dcb923a50640e31a433c872caa63630d8202d.zip
tcl-a50dcb923a50640e31a433c872caa63630d8202d.tar.gz
tcl-a50dcb923a50640e31a433c872caa63630d8202d.tar.bz2
merge trunk
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;
}