* USE OR PERFORMANCE OF THIS SOFTWARE.
*
* $Log: wirtcl.c,v $
- * Revision 1.12 1996/01/12 10:05:18 adam
+ * Revision 1.13 1996/01/24 08:26:54 adam
+ * All tcl commands prefixed with egw_ (except the html command).
+ *
+ * Revision 1.12 1996/01/12 10:05:18 adam
* If script name ends with ';' HTTP/GET/Expires will be defined.
* The cgi interface only reads final handshake if response from
* server (shell) was zero-terminated [If it isn't it probably died].
}
log_init(LOG_ALL, "irtcl", LOGDIR "/irtcl_log");
/* initialize irtcl */
- Tcl_CreateCommand (p->interp, "zwait", proc_zwait_invoke, p, NULL);
+ Tcl_CreateCommand (p->interp, "egw_wait", proc_zwait_invoke, p, NULL);
for (i=0; i<MAX_CALLBACK; i++)
{
callback_table[i].r_handle = NULL;
* USE OR PERFORMANCE OF THIS SOFTWARE.
*
* $Log: wproto.h,v $
- * Revision 1.6 1996/01/12 13:08:07 adam
+ * Revision 1.7 1996/01/24 08:26:55 adam
+ * All tcl commands prefixed with egw_ (except the html command).
+ *
+ * Revision 1.6 1996/01/12 13:08:07 adam
* CGI script passes name of lock file to the shell. The server will not close
* the response FIFO until this file becomes unlocked. This method handles
* cancel operations much better.
int wproto_cache(WCLIENT wc, int level);
int wo_puthtml(WCLIENT wc, char *name);
void wo_puts(WCLIENT wc, const char *s);
+void wo_write(WCLIENT wc, const char *s, size_t len);
#endif
* USE OR PERFORMANCE OF THIS SOFTWARE.
*
* $Log: wtcl.c,v $
- * Revision 1.10 1995/11/08 16:14:35 adam
+ * Revision 1.11 1996/01/24 08:26:56 adam
+ * All tcl commands prefixed with egw_ (except the html command).
+ *
+ * Revision 1.10 1995/11/08 16:14:35 adam
* Many improvements and bug fixes.
* First version that ran on dtbsun.
*
int i;
for (i = 1; i<argc; i++)
- wo_puts (p->wcl, argv[i]);
+ wo_write (p->wcl, argv[i], strlen(argv[i]));
return TCL_OK;
}
-static int proc_htmlr_invoke (ClientData clientData, Tcl_Interp *interp,
- int argc, char **argv)
-{
- struct tcl_info *p = (struct tcl_info*) clientData;
- int r;
-
- r = proc_html_invoke (clientData, interp, argc, argv);
- wo_putc (p->wcl, '\n');
- return r;
-}
-
static int proc_wform_invoke (ClientData clientData, Tcl_Interp *interp,
int argc, char **argv)
{
}
Tcl_AppInit (p->interp);
Tcl_CreateCommand (p->interp, "html", proc_html_invoke, p, NULL);
- Tcl_CreateCommand (p->interp, "htmlr", proc_htmlr_invoke, p, NULL);
- Tcl_CreateCommand (p->interp, "wform", proc_wform_invoke, p, NULL);
- Tcl_CreateCommand (p->interp, "wabort", proc_wabort_invoke, p, NULL);
- Tcl_CreateCommand (p->interp, "wflush", proc_wflush_invoke, p, NULL);
- Tcl_CreateCommand (p->interp, "wlog", proc_wlog_invoke, p, NULL);
+ Tcl_CreateCommand (p->interp, "egw_form", proc_wform_invoke, p, NULL);
+ Tcl_CreateCommand (p->interp, "egw_abort", proc_wabort_invoke, p, NULL);
+ Tcl_CreateCommand (p->interp, "egw_flush", proc_wflush_invoke, p, NULL);
+ Tcl_CreateCommand (p->interp, "egw_log", proc_wlog_invoke, p, NULL);
sprintf (tmp_str, "%d", wcl->id);
Tcl_SetVar (p->interp, "sessionId", tmp_str, TCL_GLOBAL_ONLY);
return p;
sprintf (fname, "tcl.state.%d", p->wcl->id);
r = Tcl_EvalFile (p->interp, fname);
if (r == TCL_ERROR)
- report_error (p, p->interp->errorLine,
- "Error in Tcl loadState in line",
- Tcl_GetVar (p->interp, "errorInfo", 0));
+ gw_log (GW_LOG_WARN, mod, "Cannot load Tcl state" );
return 0;
}