Artifact edfaf9823b8fcbdb0e853178e400a39a11febf8ad3b5d5a32ec5dcae0fc5aa37:
- File doc/markdown/OOInitStubs.md — part of check-in [5e80e55e41] at 2026-09-26 22:40:07 on branch tip-700 — - added a "title" metadata element to the generated yaml block to satisfy Pandoc when converting to HTML - added markdown2html.tcl as prototype/placeholder of conversion script markdown -> HTML - added some CSS to play with a good visual representation of the generated HTML, starting with the n section pages - fixed man2markdown.tcl not giving the two .TP/.IP parsing places the same treatment (user: Torsten, size: 1785) [annotate] [blame] [check-ins using]
- File doc/markdown/TclCAPI/OOInitStubs.md — part of check-in [b84ce0eee1] at 2026-10-04 22:10:02 on branch tip-700 — file location re-organisation (part 1) (user: Torsten, size: 1785) [annotate] [blame] [check-ins using]
CommandName: Tcl_OOInitStubs title: Tcl_OOInitStubs ManualSection: 3 Version: 1.0 TclPart: TclOO TclDescription: TclOO Library Functions Keywords:
- stubs Links:
- Tcl_InitStubs(3) Copyright:
- Copyright (c) 2012 Donal K. Fellows ---
Name
Tcl_OOInitStubs - initialize library access to TclOO functionality
Synopsis
::: {.synopsis} ::: #include <tclOO.h> [const char *]{.ret} [Tcl_OOInitStubs]{.ccmd} [interp]{.cargs} :::
Arguments
::: {.arguments} :::
[*interp]{.carg .in type="Tcl_Interp"} : The Tcl interpreter that the TclOO API is integrated with and whose C interface is going to be used.
:::
Description
When an extension library is going to use the C interface exposed by TclOO, it should use Tcl_OOInitStubs to initialize its access to that interface from within its ***_Init** (or ***_SafeInit*) function, passing in the *interp that was passed into that routine as context. If the result of calling Tcl_OOInitStubs is NULL, the initialization failed and an error message will have been left in the interpreter's result. Otherwise, the initialization succeeded and the TclOO API may thereafter be used; the version of the TclOO API is returned.
When using this function, either the C #define symbol USE_TCLOO_STUBS should be defined and your library code linked against the Tcl stub library, or that #define symbol should not be defined and your library code linked against the Tcl main library directly.
Backward compatibility note
If you are linking against the Tcl 8.5 forward compatibility package for TclOO, only the stub-enabled configuration is supported and you should also link against the TclOO independent stub library; that library is an integrated part of the main Tcl stub library in Tcl 8.6.