diff options
| author | donal.k.fellows@manchester.ac.uk <dkf> | 2012-08-04 13:04:41 (GMT) |
|---|---|---|
| committer | donal.k.fellows@manchester.ac.uk <dkf> | 2012-08-04 13:04:41 (GMT) |
| commit | 8814ac1a2fedd1360bd522b517d847d276c50e24 (patch) | |
| tree | 5461b99cb700bf228c1f2b4c16f4b7dbfa8c453d /unix/tclLoadShl.c | |
| parent | ea395a1c3a38dfc06b71bf28d7ce79d08a36a0d2 (diff) | |
| download | tcl-8814ac1a2fedd1360bd522b517d847d276c50e24.zip tcl-8814ac1a2fedd1360bd522b517d847d276c50e24.tar.gz tcl-8814ac1a2fedd1360bd522b517d847d276c50e24.tar.bz2 | |
more result generation conversion
Diffstat (limited to 'unix/tclLoadShl.c')
| -rw-r--r-- | unix/tclLoadShl.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/unix/tclLoadShl.c b/unix/tclLoadShl.c index eddd80a..968f232 100644 --- a/unix/tclLoadShl.c +++ b/unix/tclLoadShl.c @@ -100,8 +100,9 @@ TclpDlopen( } if (handle == NULL) { - Tcl_AppendResult(interp, "couldn't load file \"", fileName, "\": ", - Tcl_PosixError(interp), (char *) NULL); + Tcl_SetObjResult(interp, Tcl_ObjPrintf( + "couldn't load file \"%s\": %s", + fileName, Tcl_PosixError(interp))); return TCL_ERROR; } newHandle = ckalloc(sizeof(*newHandle)); @@ -155,9 +156,9 @@ FindSymbol( Tcl_DStringFree(&newName); } if (proc == NULL && interp != NULL) { - Tcl_ResetResult(interp); - Tcl_AppendResult(interp, "cannot find symbol\"", symbol, "\": ", - Tcl_PosixError(interp), NULL); + Tcl_SetObjResult(interp, Tcl_ObjPrintf( + "cannot find symbol \"%s\": %s", + symbol, Tcl_PosixError(interp))); } return proc; } |
