Re: How can I include expect to scotty?

Doug Hughes (Doug.Hughes@Eng.Auburn.EDU)
Thu, 30 Nov 1995 18:40:24 -0600

very possible. I have a superwish which includes all the major extensions to
tcl (scotty, expect, tix, blt, tclx, etc)

You just need to take the command from the (tcl/tk)AppInit.c file supplied with
each application and combine them into a separate file. Then link this
file with the relevant libraries and you've got both. It's not terribly
hard to do, just takes a little know-how the first time.

Kinda like this:

(taken fron SuperInit.c)

the easiest way to do this is to take the init file from one, diff it with
the init file from the other, and merge these changes into one of them:

if (TclX_Init(interp) == TCL_ERROR) {
return TCL_ERROR;
}
if (TkX_Init(interp) == TCL_ERROR) {
return TCL_ERROR;
}
#ifdef ORATCL
if (Oratcl_Init(interp) == TCL_ERROR) {
return TCL_ERROR;
}
#endif
if (Blt_Init(interp) == TCL_ERROR) {

(Taken from the Tcl_AppInit(interp) routine)

--
____________________________________________________________________________
Doug Hughes					Engineering Network Services
System/Net Admin  				Auburn University
			doug@eng.auburn.edu
		Pro is to Con as progress is to congress