diff options
| author | hypnotoad <yoda@etoyoc.com> | 2018-08-14 08:46:22 (GMT) |
|---|---|---|
| committer | hypnotoad <yoda@etoyoc.com> | 2018-08-14 08:46:22 (GMT) |
| commit | 9b285dde85a6b7f41dd63cadb8c32517e3b1d1dd (patch) | |
| tree | d6ffa0f2db12aa93aad7514167cf818ce0695597 /generic/tclIOUtil.c | |
| parent | d62033b7e21f33603528c9712d11732f1fc756f7 (diff) | |
| parent | e5270637c01b6fbb0f016048fc9d9735f980421a (diff) | |
| download | tcl-9b285dde85a6b7f41dd63cadb8c32517e3b1d1dd.zip tcl-9b285dde85a6b7f41dd63cadb8c32517e3b1d1dd.tar.gz tcl-9b285dde85a6b7f41dd63cadb8c32517e3b1d1dd.tar.bz2 | |
Merging changes with 8.7
Diffstat (limited to 'generic/tclIOUtil.c')
| -rw-r--r-- | generic/tclIOUtil.c | 29 |
1 files changed, 4 insertions, 25 deletions
diff --git a/generic/tclIOUtil.c b/generic/tclIOUtil.c index f5ff2a6..bc8b287 100644 --- a/generic/tclIOUtil.c +++ b/generic/tclIOUtil.c @@ -139,7 +139,6 @@ Tcl_FSRenameFileProc TclpObjRenameFile; Tcl_FSCreateDirectoryProc TclpObjCreateDirectory; Tcl_FSCopyDirectoryProc TclpObjCopyDirectory; Tcl_FSRemoveDirectoryProc TclpObjRemoveDirectory; -Tcl_FSUnloadFileProc TclpUnloadFile; Tcl_FSLinkProc TclpObjLink; Tcl_FSListVolumesProc TclpObjListVolumes; @@ -3185,8 +3184,8 @@ Tcl_FSLoadFile( * present and set to true (any integer > 0) then the unlink is skipped. */ -int -TclSkipUnlink( +static int +skipUnlink( Tcl_Obj *shlibFile) { /* @@ -3444,7 +3443,7 @@ Tcl_LoadFile( * avoids any worries about leaving the copy laying around on exit. */ - if (!TclSkipUnlink(copyToPtr) && + if (!skipUnlink(copyToPtr) && (Tcl_FSDeleteFile(copyToPtr) == TCL_OK)) { Tcl_DecrRefCount(copyToPtr); @@ -3713,30 +3712,10 @@ Tcl_FSUnloadFile( } return TCL_ERROR; } - TclpUnloadFile(handle); - return TCL_OK; -} - -/* - *---------------------------------------------------------------------- - * - * TclpUnloadFile -- - * - * Unloads a library given its handle - * - * This function was once filesystem-specific, but has been made portable by - * having TclpDlopen return a structure that includes procedure pointers. - * - *---------------------------------------------------------------------- - */ - -void -TclpUnloadFile( - Tcl_LoadHandle handle) -{ if (handle->unloadFileProcPtr != NULL) { handle->unloadFileProcPtr(handle); } + return TCL_OK; } /* |
