+static int proc_html_invoke (ClientData clientData, Tcl_Interp *interp,
+ int argc, char **argv)
+{
+ struct tcl_info *p = (struct tcl_info*) clientData;
+ int i;
+
+ gw_log (GW_LOG_DEBUG, mod, "proc html");
+ for (i = 1; i<argc; i++)
+ wo_puts (p->wcl, 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_form_invoke (ClientData clientData, Tcl_Interp *interp,
+ int argc, char **argv)
+{
+ struct tcl_info *p = (struct tcl_info*) clientData;
+ int i;
+ if (argc == 2)
+ {
+ Tcl_AppendResult (p->interp, wgetval (p->wcl, argv[1]), NULL);
+ return TCL_OK;
+ }
+ for (i = 0; *p->wcl->wf_data[i].name; i++)
+ {
+ Tcl_AppendResult (p->interp, "{ ", NULL);
+ Tcl_AppendElement (p->interp, p->wcl->wf_data[i].name);
+ Tcl_AppendElement (p->interp, p->wcl->wf_data[i].value);
+ Tcl_AppendResult (p->interp, " }\n", NULL);
+ }
+ return TCL_OK;
+}
+
+static void *do_create (WCLIENT wcl, void *args)