Skip to content
Tcl Source Code History Of Ticket 3029891fffffffff
Login

History Of Ticket 3029891fffffffff

Artifacts Associated With Ticket 3029891fffffffff

  1. Ticket change [fffbbf8e97] (rid 108853) by nijtmans on 2010-07-15 09:44:48:

    1. assignee initialized to: "dgp"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      As follow-up of #1055668, it's clear that Tcl_Main
      does not belong in the stub table, but there are
      more like that:
      In Tcl, the following functions are only meant to be used
      in tclAppInit.c, and are problematic when compiled with
      USE_TCL_STUBS:  Tcl_FindExecutable and
      Tcl_StaticPackage
      
      In Tk: Tk_MainEx, Tk_Init, Tk_SafeInit and
      Tk_CreateConsoleWindow
      
      Then there are 3 functions in Tcl that can be
      used from tclAppInit.c, and are used through
      the stub table as well: Tcl_CreateInterp,
      Tcl_Init and Tcl_SetVar. Currently there is
      no other way than #undef TCL_USE_STUBS
      in xxxAppInit.c, but I suggest to redefine the
      stub macros a little bit as below. This way,
      we can use (Tcl_CreateInterp)() when we
      don't want to use stubs and Tcl_CreateInterp()
      otherwise. Apart from that, everything functions
      as before.
      
      Best would be to remove the said functions
      from the stub table, but less dangerous is just
      disable the stub usage. That can be done by
      putting the following at the end of tclDecls.h:
      
      #undef Tcl_CreateInterp
      #undef Tcl_FindExecutable
      #undef Tcl_Init
      #undef Tcl_SetVar
      #undef Tcl_StaticPackage
      #if defined(USE_TCL_STUBS)
      #   define Tcl_CreateInterp() (tclStubsPtr->tcl_CreateInterp())
      #   define Tcl_Init(interp) (tclStubsPtr->tcl_Init(interp))
      #   define Tcl_SetVar(interp, varName, newValue, flags) \
      (tclStubsPtr->tcl_SetVar(interp, varName, newValue, flags))
      #endif
      
      At the end of tkDecls.h:
      #undef Tk_MainEx
      #undef Tk_Init
      #undef Tk_SafeInit
      #undef Tk_CreateConsoleWindow
      
      
    4. foundin initialized to: "obsolete: 8.6b1.1"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "nijtmans"
    10. subsystem initialized to: "50. Embedding Support"
    11. title initialized to: "Functions that don't belong in the stub table"
    12. type initialized to: "Bug"
  2. Ticket change [98998a5990] (rid 110634) by nijtmans on 2010-07-17 05:08:31:

    1. icomment:
      Tk part fixed in HEAD
      
      
    2. login: "nijtmans"
    3. mimetype: "text/plain"
    4. username: "nijtmans"
  3. Ticket change [f6d826668c] (rid 130379) by nijtmans on 2010-07-25 17:42:43:

    1. closedate changed to: "2010-07-25T10:42:43"
    2. closer changed to: "nijtmans"
    3. icomment:
      
      
      allow_comments - 1
      
      Fixed in HEAD
      
      
    4. login: "nijtmans"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "nijtmans"