diff options
| author | nijtmans@users.sourceforge.net <jan.nijtmans> | 2012-08-06 07:59:01 (GMT) |
|---|---|---|
| committer | nijtmans@users.sourceforge.net <jan.nijtmans> | 2012-08-06 07:59:01 (GMT) |
| commit | 590f90dfb94a3838bb07b37b552b4ed1cb854918 (patch) | |
| tree | 9726218d2767be111aba0feda74cd0ac220f4355 /unix/tclLoadDl.c | |
| parent | 9d0b03b064d691de9202a0f56b437c2a7358bb48 (diff) | |
| parent | 2b1db29c1c22c136a33ecefc4e021bd22c58f17e (diff) | |
| download | tcl-590f90dfb94a3838bb07b37b552b4ed1cb854918.zip tcl-590f90dfb94a3838bb07b37b552b4ed1cb854918.tar.gz tcl-590f90dfb94a3838bb07b37b552b4ed1cb854918.tar.bz2 | |
merge trunk
Diffstat (limited to 'unix/tclLoadDl.c')
| -rw-r--r-- | unix/tclLoadDl.c | 10 |
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); } |
