• Home
  • Raw
  • Download

Lines Matching refs:flag

98 		if ((vp = *vpp++) != NULL && (vp->flag&SPECIAL)) {  in popblock()
99 if ((vq = global(vp->name))->flag & ISSET) in popblock()
138 tp->flag = DEFINED|ISSET; in initvar()
187 if (vp && (vp->flag & (DEFINED|ASSOC|ARRAY)) == in array_index_calc()
236 vp->flag = DEFINED; in global()
246 vp->flag |= RDONLY; in global()
249 vp->flag |= RDONLY; in global()
252 vp->flag |= ISSET|INTEGER; in global()
260 vp->flag &= ~(ISSET|INTEGER); in global()
269 vp->flag &= ~INTEGER; in global()
273 vp->flag &= ~(ISSET|INTEGER); in global()
283 vp->flag |= DEFINED; in global()
285 vp->flag |= SPECIAL; in global()
305 vp->flag = DEFINED|RDONLY; in local()
311 if (copy && !(vp->flag & DEFINED)) { in local()
316 vp->flag |= vq->flag & in local()
319 if (vq->flag & INTEGER) in local()
326 vp->flag |= DEFINED; in local()
328 vp->flag |= SPECIAL; in local()
338 if ((vp->flag&SPECIAL)) in str_val()
340 if (!(vp->flag&ISSET)) in str_val()
343 else if (!(vp->flag&INTEGER)) in str_val()
356 const char *digits = (vp->flag & UCASEV_AL) ? in str_val()
360 if (vp->flag & INT_U) in str_val()
391 if (!(vp->flag & INT_U) && vp->val.i < 0) in str_val()
394 if (vp->flag & (RJUST|LJUST)) in str_val()
411 if ((vq->flag & RDONLY) && !no_ro_check) { in setstr()
417 if (!(vq->flag&INTEGER)) { in setstr()
419 if ((vq->flag&ALLOC)) { in setstr()
428 vq->flag &= ~(ISSET|ALLOC); in setstr()
430 if (s && (vq->flag & (UCASEV_AL|LCASEV|LJUST|RJUST))) in setstr()
432 if ((vq->flag&EXPORT)) in setstr()
436 vq->flag |= ALLOC; in setstr()
443 vq->flag |= ISSET; in setstr()
444 if ((vq->flag&SPECIAL)) in setstr()
454 if (!(vq->flag&INTEGER)) { in setint()
456 vp->flag = (ISSET|INTEGER); in setint()
464 vq->flag |= ISSET; in setint()
465 if ((vq->flag&SPECIAL)) in setint()
477 if (vp->flag&SPECIAL) in getint()
480 if (!(vp->flag&ISSET) || (!(vp->flag&INTEGER) && vp->val.s == NULL)) in getint()
482 if (vp->flag&INTEGER) { in getint()
495 } else if (vp->flag & ZEROFIL) { in getint()
570 if (!(vq->flag & INTEGER) && (vq->flag & ALLOC)) { in setint_n()
571 vq->flag &= ~ALLOC; in setint_n()
576 vq->flag |= ISSET|INTEGER; in setint_n()
577 if (vq->flag&SPECIAL) in setint_n()
590 if (vp->flag & (RJUST|LJUST)) { in formatstr()
599 if (vp->flag & (RJUST|LJUST)) { in formatstr()
602 if (vp->flag & RJUST) { in formatstr()
613 if (vp->flag & ZEROFIL && vp->flag & INTEGER) { in formatstr()
628 memset(p + n, (vp->flag & ZEROFIL) ? '0' : ' ', in formatstr()
638 if (vp->flag & ZEROFIL) in formatstr()
647 if (vp->flag & UCASEV_AL) { in formatstr()
650 } else if (vp->flag & LCASEV) { in formatstr()
665 char *op = (vp->flag&ALLOC) ? vp->val.s : NULL; in exportprep()
671 vp->flag |= ALLOC; in exportprep()
773 if (set_refflag == SRF_DISABLE && (vp->flag & (ARRAY|ASSOC)) == ASSOC) in typeset()
774 vp->flag &= ~ASSOC; in typeset()
776 if (vp->flag & ARRAY) { in typeset()
783 if (tmp->flag & ALLOC) in typeset()
788 vp->flag &= ~ARRAY; in typeset()
790 vp->flag |= ASSOC; in typeset()
795 vpbase = (vp->flag & ARRAY) ? global(arrayname(var)) : vp; in typeset()
802 if ((vpbase->flag&RDONLY) && in typeset()
821 fake_assign = (t->flag & ISSET) && (!val || t != vp) && in typeset()
823 ((t->flag & INTEGER) && (clr & INTEGER)) || in typeset()
824 (!(t->flag & INTEGER) && (set & INTEGER))); in typeset()
826 if (t->flag & INTEGER) { in typeset()
831 free_me = (t->flag & ALLOC) ? t->val.s : in typeset()
834 t->flag &= ~ALLOC; in typeset()
836 if (!(t->flag & INTEGER) && (set & INTEGER)) { in typeset()
838 t->flag &= ~ALLOC; in typeset()
840 t->flag = (t->flag | set) & ~clr; in typeset()
858 if (t->flag & INTEGER) in typeset()
859 t->flag &= ~ISSET; in typeset()
861 if (t->flag & ALLOC) in typeset()
863 t->flag &= ~(ISSET|ALLOC); in typeset()
884 if (vp->flag&INTEGER) { in typeset()
899 if ((vpbase->flag&EXPORT) && !(vpbase->flag&INTEGER) && in typeset()
901 exportprep(vpbase, (vpbase->flag&ISSET) ? vpbase->val.s : null); in typeset()
914 if (vp->flag & ALLOC) in unset()
916 if ((vp->flag & ARRAY) && (flags & 1)) { in unset()
923 if (tmp->flag & ALLOC) in unset()
930 vp->flag &= ~(ALLOC|ISSET); in unset()
934 vp->flag &= SPECIAL | ((flags & 1) ? 0 : ARRAY|DEFINED); in unset()
935 if (vp->flag & SPECIAL) in unset()
1028 (vp->flag&(ISSET|EXPORT)) == (ISSET|EXPORT)) { in makenv()
1037 vp2->flag &= ~EXPORT; in makenv()
1039 if ((vp->flag&INTEGER)) { in makenv()
1043 vp->flag &= ~(INTEGER|RDONLY|SPECIAL); in makenv()
1065 return (tp && (tp->flag & ISSET) ? tp->type : V_NONE); in special()
1095 if (vp->flag & ISSET) { in getspec()
1135 vp->flag &= ~SPECIAL; in getspec()
1137 vp->flag |= SPECIAL; in getspec()
1194 vp->flag &= ~SPECIAL; in setspec()
1201 vp->flag |= SPECIAL; in setspec()
1300 vp->flag = (vp->flag | (ARRAY|DEFINED)) & ~ASSOC; in arraysearch()
1311 if (curr->flag&ISSET) in arraysearch()
1322 news->flag = (vp->flag & ~(ALLOC|DEFINED|ISSET|SPECIAL)) | AINDEX; in arraysearch()
1401 if ((vp->flag&RDONLY)) in set_array()
1416 if (!(vq->flag & ISSET)) in set_array()