TIP #254: NEW TYPES FOR TCL_LINKVAR ===================================== Version: $Revision: 1.6 $ Author: Rene Meyer State: Final Type: Project Tcl-Version: 8.5 Vote: Done Created: Thursday, 21 July 2005 URL: https://tip.tcl-lang.org254.html Post-History: ------------------------------------------------------------------------- ABSTRACT ========== Currently only a limited set of types of C variable may be linked to using Tcl_LinkVar. This TIP proposes extending this to cover all the basic numeric C types. RATIONALE =========== With the current implementation it is not possible to link the following types directly to a Tcl variable, making it much more difficult to couple such variables to the Tcl level (compared with *int* or *double* variables). This TIP fixes this, making it easier to link C variables and embedded Tcl code. * *char* * *unsigned char* * *short* * *unsigned short* * *unsigned int* * *long* * *unsigned long* * *Tcl_WideUInt* * *float* There will be no impact on current applications. SPECIFICATION =============== The new types are inserted as new *#define TCL_LINK_** statements in the /tcl.h/ header file and in the *switch* statements in the /Tcl_Link/ functions. The documentation of /Tcl_*Link*/ should mention the new types. REFERENCE IMPLEMENTATION ========================== A reference implementation is available as Patch #1242844 on SourceForge[]. COPYRIGHT =========== This document has been placed in the public domain. ------------------------------------------------------------------------- TIP AutoGenerator - written by Donal K. Fellows