• 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()
306 vp->flag = DEFINED|RDONLY; in local()
312 if (copy && !(vp->flag & DEFINED)) { in local()
317 vp->flag |= vq->flag & in local()
320 if (vq->flag & INTEGER) in local()
327 vp->flag |= DEFINED; in local()
329 vp->flag |= SPECIAL; in local()
339 if ((vp->flag&SPECIAL)) in str_val()
341 if (!(vp->flag&ISSET)) in str_val()
344 else if (!(vp->flag&INTEGER)) in str_val()
357 const char *digits = (vp->flag & UCASEV_AL) ? in str_val()
361 if (vp->flag & INT_U) in str_val()
392 if (!(vp->flag & INT_U) && vp->val.i < 0) in str_val()
395 if (vp->flag & (RJUST|LJUST)) in str_val()
412 if ((vq->flag & RDONLY) && !no_ro_check) { in setstr()
418 if (!(vq->flag&INTEGER)) { in setstr()
420 if ((vq->flag&ALLOC)) { in setstr()
432 vq->flag &= ~(ISSET|ALLOC); in setstr()
434 if (s && (vq->flag & (UCASEV_AL|LCASEV|LJUST|RJUST))) in setstr()
436 if ((vq->flag&EXPORT)) in setstr()
440 vq->flag |= ALLOC; in setstr()
447 vq->flag |= ISSET; in setstr()
448 if ((vq->flag&SPECIAL)) in setstr()
458 if (!(vq->flag&INTEGER)) { in setint()
460 vp->flag = (ISSET|INTEGER); in setint()
468 vq->flag |= ISSET; in setint()
469 if ((vq->flag&SPECIAL)) in setint()
481 if (vp->flag&SPECIAL) in getint()
484 if (!(vp->flag&ISSET) || (!(vp->flag&INTEGER) && vp->val.s == NULL)) in getint()
486 if (vp->flag&INTEGER) { in getint()
501 !(vp->flag & ZEROFIL)) { in getint()
573 if (!(vq->flag & INTEGER) && (vq->flag & ALLOC)) { in setint_n()
574 vq->flag &= ~ALLOC; in setint_n()
581 vq->flag |= ISSET|INTEGER; in setint_n()
582 if (vq->flag&SPECIAL) in setint_n()
595 if (vp->flag & (RJUST|LJUST)) { in formatstr()
604 if (vp->flag & (RJUST|LJUST)) { in formatstr()
607 if (vp->flag & RJUST) { in formatstr()
618 if (vp->flag & ZEROFIL && vp->flag & INTEGER) { in formatstr()
636 memset(p + n, (vp->flag & ZEROFIL) ? '0' : ' ', in formatstr()
646 if (vp->flag & ZEROFIL) in formatstr()
655 if (vp->flag & UCASEV_AL) { in formatstr()
658 } else if (vp->flag & LCASEV) { in formatstr()
673 char *op = (vp->flag&ALLOC) ? vp->val.s : NULL; in exportprep()
681 vp->flag |= ALLOC; in exportprep()
785 if (set_refflag == SRF_DISABLE && (vp->flag & (ARRAY|ASSOC)) == ASSOC) in typeset()
786 vp->flag &= ~ASSOC; in typeset()
788 if (vp->flag & ARRAY) { in typeset()
795 if (tmp->flag & ALLOC) in typeset()
800 vp->flag &= ~ARRAY; in typeset()
802 vp->flag |= ASSOC; in typeset()
807 vpbase = (vp->flag & ARRAY) ? global(arrayname(var)) : vp; in typeset()
814 if ((vpbase->flag&RDONLY) && in typeset()
833 fake_assign = (t->flag & ISSET) && (!val || t != vp) && in typeset()
835 ((t->flag & INTEGER) && (clr & INTEGER)) || in typeset()
836 (!(t->flag & INTEGER) && (set & INTEGER))); in typeset()
838 if (t->flag & INTEGER) { in typeset()
843 free_me = (t->flag & ALLOC) ? t->val.s : in typeset()
846 t->flag &= ~ALLOC; in typeset()
848 if (!(t->flag & INTEGER) && (set & INTEGER)) { in typeset()
850 t->flag &= ~ALLOC; in typeset()
852 t->flag = (t->flag | set) & ~clr; in typeset()
870 if (t->flag & INTEGER) in typeset()
871 t->flag &= ~ISSET; in typeset()
873 if (t->flag & ALLOC) in typeset()
875 t->flag &= ~(ISSET|ALLOC); in typeset()
896 if (vp->flag&INTEGER) { in typeset()
911 if ((vpbase->flag&EXPORT) && !(vpbase->flag&INTEGER) && in typeset()
913 exportprep(vpbase, (vpbase->flag&ISSET) ? vpbase->val.s : null); in typeset()
926 if (vp->flag & ALLOC) in unset()
928 if ((vp->flag & ARRAY) && (flags & 1)) { in unset()
935 if (tmp->flag & ALLOC) in unset()
942 vp->flag &= ~(ALLOC|ISSET); in unset()
946 vp->flag &= SPECIAL | ((flags & 1) ? 0 : ARRAY|DEFINED); in unset()
947 if (vp->flag & SPECIAL) in unset()
1040 (vp->flag&(ISSET|EXPORT)) == (ISSET|EXPORT)) { in makenv()
1049 vp2->flag &= ~EXPORT; in makenv()
1051 if ((vp->flag&INTEGER)) { in makenv()
1055 vp->flag &= ~(INTEGER|RDONLY|SPECIAL); in makenv()
1077 return (tp && (tp->flag & ISSET) ? tp->type : V_NONE); in special()
1135 vp->flag &= ~SPECIAL; in getspec()
1140 vp->flag |= SPECIAL; in getspec()
1155 if (vp->flag & ISSET) { in getspec()
1165 vp->flag &= ~SPECIAL; in getspec()
1167 vp->flag |= SPECIAL; in getspec()
1217 if (vp->flag & IMPORT) { in setspec()
1220 vp->flag &= ~SPECIAL; in setspec()
1230 vp->flag &= ~SPECIAL; in setspec()
1237 vp->flag |= SPECIAL; in setspec()
1336 vp->flag = (vp->flag | (ARRAY|DEFINED)) & ~ASSOC; in arraysearch()
1347 if (curr->flag&ISSET) in arraysearch()
1358 news->flag = (vp->flag & ~(ALLOC|DEFINED|ISSET|SPECIAL)) | AINDEX; in arraysearch()
1431 if ((vp->flag&RDONLY)) in set_array()
1448 if (!(vq->flag & ISSET)) in set_array()