Skip to content
Tcl Source Code Artifact [c4c93d3317]
Login

Artifact [c4c93d3317]

Artifact c4c93d3317a14136b68e79cb7537f121705c2d1a:

Ticket change [c4c93d3317] - Open ticket [1711975fffffffff|1711975fff]: <i>Tcl_MainEx() (like Tk_MainEx())</i> plus 5 other changes by nijtmans on 2010-07-09 15:44:10.
D 2010-07-09T15:44:10
J icomment \n\nallow_comments\s-\s0\n\nRe-opening,\sbecause\smaybe\sthere\sis\sa\sway\sout\sof\sthis!\n\nThe\sreason\sI\srejected\sthis\swas\sbecause\sstill\sTcl_Main\sand\nTk_Main\swere\sstill\snot\shandled\sthe\ssame.\sBut\swhat\sif\nwe\sintroduce\sa\smacro\sTcl_Main\slike:\n#define\sTcl_Main(argc,\sargv,\sproc)\s\\\n\s\s\s\sTcl_MainEx(argc,\sargv,\sproc,\sTcl_CreateInterp())\nThe\sproblem\swith\sthis\sis\sthat\sthis\swould\snot\swork\nthe\ssame\swhen\sdefining\sTCL_USE_STUBS,\sbecause\nTcl_CreateInterp\sthen\sis\ssupplied\sthrough\sthe\sstub\ntable\swhich\sis\snot\sinitialized\syet.\n\nHowever,\sthere\sis\sa\ssolution\sfor\sthis:\n-\sChange\sTcl_Main\sto\sTcl_MainEx,\sadding\san\sextra\sparameter\n\s\sTcl_Interp\n-\sChange\sTcl_CreateInterp\sto\sTcl_CreateInterpEx,\swhich\sis\n\s\sexactly\sthe\ssame.\nThose\stwo\sfunctions\sdon't\sneed\sto\sbe\sdocumented,\sbecause\nthe\sTcl_Main\smacro\sis\sthe\sonly\ssupported\suse\sof\sthose\n(just\slike\sTk_Main).\sFinally,\sundefine\sthe\sTcl_CreateInterpEx\nmacro,\sso\sthis\scall\swill\snever\sgo\sthrough\sthe\sstub\stable.\sAnd\nprovide\sa\sTcl_CreateInterp\smacro,\sto\smake\sTcl_CreateInterp\nwork\sexactly\sas\sbefore.\n\nHere\sis\sthe\spatch\sdoing\sthis.\sIt\sdoes\snot\shave\sthe\sproblem\nin\sthe\soriginal\sproposal,\sit\sreally\smakes\sTcl_Main\swork\sthe\nsame\sway\sas\sTk_Main.\n
J login nijtmans
J mimetype text/plain
J resolution Accepted
J status Open
J username nijtmans
K 1711975fffffffffffffffffffffffffffffffff
U nijtmans
Z cf7f240c6e8f46ca8e2f13e5566c5095