Adding the Interface to TclTo add the Empress extension to a Tcl/C application (for example, to create a Tcl shell which includes the Empress extension), the procedureEtsql_Init() should be called:
int Etsql_Init (Tcl_Interp *interp)This procedure initializes the Empress package and registers a new Tcl command: etsql. It also renames the original Tcl exit command, and creates a new exit command. This new exit command will perform database clean-up before calling the original exit command.
Note: this version of the Empress Tcl/Tk interface does not support multiple Tcl interpreters.
ExampleHere's the source of tclsh modified to use the Empress interface:#include |