diff options
| author | dgp@users.sourceforge.net <dgp> | 2012-08-08 20:30:37 (GMT) |
|---|---|---|
| committer | dgp@users.sourceforge.net <dgp> | 2012-08-08 20:30:37 (GMT) |
| commit | 9c91ed208c3aaabce2fdb33fef55cb5d66152b64 (patch) | |
| tree | a6fadf3d6bc55a704065f4543ea894d5ebddfe46 /unix/tclLoadDl.c | |
| parent | c8f4979adace609267b80869949d83e12ac96563 (diff) | |
| parent | bc8263307e4cfa4064e128e4674e08e1a2f8000d (diff) | |
| download | tcl-9c91ed208c3aaabce2fdb33fef55cb5d66152b64.zip tcl-9c91ed208c3aaabce2fdb33fef55cb5d66152b64.tar.gz tcl-9c91ed208c3aaabce2fdb33fef55cb5d66152b64.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); } |
