Lines Matching refs:st

438 	shp->st.lineno = error_info.line;
444 savst = shp->st;
445 shp->st.trap[SH_DEBUGTRAP] = 0;
449 if(shp->st.cmdname)
450 error_info.id = shp->st.cmdname;
451 nv_putval(SH_PATHNAMENOD,shp->st.filename,NV_NOFREE);
452 nv_putval(SH_FUNNAMENOD,shp->st.funname,NV_NOFREE);
453 shp->st = savst;
468 struct slnod *saveslp = shp->st.staklist;
523 shp->st.staklist = saveslp;
658 if(t && !shp->st.execbrk && !sh_isoption(SH_NOEXEC))
712 error_info.line = t->com.comline-shp->st.firstline;
784 if(!shp->st.var_local)
787 shp->st.var_local = shp->var_tree;
868 if(trap=shp->st.trap[SH_DEBUGTRAP])
890 error_info.line = t->com.comline-shp->st.firstline;
956 type = (execflg && !shp->subshell && !shp->st.trapcom[0]);
999 !shp->st.trapcom[0] && !shp->st.trap[SH_ERRTRAP] && shp->fn_depth==0 && !nv_isattr(np,BLT_ENV))
1176 !shp->st.trapcom[0] && !shp->st.trap[SH_ERRTRAP] &&
1308 if(!shp->st.ioset)
1332 error_info.line = t->fork.forkline-shp->st.firstline;
1408 error_info.line = t->fork.forkline-shp->st.firstline;
1440 shp->st.ioset = 0;
1455 if(!shp->subshell && !shp->st.trapcom[0] && !shp->st.trap[SH_ERRTRAP] && (flags&sh_state(SH_NOFORK)))
1460 shp->st.otrapcom = 0;
1461 if((nsig=shp->st.trapmax*sizeof(char*))>0 || shp->st.trapcom[0])
1464 memcpy(savsig=malloc(nsig),(char*)&shp->st.trapcom[0],nsig);
1465 shp->st.otrapcom = (char**)savsig;
1605 error_info.line = t->for_.forline-shp->st.firstline;
1608 args=shp->st.dolv+1;
1609 nargs = shp->st.dolc;
1619 shp->st.loopcnt++;
1621 while(cp && shp->st.execbrk==0)
1636 shp->exitval=sh_readline(shp,&nullptr,0,1,1000*shp->st.tmout);
1672 if(trap=shp->st.trap[SH_DEBUGTRAP])
1691 if(shp->st.breakcnt<0)
1692 shp->st.execbrk = (++shp->st.breakcnt !=0);
1702 if(shp->st.breakcnt>0)
1703 shp->st.execbrk = (--shp->st.breakcnt !=0);
1704 shp->st.loopcnt--;
1747 shp->st.loopcnt++;
1748 while(shp->st.execbrk==0)
1761 if(shp->st.breakcnt<0)
1762 shp->st.execbrk = (++shp->st.breakcnt !=0);
1764 if(shp->st.execbrk==0 && t->wh.whinc)
1782 if(shp->st.breakcnt>0)
1783 shp->st.execbrk = (--shp->st.breakcnt !=0);
1784 shp->st.loopcnt--;
1801 error_info.line = t->ar.arline-shp->st.firstline;
1809 if(trap=shp->st.trap[SH_DEBUGTRAP])
1836 error_info.line = t->sw.swline-shp->st.firstline;
1838 if(trap=shp->st.trap[SH_DEBUGTRAP])
1966 long optindex = shp->st.optindex;
1978 shp->st.optindex = 1;
1996 shp->st.optindex = optindex;
2001 error_info.line = t->funct.functline-shp->st.firstline;
2125 error_info.line = t->tst.tstline-shp->st.firstline;
2142 if(trap=shp->st.trap[SH_DEBUGTRAP])
2557 struct sh_scoped savst, *prevscope = shp->st.self;
2572 shp->st.lineno = error_info.line;
2574 *prevscope = shp->st;
2576 shp->st.prevst = prevscope;
2577 shp->st.self = &savst;
2578 shp->topscope = (Shscope_t*)shp->st.self;
2579 shp->st.opterror = shp->st.optchar = 0;
2580 shp->st.optindex = 1;
2581 shp->st.loopcnt = 0;
2585 shp->st.real_fun = (fp->node)->nvalue.rp;
2595 shp->st.save_tree = shp->var_tree;
2614 shp->st.cmdname = argv[0];
2616 if((nsig=shp->st.trapmax*sizeof(char*))>0 || shp->st.trapcom[0])
2619 memcpy(savstak=stakalloc(nsig),(char*)&shp->st.trapcom[0],nsig);
2626 shp->st.var_local = shp->var_tree;
2630 shp->st.filename = fp->node->nvalue.rp->fname;
2631 shp->st.funname = nv_name(fp->node);
2632 nv_putval(SH_PATHNAMENOD,shp->st.filename,NV_NOFREE);
2633 nv_putval(SH_FUNNAMENOD,shp->st.funname,NV_NOFREE);
2653 if (shp->st.self != &savst)
2658 if(shp->topscope != (Shscope_t*)shp->st.self)
2661 trap = shp->st.trapcom[0];
2662 shp->st.trapcom[0] = 0;
2664 if (shp->st.self != &savst)
2665 *shp->st.self = shp->st;
2666 shp->st = *prevscope;
2670 memcpy((char*)&shp->st.trapcom[0],savstak,nsig);
2703 if((struct sh_scoped*)shp->topscope != shp->st.self)
2707 shp->st.lineno = error_info.line;
2711 int loopcnt = shp->st.loopcnt;
2715 shp->st.funname = nv_name(np);
2719 shp->st.loopcnt = 0;
2721 shp->st.loopcnt = loopcnt;
2738 nv_putval(SH_FUNNAMENOD,shp->st.funname,NV_NOFREE);
2742 nv_putval(SH_PATHNAMENOD,shp->st.filename,NV_NOFREE);
2911 if(sh.st.dolc>0)
2914 char **argv = sh.st.dolv+1;
2965 register int sig=sh.st.trapmax;
2968 if((trap=sh.st.trapcom[sig]) && *trap==0)
3034 if(!shp->st.ioset)