Overview
| Artifact ID: | 91cf5a85532357e7e7cf42a69bde6bffd155cf8e |
|---|---|
| Ticket: | 1055668fffffffffffffffffffffffffffffffff
removal of exported internals from tclInt.h (EXTERN macro) |
| User & Date: | jenglish on 2004-10-29 01:58:46 |
Changes
- icomment:
Logged In: YES user_id=68433 Currently, to build a version-independent shell that dynamically loads Tcl, you can use: + hTcl = LoadLibrary(...path to tcl8X.dll...) + tclMainPtr = GetProcAddress(hTcl, "Tcl_Main") + (*tclMainPtr)(argv,argc, yourAppInitProc); In the scheme you propose, you would instead: + hTcl = LoadLibrary( .... ) + tclCreateInterpPtr = GetProcAddress(hTcl, "Tcl_CreateInterp"); + tempInterp = (*tclCreateInterpPtr)(...); + Tcl_InitStubs(tempInterp); + Tcl_DeleteInterp(tempInterp) + Call Tcl_Main() through the stubs table. This is more complicated, less perspicuous, and isn't even version-independant since it would only work for versions of the core where Tcl_Main is in the stubs table. How is the second one an improvement? I just don't see it.
- login: "jenglish"
- mimetype: "text/plain"
- username: "jenglish"