Skip to content
Tcl Source Code Artifact [c988c641fe]
Login

Artifact [c988c641fe]

Artifact c988c641fe00852df7a7f793aaa78ea314890986:

Manifest of check-in [c988c641fe] - * generic/tclBasic.c (Tcl_CloneInterp): Added code to propagate error messages generated when cloning fails from the clone to the master, for perusal by the code which activated the cloning process. This is especially important to track syntax errors in procedures to clone down. The code was provided by Greg Thompson <[email protected]>. * generic/tclBasic.c (CloneNamespace): Fixed potential memory leak due to a missing call of "Tcl_DStringFree". Reported by Greg Thompson <[email protected]>. * generic/tclBasic.c (CloneCommand): Moved code adding the clone to its command table to the end of the command. This makes cleanup in case of a failure easier, there is less to roll back. Added code to release the command strcuture if cloning the procedure structures fails. changed from void to int, returning a TCL_ result code. (CloneNamespace): Changed from void to int, returning a TCL_ result code. Now reacting to the result of CloneCommand (and itself), aborts operation in case of a failure. (Tcl_CloneInterp): Now reacting to a failure reported by 'CloneNamespace'. Frees the fixup information accumulated so far (via new CloneFixupFree), then deletes the partially created interpreter via the standard 'Tcl_DeleteInterp'. (CloneFixupFree): New function, freeing the fixup information. by andreas_kupries on 2003-04-15 18:25:11.
B a9a7ea8404b1ea74ffe72b398917af5ace450716
C \n\t*\sgeneric/tclBasic.c\s(Tcl_CloneInterp):\sAdded\scode\sto\spropagate\n\t\s\serror\smessages\sgenerated\swhen\scloning\sfails\sfrom\sthe\sclone\sto\n\t\s\sthe\smaster,\sfor\sperusal\sby\sthe\scode\swhich\sactivated\sthe\scloning\n\t\s\sprocess.\sThis\sis\sespecially\simportant\sto\strack\ssyntax\serrors\sin\n\t\s\sprocedures\sto\sclone\sdown.\sThe\scode\swas\sprovided\sby\sGreg\sThompson\n\t\s\s<[email protected]>.\n\n\t*\sgeneric/tclBasic.c\s(CloneNamespace):\sFixed\spotential\smemory\sleak\n\t\s\sdue\sto\sa\smissing\scall\sof\s"Tcl_DStringFree".\sReported\sby\sGreg\n\t\s\sThompson\s<[email protected]>.\n\n\t*\sgeneric/tclBasic.c\s(CloneCommand):\sMoved\scode\sadding\sthe\sclone\n\t\s\sto\sits\scommand\stable\sto\sthe\send\sof\sthe\scommand.\sThis\smakes\n\t\s\scleanup\sin\scase\sof\sa\sfailure\seasier,\sthere\sis\sless\sto\sroll\n\t\s\sback.\sAdded\scode\sto\srelease\sthe\scommand\sstrcuture\sif\scloning\sthe\n\t\s\sprocedure\sstructures\sfails.\schanged\sfrom\svoid\sto\sint,\sreturning\n\t\s\sa\sTCL_\sresult\scode.\n\n\t\s\s(CloneNamespace):\sChanged\sfrom\svoid\sto\sint,\sreturning\sa\sTCL_\n\t\s\sresult\scode.\sNow\sreacting\sto\sthe\sresult\sof\sCloneCommand\s(and\n\t\s\sitself),\saborts\soperation\sin\scase\sof\sa\sfailure.\n\n\t\s\s(Tcl_CloneInterp):\sNow\sreacting\sto\sa\sfailure\sreported\sby\n\t\s\s'CloneNamespace'.\sFrees\sthe\sfixup\sinformation\saccumulated\sso\sfar\n\t\s\s(via\snew\sCloneFixupFree),\sthen\sdeletes\sthe\spartially\screated\n\t\s\sinterpreter\svia\sthe\sstandard\s'Tcl_DeleteInterp'.\n\n\t\s\s(CloneFixupFree):\sNew\sfunction,\sfreeing\sthe\sfixup\sinformation.\n
D 2003-04-15T18:25:11
F ChangeLog 494f68837871d008a9c0dc301c82ab25941efc7a
F generic/tclBasic.c 0e3743eb8a7d0267041c30969f2f09e2af09e450
F generic/tclCompile.c e527d0ca82bc831bc6f3f7f5de7e8240df6319ae
P 8c2329a41fdd54ad4e11e9adbba1628a100dcf6b
U andreas_kupries
Z 821c270724a9da726f1f1e5ad35f7e89