X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=www%2Fwirtcl.c;h=6425be9dc59c1ebae5251d6e3143f6429a4834e8;hb=25db261b6bbbfcc7bc26f679f195b51d31b9d7d7;hp=942abdc52d26d02b0d0622c8e06a8385352a7d4b;hpb=3c1a04c3c1aa9f80cd7b3f9a884968e6fc1b7220;p=egate.git diff --git a/www/wirtcl.c b/www/wirtcl.c index 942abdc..6425be9 100644 --- a/www/wirtcl.c +++ b/www/wirtcl.c @@ -41,7 +41,11 @@ * USE OR PERFORMANCE OF THIS SOFTWARE. * * $Log: wirtcl.c,v $ - * Revision 1.15 1996/02/21 14:58:01 adam + * Revision 1.16 1996/02/29 15:40:23 adam + * New function w_interp_irtcl_get that returns Tcl interpreter of + * IrTcl interpreter. + * + * Revision 1.15 1996/02/21 14:58:01 adam * Modified to use ir_tcl_select_set. * * Revision 1.14 1996/02/12 10:10:31 adam @@ -344,3 +348,16 @@ static int do_save (char *parms, void *mydata) return w_interp_save_state (p->w_interp, parms); } +Tcl_Interp *w_interp_irtcl_get (W_Interp w_interp) +{ + struct tcl_info *p; + + if (strcmp (w_interp->ctrl->name, "irtcl")) + { + gw_log (GW_LOG_FATAL, mod, "Internal failure"); + assert (0); + } + p = (struct tcl_info*) w_interp->mydata; + return p->interp; +} +