Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 7955426f663d96bec885b698db3f9363b3e25643
Ticket: 2891616fffffffffffffffffffffffffffffffff
TIP 357: export TclLoadFile
User & Date: kennykb on 2009-11-04 02:06:55
Changes

  1. assignee changed to: "kennykb"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    This patch set reflects where I am with TIP 357 implementation.  Notes:
    
    (1) [unload] of modules loaded from VFS is totally untested in the test suite.  And I *know* it won't work with these patches, because I haven't done anything about wrapping the FSDivertLoad structure (in tclLoadUtil.c) into a Tcl_LoadHandle.  That will have to be done (and a test case added) before this ships.
    
    (2) There has been no attempt to test, or even build, on a platform other than Win32 and Linux-ix86. 
    
    (3) The code will not work for preloading DLLs because the DLL  name changes to a TclpTempFileName when it gets copied to the native filesystem, losing the identity of the DLL symbols for cross-linking.
    
    (4) patthoyts, mistachkin, and tclguy are talking about making load-from-memory work on Windows.
    
    (5) jenglish wants Tcl_LoadFile to fail (and unload the library) if any symbol is missing. (Optional symbols can be processed with Tcl_FindSymbol.) I'm willing to go along with that, but haven't done it.  When we do, the calling code in the [load] command needs to be adapted to use Tcl_FindSymbol for the _SafeInit, _Unload and _SafeUnload entry points.
    
    (6) There are no man pages for the new APIs.
    
    (7) The code probably s*ks and definitely needs another pair of eyeballs or three.
    
  4. foundin changed to: "TIP Implementation"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "kennykb"
  10. subsystem changed to: "40. Dynamic Loading"
  11. title changed to: "TIP 357 draft changes"
  12. type changed to: "Patch"