Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

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

  1. 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.
    
    
  2. login: "jenglish"
  3. mimetype: "text/plain"
  4. username: "jenglish"