X-Git-Url: http://lists.indexdata.com/cgi-bin?a=blobdiff_plain;f=tclmain.c;h=46fe8eb0a933008f1a00a3ef16febcb38ef2dbe6;hb=b83014af59e2736d11f47cdb8da577e917a84d8f;hp=3168bc6ab442818f73ee9721429587dc855773db;hpb=4b96df0e1f1db0983dff2d019373fea918b8b6ec;p=ir-tcl-moved-to-github.git diff --git a/tclmain.c b/tclmain.c index 3168bc6..46fe8eb 100644 --- a/tclmain.c +++ b/tclmain.c @@ -5,7 +5,16 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: tclmain.c,v $ - * Revision 1.13 1995-08-28 12:21:22 adam + * Revision 1.15 1996-01-10 09:18:45 adam + * PDU specific callbacks implemented: initRespnse, searchResponse, + * presentResponse and scanResponse. + * Bug fix in the command line shell (tclmain.c) - discovered on OSF/1. + * + * Revision 1.14 1995/09/21 13:11:53 adam + * Support of dynamic loading. + * Test script uses load command if necessary. + * + * Revision 1.13 1995/08/28 12:21:22 adam * Removed lines and list as synonyms of list in MARC extractron. * Configure searches also for tk4.0 / tcl7.4. * @@ -75,7 +84,7 @@ int Tcl_AppInit (Tcl_Interp *interp) { if (Tcl_Init(interp) == TCL_ERROR) return TCL_ERROR; - if (ir_tcl_init(interp) == TCL_ERROR) + if (Irtcl_Init(interp) == TCL_ERROR) return TCL_ERROR; return TCL_OK; } @@ -195,18 +204,18 @@ void tcl_mainloop (Tcl_Interp *interp, int interactive) { if (FD_ISSET (i, &fdset_tcl_r)) { - assert (callback_table[i].r_handle); - (*callback_table[i].r_handle) (callback_table[i].obj); + if (callback_table[i].r_handle) + (*callback_table[i].r_handle) (callback_table[i].obj); } if (FD_ISSET (i, &fdset_tcl_w)) { - assert (callback_table[i].w_handle); - (*callback_table[i].w_handle) (callback_table[i].obj); + if (callback_table[i].w_handle) + (*callback_table[i].w_handle) (callback_table[i].obj); } if (FD_ISSET (i, &fdset_tcl_x)) { - assert (callback_table[i].x_handle); - (*callback_table[i].x_handle) (callback_table[i].obj); + if (callback_table[i].x_handle) + (*callback_table[i].x_handle) (callback_table[i].obj); } } if (interactive && FD_ISSET(0, &fdset_tcl_r))