Skip to content
Tcl Source Code Artifact [fffbbf8e97]
Login

Artifact [fffbbf8e97]

Artifact fffbbf8e977b97e99e4f8abd6e47c3721e96ccb1:

Ticket change [fffbbf8e97] - New ticket [3029891fffffffff|3029891fff] <i>Functions that don&#39;t belong in the stub table</i>. by nijtmans on 2010-07-15 09:44:48.
D 2010-07-15T09:44:48
J assignee dgp
J cmimetype text/plain
J comment As\sfollow-up\sof\s#1055668,\sit's\sclear\sthat\sTcl_Main\ndoes\snot\sbelong\sin\sthe\sstub\stable,\sbut\sthere\sare\nmore\slike\sthat:\nIn\sTcl,\sthe\sfollowing\sfunctions\sare\sonly\smeant\sto\sbe\sused\nin\stclAppInit.c,\sand\sare\sproblematic\swhen\scompiled\swith\nUSE_TCL_STUBS:\s\sTcl_FindExecutable\sand\nTcl_StaticPackage\n\nIn\sTk:\sTk_MainEx,\sTk_Init,\sTk_SafeInit\sand\nTk_CreateConsoleWindow\n\nThen\sthere\sare\s3\sfunctions\sin\sTcl\sthat\scan\sbe\nused\sfrom\stclAppInit.c,\sand\sare\sused\sthrough\nthe\sstub\stable\sas\swell:\sTcl_CreateInterp,\nTcl_Init\sand\sTcl_SetVar.\sCurrently\sthere\sis\nno\sother\sway\sthan\s#undef\sTCL_USE_STUBS\nin\sxxxAppInit.c,\sbut\sI\ssuggest\sto\sredefine\sthe\nstub\smacros\sa\slittle\sbit\sas\sbelow.\sThis\sway,\nwe\scan\suse\s(Tcl_CreateInterp)()\swhen\swe\ndon't\swant\sto\suse\sstubs\sand\sTcl_CreateInterp()\notherwise.\sApart\sfrom\sthat,\severything\sfunctions\nas\sbefore.\n\nBest\swould\sbe\sto\sremove\sthe\ssaid\sfunctions\nfrom\sthe\sstub\stable,\sbut\sless\sdangerous\sis\sjust\ndisable\sthe\sstub\susage.\sThat\scan\sbe\sdone\sby\nputting\sthe\sfollowing\sat\sthe\send\sof\stclDecls.h:\n\n#undef\sTcl_CreateInterp\n#undef\sTcl_FindExecutable\n#undef\sTcl_Init\n#undef\sTcl_SetVar\n#undef\sTcl_StaticPackage\n#if\sdefined(USE_TCL_STUBS)\n#\s\s\sdefine\sTcl_CreateInterp()\s(tclStubsPtr->tcl_CreateInterp())\n#\s\s\sdefine\sTcl_Init(interp)\s(tclStubsPtr->tcl_Init(interp))\n#\s\s\sdefine\sTcl_SetVar(interp,\svarName,\snewValue,\sflags)\s\\\n(tclStubsPtr->tcl_SetVar(interp,\svarName,\snewValue,\sflags))\n#endif\n\nAt\sthe\send\sof\stkDecls.h:\n#undef\sTk_MainEx\n#undef\sTk_Init\n#undef\sTk_SafeInit\n#undef\sTk_CreateConsoleWindow\n
J foundin obsolete:\s8.6b1.1
J is_private 0
J priority 5\sMedium
J resolution None
J status Open
J submitter nijtmans
J subsystem 50.\sEmbedding\sSupport
J title Functions\sthat\sdon't\sbelong\sin\sthe\sstub\stable
J type Bug
K 3029891fffffffffffffffffffffffffffffffff
U nijtmans
Z eb13bf46f5dd143e075b984151a3de92