Tcl Source Code

View Ticket
Login
Ticket UUID: 1865230
Title: Wanted (internal) stubs-interfaces for itcl-ng
Type: RFE Created on: 2008-01-06 18:47:43
Submitter: wiede Assigned to: nobody
Subsystem: None Severity:
Priority: 5 Medium Last modified: 2026-11-13 11:18:43
Status: Closed Closed by: serhiy.storchaka
Resolution: Fixed Closed on: 2026-11-13 11:18:43
Version: None
Description:
In the attachment there is a prototype implementation of interfaces which are needed for itcl-ng and which I would like to get as (internal) stubs-interfaces from Tcl core, so itcl-ng can use only stubs-interfaces in direction Tcl core.

The function names at the moment are all starting with Itcl_*, that is only thought for the prototype implementation.

If some parts could be realized differently, I am open for comments.
User Comments:
wiede added on 2008-01-07 01:47:43:

File Added - 261070: wantedinterfacesfromtcl.c

wiede added on 2008-01-07 18:53:33:
Logged In: YES 
user_id=558925
Originator: YES

I have removed ItclGetInterpErrorLine from the list, as dkf has mentioned on tkchat that the field is in the Tcl_Interp struct, what I did not know.

What I want to do with Itcl_ProcessReturn is: I want to skip some internal calls in the stack backtrace shown to the user. It is onlöy called on one place, when the stack is enrolled.

wiede added on 2008-01-07 23:05:10:
Logged In: YES 
user_id=558925
Originator: YES

for ItclGetInterpErrorLine I am now using Tcl_GetReturnOptions as dgp has suggested,
for Itcl_ProcessReturn I am now using Tcl_SetReturnOptions, so both are no longer needed.

serhiy.storchaka added on 2026-11-13 11:18:43:

The internal stubs entries TclGetNamespaceChildTable, TclGetNamespaceCommandTable, TclInitRewriteEnsemble and TclResetRewriteEnsemble were added for itcl-ng in [518b8a92e0] (Tcl 8.6), and Itcl 4 builds against Tcl through the stubs tables.


Attachments: