1 *** ../../tk2.3/main.c Wed Aug 19 08:10:32 1992
2 --- main.c Tue Oct 6 17:27:56 1992
10 * Declarations for library procedures:
18 + # include "tclExtend.h"
19 + Tcl_Interp *tk_mainInterp; /* Need to process signals */
23 * Declarations for library procedures:
26 * Command used to initialize wish:
29 char initCmd[] = "source $tk_library/wish.tcl";
31 Tk_Window w; /* NULL means window has been deleted. */
34 * Command used to initialize wish:
38 + char initCmd[] = "load wishx.tcl";
40 char initCmd[] = "source $tk_library/wish.tcl";
47 char initCmd[] = "source $tk_library/wish.tcl";
49 Tk_Window w; /* NULL means window has been deleted. */
50 Tk_TimerToken timeToken = 0;
53 char initCmd[] = "load wishx.tcl";
55 char initCmd[] = "source $tk_library/wish.tcl";
58 Tk_Window w; /* NULL means window has been deleted. */
59 Tk_TimerToken timeToken = 0;
65 interp = Tcl_CreateInterp();
67 Tcl_InitMemory(interp);
74 + tk_mainInterp = interp = Tcl_CreateExtendedInterp();
76 interp = Tcl_CreateInterp();
83 interp = Tcl_CreateInterp();
85 Tcl_InitMemory(interp);
89 tk_mainInterp = interp = Tcl_CreateExtendedInterp();
91 interp = Tcl_CreateInterp();
94 Tcl_InitMemory(interp);
98 if (geometry != NULL) {
99 Tcl_SetVar(interp, "geometry", geometry, TCL_GLOBAL_ONLY);
101 result = Tcl_Eval(interp, initCmd, 0, (char **) NULL);
102 if (result != TCL_OK) {
106 if (geometry != NULL) {
107 Tcl_SetVar(interp, "geometry", geometry, TCL_GLOBAL_ONLY);
110 + tclAppName = "Wish";
111 + tclAppLongname = "Wish - Tk Shell";
112 + tclAppVersion = TK_VERSION;
113 + Tcl_ShellEnvInit (interp, TCLSH_ABORT_STARTUP_ERR,
115 + 0, NULL, /* argv var already set */
116 + fileName == NULL, /* interactive? */
117 + NULL); /* Standard default file */
119 result = Tcl_Eval(interp, initCmd, 0, (char **) NULL);
120 if (result != TCL_OK) {