Copyright (C) 2000-2012 |
Manpages Tk_InitStubsSection: Tk Library Procedures (3)Updated: 8.1 Index Return to Main Contents NAMETk_InitStubs - initialize the Tk stubs mechanismSYNOPSIS#include <tk.h> char * Tk_InitStubs(interp, version, exact) ARGUMENTS
INTRODUCTIONThe Tcl stubs mechanism defines a way to dynamically bind extensions to a particular Tcl implementation at run time. the stubs mechanism requires no changes to applications incoporating Tcl/Tk interpreters. Only developers creating C-based Tcl/Tk extensions need to take steps to use the stubs mechanism with their extensions. See the Tcl_InitStubs page for more information. Enabling the stubs mechanism for a Tcl/Tk extension requires the following steps:
DESCRIPTIONTk_InitStubs attempts to initialize the Tk stub table pointers and ensure that the correct version of Tk is loaded. In addition to an interpreter handle, it accepts as arguments a version number and a Boolean flag indicating whether the extension requires an exact version match or not. If exact is 0, then the extension is indicating that newer versions of Tk are acceptable as long as they have the same major version number as version; non-zero means that only the specified version is acceptable. Tcl_InitStubs returns a string containing the actual version of Tk satisfying the request, or NULL if the Tk version is not acceptable, does not support the stubs mechansim, or any other error condition occurred.SEE ALSOTcl_InitStubsKEYWORDSstubs
IndexThis document was created by man2html, using the manual pages. Time: 15:02:04 GMT, April 18, 2024 |