Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2001-04-20
02:16 • Closed ticket [218387ffff]: Additional Tcl internal functions exported via stubs... artifact: 4908a0a8a6 user: dgp
02:00 • Open ticket [218387ffff]. artifact: 9b1330e717 user: dgp
2000-10-26
08:21 • Closed ticket [218387ffff]. artifact: b6f854e0f2 user: welch
00:56 • New ticket [218387ffff]. artifact: 11ced23879 user: nobody

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.