Tcl 8.7/Tk Documentation > Tcl C API > Interp

Tcl/Tk Applications | Tcl Commands | Tk Commands | [incr Tcl] Package Commands | SQLite3 Package Commands | TDBC Package Commands | tdbc::mysql Package Commands | tdbc::odbc Package Commands | tdbc::postgres Package Commands | tdbc::sqlite3 Package Commands | Thread Package Commands | Tcl C API | Tk C API | [incr Tcl] Package C API | TDBC Package C API

NAME

Tcl_Interp — client-visible fields of interpreter structures

SYNOPSIS

#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);

DESCRIPTION

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.

KEYWORDS

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