Lines Matching refs:flag

47 #define	DONE()	{flag |= HIST_ERROR; cp = 0; stakseek(0); goto done;}
140 p, /* flag */
142 flag=0; /* HIST_* flags */
214 flag &= HIST_EVENT; /* save event flag for returning later */
220 flag |= HIST_QUICKSUBST;
240 flag |= HIST_HASH;
275 flag |= HIST_QUESTION;
283 if((!(flag&HIST_QUESTION) &&
289 || ((flag&HIST_QUESTION) && (*cp == '?' || *cp == '\n')))
299 flag |= HIST_EVENT;
306 flag&HIST_QUESTION, -1);
331 if(flag&HIST_QUESTION)
344 if(flag & HIST_QUICKSUBST) /* shortcut substitution */
389 flag |= HIST_WORDDSGN;
394 flag |= HIST_WORDDSGN;
412 flag |= HIST_WORDDSGN;
434 if(!(flag & HIST_WORDDSGN) && (*evp == ':'))
449 flag |= (c == '\n' ? HIST_NEWLINE : 0);
461 sfputc(tmp, flag & HIST_NEWLINE ? '\n' : ' ');
463 flag &= ~HIST_NEWLINE;
481 flag |= (c == '\n' ? HIST_NEWLINE : 0);
512 if(cc && (flag&HIST_HASH))
516 flag &= ~HIST_HASH;
524 while(*cp == ':' || (flag & HIST_QUICKSUBST))
526 if(flag & HIST_QUICKSUBST)
528 flag &= ~HIST_QUICKSUBST;
540 flag |= HIST_GLOBALSUBST;
545 flag |= mod_flags[cc - modifiers];
600 (flag & HIST_QUICKSUBST) ? ":s" : "",
609 flag |= HIST_SUBSTITUTE;
610 while(flag & HIST_SUBSTITUTE)
628 (flag & HIST_QUICKSUBST) ? ":s" : "",
634 if(!cc || !(flag & HIST_GLOBALSUBST))
635 flag &= ~HIST_SUBSTITUTE;
660 if(flag & HIST_QUOTE)
667 flag = flag & ~HIST_NEWLINE;
672 flag |= (c == '\n' ? HIST_NEWLINE : 0);
677 c = (flag & HIST_NEWLINE) ? '\n' : ' ';
679 if(flag & HIST_QUOTE_BR)
688 else if((c == '\'') && (flag & HIST_QUOTE))
698 if(flag & HIST_QUOTE)
706 if(cc && (flag&HIST_HASH))
715 if(staktell() && !(flag & HIST_ERROR))
731 return (flag & HIST_ERROR ? HIST_ERROR : flag & HIST_FLAG_RETURN_MASK);