Overview
| Comment: | * 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. |
|---|---|
| Timelines: | family | ancestors | descendants | both | mod-8-3-4-branch |
| Files: | files | file ages | folders |
| SHA1: |
c988c641fe00852df7a7f793aaa78ea3 |
| User & Date: | andreas_kupries on 2003-04-15 18:25:11.000 |
| Other Links: | branch diff | manifest | tags |
Context
|
2003-05-07
| ||
| 16:01 | * generic/tclProc.c (TclCloneProc): Fixed leaking of 'procNew', reported by Cisco. closed check-in: 4fdf9e72bf user: andreas_kupries tags: mod-8-3-4-branch | |
|
2003-04-15
| ||
| 18:25 | * generic/tclBasic.c (Tcl_CloneInterp): Added code to propagate error messages generated when c... check-in: c988c641fe user: andreas_kupries tags: mod-8-3-4-branch | |
|
2002-12-06
| ||
| 03:58 | * generic/tclCompile.c (TclCleanupByteCode): when using TCL_THREAD_LITERALS, do not worry about in... check-in: 8c2329a41f user: hobbs tags: mod-8-3-4-branch | |
Changes
Modified ChangeLog
from [5e43da2b8f]
to [494f688378].
[diff]
Modified generic/tclBasic.c
from [cf96e1a311]
to [0e3743eb8a].
[diff]