Artifacts Associated With Ticket 3029891fffffffff
Ticket change [fffbbf8e97] (rid 108853) by nijtmans on 2010-07-15 09:44:48:
- assignee initialized to: "dgp"
- cmimetype initialized to: "text/plain"
- 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
- foundin initialized to: "obsolete: 8.6b1.1"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nijtmans"
- subsystem initialized to: "50. Embedding Support"
- title initialized to: "Functions that don't belong in the stub table"
- type initialized to: "Bug"
Ticket change [98998a5990] (rid 110634) by nijtmans on 2010-07-17 05:08:31:
- icomment:
Tk part fixed in HEAD
- login: "nijtmans"
- mimetype: "text/plain"
- username: "nijtmans"
- icomment:
Ticket change [f6d826668c] (rid 130379) by nijtmans on 2010-07-25 17:42:43:
- closedate changed to: "2010-07-25T10:42:43"
- closer changed to: "nijtmans"
- icomment:
allow_comments - 1 Fixed in HEAD
- login: "nijtmans"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "nijtmans"