Additional Tcl internal functions exported via stubs table
Closed / Fixed218387ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 00:56:58
OriginalBugID: 4690 RFE Version: 8.3 SubmitDate: '2000-03-29' LastModified: '2000-03-29' Severity: LOW Status: Closed Submitter: techsupp ChangedBy: hobbs OS: All FixedDate: '2000-10-25' ClosedDate: '2000-03-29' Name: Steve Landers Extensions: Expect 5.31 DesiredBehavior: Building a stubs enabled version of Expect 5.31 for dynamic loading into Tclkit. Need the tcl internal functions Tcl_ReturnObjCmd + Tcl_CloseObjCmd to be exported via the stubs table. Comments from newsgroup: >> I am not familiar with Expect source code but it should be relatively >> easy to change >> the code so that on initialisation it gets the addresses of those >> functions using >> the Tcl_GetCommandInfo call. > This can be true in general, but it depends on whether Expect > wants to access the true core functions, or whether it wants to > access the currently defined ones (if somebody overloaded it > at the Tcl level). For the core ones, Expect will need the > *ObjCmd references, otherwise it can use GetCommandInfo. Expect uses Tcl_ReturnObjCmd to implement the "interp_return" command, and Tcl_CloseObjCmd to implement the "close" command on a Tcl channel (as opposed to closing the connection to the current process). If the Tcl "return" and "close" commands are redefined in the application it is probably appropriate to use the new definition. I'll follow Paul's suggestion and use Tcl_GetCommandInfo unless any Expect experts raise an objection. --- This will be closed but can be reopened if it is determined that access to the original functions is what is required. -- 03/29/2000 hobbs
welch Closed ticket [218387ffff].
[History diff]2000-10-26 08:21:16
dgp Open ticket [218387ffff].
[History diff]2001-04-20 02:00:56
dgp Closed ticket [218387ffff].
[History diff]2001-04-20 02:16:16
Log in (anonymous is fine) to add a comment.