Lines Matching defs:mode
138 if(pp->mode != SH_JMPSUB)
140 if(pp->mode < SH_JMPSUB)
141 pp->mode = shp->subshell?SH_JMPSUB:SH_JMPFUN;
143 pp->mode = SH_JMPEXIT;
171 if(pp->mode==SH_JMPCMD)
190 if(pp->mode==SH_JMPCMD && sh_isstate(SH_STOPOK))
213 if(pp->mode==SH_JMPCMD && sh_isstate(SH_STOPOK))
319 * Free the trap strings if mode is non-zero
320 * If mode>1 then ignored traps cause signal to be ignored
322 void sh_sigreset(register int mode)
333 if(mode)
337 else if(sig && mode>1)
351 if(mode)
358 if(mode)
410 pp->mode = SH_JMPEXIT;
443 * parse and execute the given trap string, stream or tree depending on mode
444 * mode==0 for string, mode==1 for stream, mode==2 for parse tree
446 int sh_trap(const char *trap, int mode)
466 if(mode==2)
471 if(mode)
502 if(jmpval>SH_JMPTRAP && (((struct checkpt*)shp->jmpbuffer)->prev || ((struct checkpt*)shp->jmpbuffer)->mode==SH_JMPSCRIPT))
508 * exit the current scope and jump to an earlier one based on pp->mode
519 if(pp && pp->mode>1)
545 /* return to prompt mode */
546 pp->mode = SH_JMPERREXIT;
582 if(pp->mode == SH_JMPSCRIPT && !pp->prev)
584 if(pp->mode)
585 siglongjmp(pp->buff,pp->mode);