summaryrefslogtreecommitdiffstats
path: root/unix/tclLoadDl.c
diff options
context:
space:
mode:
authordkf <dkf@noemail.net>2012-08-11 21:24:22 (GMT)
committerdkf <dkf@noemail.net>2012-08-11 21:24:22 (GMT)
commit8e0b54ce6725832cc2243ae9d24d6d805e3c0444 (patch)
tree27fde8f62082347078d925d76441498acc190a4a /unix/tclLoadDl.c
parentd9614c16c9e26645796f3d1dbe5ccf9ec6c454ed (diff)
parentb2f2b265564f268eace1e78f7d47c678463e7db6 (diff)
downloadtcl-8e0b54ce6725832cc2243ae9d24d6d805e3c0444.zip
tcl-8e0b54ce6725832cc2243ae9d24d6d805e3c0444.tar.gz
tcl-8e0b54ce6725832cc2243ae9d24d6d805e3c0444.tar.bz2
merge trunk
FossilOrigin-Name: edaf160c8efd1236beccc961cc9ca7cbca45f836
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);
}