summaryrefslogtreecommitdiffstats
path: root/unix/tclLoadDl.c
diff options
context:
space:
mode:
authorjan.nijtmans <jan.nijtmans@noemail.net>2012-08-06 07:59:01 (GMT)
committerjan.nijtmans <jan.nijtmans@noemail.net>2012-08-06 07:59:01 (GMT)
commit6aee63effa88b49ebd875a8f1615454f842820f2 (patch)
tree9726218d2767be111aba0feda74cd0ac220f4355 /unix/tclLoadDl.c
parent68c14126f5f9f31f14ddbcd054764da66e76b7fd (diff)
parent0d3a04a3c2c1394b9cc43b115db2105d11842cd9 (diff)
downloadtcl-6aee63effa88b49ebd875a8f1615454f842820f2.zip
tcl-6aee63effa88b49ebd875a8f1615454f842820f2.tar.gz
tcl-6aee63effa88b49ebd875a8f1615454f842820f2.tar.bz2
merge trunk
FossilOrigin-Name: ff11683baba21e1f4b79305312fa5be47337841a
Diffstat (limited to 'unix/tclLoadDl.c')
-rw-r--r--unix/tclLoadDl.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/unix/tclLoadDl.c b/unix/tclLoadDl.c
index d86e7fd..f8fe6d3 100644
--- a/unix/tclLoadDl.c
+++ b/unix/tclLoadDl.c
@@ -112,8 +112,9 @@ TclpDlopen(
const char *errorStr = dlerror();
- Tcl_AppendResult(interp, "couldn't load file \"",
- Tcl_GetString(pathPtr), "\": ", errorStr, NULL);
+ Tcl_SetObjResult(interp, Tcl_ObjPrintf(
+ "couldn't load file \"%s\": %s",
+ Tcl_GetString(pathPtr), errorStr));
return TCL_ERROR;
}
newHandle = ckalloc(sizeof(*newHandle));
@@ -175,9 +176,8 @@ FindSymbol(
}
Tcl_DStringFree(&ds);
if (proc == NULL && interp != NULL) {
- Tcl_ResetResult(interp);
- Tcl_AppendResult(interp, "cannot find symbol \"", symbol, "\": ",
- dlerror(), NULL);
+ Tcl_SetObjResult(interp, Tcl_ObjPrintf(
+ "cannot find symbol \"%s\": %s", symbol, dlerror()));
Tcl_SetErrorCode(interp, "TCL", "LOOKUP", "LOAD_SYMBOL", symbol,
NULL);
}