Lines Matching refs:flag

101 		if ((vp = *vpp++) != NULL && (vp->flag&SPECIAL)) {  in popblock()
102 if ((vq = global(vp->name))->flag & ISSET) in popblock()
141 tp->flag = DEFINED|ISSET; in initvar()
191 if (vp && (vp->flag & (DEFINED | ASSOC | ARRAY)) == in array_index_calc()
244 vp->flag = DEFINED; in global()
252 vp->flag |= RDONLY; in global()
255 vp->flag |= RDONLY; in global()
258 vp->flag |= ISSET|INTEGER; in global()
266 vp->flag &= ~(ISSET|INTEGER); in global()
275 vp->flag &= ~INTEGER; in global()
279 vp->flag &= ~(ISSET|INTEGER); in global()
289 vp->flag |= DEFINED; in global()
291 vp->flag |= SPECIAL; in global()
314 vp->flag = DEFINED|RDONLY; in local()
320 if (copy && !(vp->flag & DEFINED)) { in local()
325 vp->flag |= vq->flag & in local()
328 if (vq->flag & INTEGER) in local()
335 vp->flag |= DEFINED; in local()
337 vp->flag |= SPECIAL; in local()
347 if ((vp->flag&SPECIAL)) in str_val()
349 if (!(vp->flag&ISSET)) in str_val()
352 else if (!(vp->flag&INTEGER)) in str_val()
365 const char *digits = (vp->flag & UCASEV_AL) ? in str_val()
369 if (vp->flag & INT_U) in str_val()
400 if (!(vp->flag & INT_U) && vp->val.i < 0) in str_val()
403 if (vp->flag & (RJUST|LJUST)) in str_val()
420 if ((vq->flag & RDONLY) && !no_ro_check) { in setstr()
426 if (!(vq->flag&INTEGER)) { in setstr()
428 if ((vq->flag&ALLOC)) { in setstr()
440 vq->flag &= ~(ISSET|ALLOC); in setstr()
442 if (s && (vq->flag & (UCASEV_AL|LCASEV|LJUST|RJUST))) in setstr()
444 if ((vq->flag&EXPORT)) in setstr()
448 vq->flag |= ALLOC; in setstr()
455 vq->flag |= ISSET; in setstr()
456 if ((vq->flag&SPECIAL)) in setstr()
466 if (!(vq->flag&INTEGER)) { in setint()
468 vp->flag = (ISSET|INTEGER); in setint()
476 vq->flag |= ISSET; in setint()
477 if ((vq->flag&SPECIAL)) in setint()
488 if (vp->flag & SPECIAL) in getint()
491 if (!(vp->flag & ISSET) || (!(vp->flag & INTEGER) && vp->val.s == NULL)) in getint()
493 if (vp->flag & INTEGER) { in getint()
519 !(vp->flag & ZEROFIL)) { in getint()
598 if (!(vq->flag & INTEGER) && (vq->flag & ALLOC)) { in setint_n()
599 vq->flag &= ~ALLOC; in setint_n()
606 vq->flag |= ISSET|INTEGER; in setint_n()
607 if (vq->flag&SPECIAL) in setint_n()
620 if (vp->flag & (RJUST|LJUST)) { in formatstr()
629 if (vp->flag & (RJUST|LJUST)) { in formatstr()
632 if (vp->flag & RJUST) { in formatstr()
643 if (vp->flag & ZEROFIL && vp->flag & INTEGER) { in formatstr()
661 memset(p + n, (vp->flag & ZEROFIL) ? '0' : ' ', in formatstr()
671 if (vp->flag & ZEROFIL) in formatstr()
680 if (vp->flag & UCASEV_AL) { in formatstr()
683 } else if (vp->flag & LCASEV) { in formatstr()
698 char *op = (vp->flag&ALLOC) ? vp->val.s : NULL; in exportprep()
704 vp->flag |= ALLOC; in exportprep()
845 if (vp && ((vp->flag & (ARRAY | ASSOC)) == ASSOC)) in typeset()
858 if (new_refflag == SRF_DISABLE && (vp->flag & (ARRAY|ASSOC)) == ASSOC) in typeset()
859 vp->flag &= ~ASSOC; in typeset()
861 if (vp->flag & ARRAY) { in typeset()
868 if (tmp->flag & ALLOC) in typeset()
873 vp->flag &= ~ARRAY; in typeset()
875 vp->flag |= ASSOC; in typeset()
880 vpbase = (vp->flag & ARRAY) ? global(arrayname(tvar)) : vp; in typeset()
887 if ((vpbase->flag & RDONLY) && in typeset()
906 fake_assign = (t->flag & ISSET) && (!val || t != vp) && in typeset()
908 ((t->flag & INTEGER) && (clr & INTEGER)) || in typeset()
909 (!(t->flag & INTEGER) && (set & INTEGER))); in typeset()
911 if (t->flag & INTEGER) { in typeset()
916 free_me = (t->flag & ALLOC) ? t->val.s : in typeset()
919 t->flag &= ~ALLOC; in typeset()
921 if (!(t->flag & INTEGER) && (set & INTEGER)) { in typeset()
923 t->flag &= ~ALLOC; in typeset()
925 t->flag = (t->flag | set) & ~clr; in typeset()
943 if (t->flag & INTEGER) in typeset()
944 t->flag &= ~ISSET; in typeset()
946 if (t->flag & ALLOC) in typeset()
948 t->flag &= ~(ISSET|ALLOC); in typeset()
969 if (vp->flag&INTEGER) { in typeset()
984 if ((vpbase->flag&EXPORT) && !(vpbase->flag&INTEGER) && in typeset()
986 exportprep(vpbase, (vpbase->flag&ISSET) ? vpbase->val.s : null); in typeset()
999 if (vp->flag & ALLOC) in unset()
1001 if ((vp->flag & ARRAY) && (flags & 1)) { in unset()
1008 if (tmp->flag & ALLOC) in unset()
1015 vp->flag &= ~(ALLOC|ISSET); in unset()
1019 vp->flag &= SPECIAL | ((flags & 1) ? 0 : ARRAY|DEFINED); in unset()
1020 if (vp->flag & SPECIAL) in unset()
1113 (vp->flag&(ISSET|EXPORT)) == (ISSET|EXPORT)) { in makenv()
1122 vp2->flag &= ~EXPORT; in makenv()
1124 if ((vp->flag&INTEGER)) { in makenv()
1128 vp->flag &= ~(INTEGER|RDONLY|SPECIAL); in makenv()
1152 return (tp && (tp->flag & ISSET) ? tp->type : V_NONE); in special()
1210 vp->flag &= ~SPECIAL; in getspec()
1215 vp->flag |= SPECIAL; in getspec()
1230 if (vp->flag & ISSET) { in getspec()
1240 vp->flag &= ~SPECIAL; in getspec()
1242 vp->flag |= SPECIAL; in getspec()
1292 if (vp->flag & IMPORT) { in setspec()
1295 vp->flag &= ~SPECIAL; in setspec()
1305 vp->flag &= ~SPECIAL; in setspec()
1312 vp->flag |= SPECIAL; in setspec()
1416 vp->flag = (vp->flag | (ARRAY | DEFINED)) & ~ASSOC; in arraysearch()
1427 if (curr->flag&ISSET) in arraysearch()
1438 news->flag = (vp->flag & ~(ALLOC|DEFINED|ISSET|SPECIAL)) | AINDEX; in arraysearch()
1513 if ((vp->flag&RDONLY)) in set_array()
1530 if (!(vq->flag & ISSET)) in set_array()