Tcl 8.7/Tk8.7a5 Documentation > Tcl C API > Interp

Tcl/Tk Applications | Tcl Commands | Tk Commands | Tcl C API | Tk C API


Tcl_Interp — client-visible fields of interpreter structures


#include <tcl.h>
typedef struct {
    char *result; /* NO LONGER AVAILABLE */
    Tcl_FreeProc *freeProc; /* NO LONGER AVAILABLE */
    int errorLine; /* NO LONGER AVAILABLE */
} Tcl_Interp;

typedef void Tcl_FreeProc(
        char *blockPtr);


The Tcl_CreateInterp procedure returns a pointer to a Tcl_Interp structure. Callers of Tcl_CreateInterp should use this pointer as an opaque token, suitable for nothing other than passing back to other routines in the Tcl interface from the same thread that called Tcl_CreateInterp. The Tcl_Interp struct no longer has any supported client-visible fields. Supported public routines such as Tcl_SetResult, Tcl_GetResult, Tcl_SetErrorLine, Tcl_GetErrorLine must be used instead.

Any legacy programs and extensions trying to access the fields above in their source code will need conversion to compile for Tcl 8.7 and later.


interpreter, result
Copyright © 1989-1993 The Regents of the University of California.
Copyright © 1994-1996 Sun Microsystems, Inc.