Overview
| Artifact ID: | 7955426f663d96bec885b698db3f9363b3e25643 |
|---|---|
| Ticket: | 2891616fffffffffffffffffffffffffffffffff
TIP 357: export TclLoadFile |
| User & Date: | kennykb on 2009-11-04 02:06:55 |
Changes
- assignee changed to: "kennykb"
- cmimetype changed to: "text/plain"
- 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.
- foundin changed to: "TIP Implementation"
- is_private changed to: "0"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "kennykb"
- subsystem changed to: "40. Dynamic Loading"
- title changed to: "TIP 357 draft changes"
- type changed to: "Patch"