Lines Matching refs:flag
106 if ((vp = *vpp++) != NULL && (vp->flag&SPECIAL)) { in popblock()
107 if ((vq = global(vp->name))->flag & ISSET) in popblock()
146 tp->flag = DEFINED|ISSET; in initvar()
196 if (vp && (vp->flag & (DEFINED | ASSOC | ARRAY)) == in array_index_calc()
263 vp->flag = DEFINED; in isglobal()
277 vp->flag |= RDONLY; in isglobal()
282 vp->flag |= RDONLY; in isglobal()
285 vp->flag |= ISSET|INTEGER; in isglobal()
293 vp->flag &= ~(ISSET|INTEGER); in isglobal()
302 vp->flag &= ~INTEGER; in isglobal()
306 vp->flag &= ~(ISSET|INTEGER); in isglobal()
319 vp->flag |= DEFINED; in isglobal()
321 vp->flag |= SPECIAL; in isglobal()
351 vp->flag = DEFINED|RDONLY; in local()
357 if (copy && !(vp->flag & DEFINED)) { in local()
362 vp->flag |= vq->flag & in local()
365 if (vq->flag & INTEGER) in local()
372 vp->flag |= DEFINED; in local()
374 vp->flag |= SPECIAL; in local()
389 if ((vp->flag&SPECIAL)) in str_val()
391 if (!(vp->flag&ISSET)) in str_val()
394 else if (!(vp->flag&INTEGER)) in str_val()
407 const char *digits = (vp->flag & UCASEV_AL) ? in str_val()
411 if (vp->flag & INT_U) in str_val()
444 if (!(vp->flag & INT_U) && vp->val.i < 0) in str_val()
447 if (vp->flag & (RJUST|LJUST)) in str_val()
463 if ((vq->flag & RDONLY) && !no_ro_check) { in setstr()
469 if (!(vq->flag&INTEGER)) { in setstr()
473 if ((vq->flag&ALLOC)) { in setstr()
485 if (s && (vq->flag & (UCASEV_AL|LCASEV|LJUST|RJUST))) in setstr()
487 if ((vq->flag&EXPORT)) in setstr()
491 vq->val.s = aresizeif(cursz, (vq->flag & ALLOC) ? in setstr()
494 vq->flag |= ALLOC; in setstr()
503 vq->flag |= ISSET; in setstr()
504 if ((vq->flag&SPECIAL)) in setstr()
513 if (!(vq->flag&INTEGER)) { in setint()
514 vtemp->flag = (ISSET|INTEGER); in setint()
522 vq->flag |= ISSET; in setint()
523 if ((vq->flag&SPECIAL)) in setint()
534 if (vp->flag & SPECIAL) in getint()
537 if (!(vp->flag & ISSET) || (!(vp->flag & INTEGER) && vp->val.s == NULL)) in getint()
539 if (vp->flag & INTEGER) { in getint()
565 !(vp->flag & ZEROFIL)) { in getint()
644 if (!(vq->flag & INTEGER) && (vq->flag & ALLOC)) { in setint_n()
645 vq->flag &= ~ALLOC; in setint_n()
652 vq->flag |= ISSET|INTEGER; in setint_n()
653 if (vq->flag&SPECIAL) in setint_n()
666 if (vp->flag & (RJUST|LJUST)) { in formatstr()
675 if (vp->flag & (RJUST|LJUST)) { in formatstr()
678 if (vp->flag & RJUST) { in formatstr()
689 if (vp->flag & ZEROFIL && vp->flag & INTEGER) { in formatstr()
707 memset(p + n, (vp->flag & ZEROFIL) ? '0' : ' ', in formatstr()
717 if (vp->flag & ZEROFIL) in formatstr()
726 if (vp->flag & UCASEV_AL) { in formatstr()
729 } else if (vp->flag & LCASEV) { in formatstr()
743 char *cp = (vp->flag & ALLOC) ? vp->val.s : NULL; in exportprep()
747 vp->flag |= ALLOC; in exportprep()
905 if (vp && ((vp->flag & (ARRAY | ASSOC)) == ASSOC)) in vtypeset()
919 if (new_refflag == SRF_DISABLE && (vp->flag & (ARRAY|ASSOC)) == ASSOC) in vtypeset()
920 vp->flag &= ~ASSOC; in vtypeset()
922 if (vp->flag & ARRAY) { in vtypeset()
929 if (tmp->flag & ALLOC) in vtypeset()
934 vp->flag &= ~ARRAY; in vtypeset()
936 vp->flag |= ASSOC; in vtypeset()
941 vpbase = (vp->flag & ARRAY) ? global(arrayname(tvar)) : vp; in vtypeset()
948 if ((vpbase->flag & RDONLY) && in vtypeset()
967 fake_assign = (t->flag & ISSET) && (!val || t != vp) && in vtypeset()
969 ((t->flag & INTEGER) && (clr & INTEGER)) || in vtypeset()
970 (!(t->flag & INTEGER) && (set & INTEGER))); in vtypeset()
972 if (t->flag & INTEGER) { in vtypeset()
977 free_me = (t->flag & ALLOC) ? t->val.s : in vtypeset()
980 t->flag &= ~ALLOC; in vtypeset()
982 if (!(t->flag & INTEGER) && (set & INTEGER)) { in vtypeset()
984 t->flag &= ~ALLOC; in vtypeset()
986 t->flag = (t->flag | set) & ~clr; in vtypeset()
1004 if (t->flag & INTEGER) in vtypeset()
1005 t->flag &= ~ISSET; in vtypeset()
1007 if (t->flag & ALLOC) in vtypeset()
1009 t->flag &= ~(ISSET|ALLOC); in vtypeset()
1022 if ((vp->flag & (ISSET|ALLOC|SPECIAL|INTEGER|UCASEV_AL|LCASEV|LJUST|RJUST)) != (ISSET|ALLOC)) { in vtypeset()
1035 if (vp->flag&INTEGER) { in vtypeset()
1051 if ((vpbase->flag & (EXPORT|INTEGER)) == EXPORT && in vtypeset()
1053 exportprep(vpbase, (vpbase->flag & ISSET) ? in vtypeset()
1067 if (vp->flag & ALLOC) in unset()
1069 if ((vp->flag & ARRAY) && (flags & 1)) { in unset()
1076 if (tmp->flag & ALLOC) in unset()
1083 vp->flag &= ~(ALLOC|ISSET); in unset()
1087 vp->flag &= SPECIAL | ((flags & 1) ? 0 : ARRAY|DEFINED); in unset()
1088 if (vp->flag & SPECIAL) in unset()
1182 (vp->flag&(ISSET|EXPORT)) == (ISSET|EXPORT)) { in makenv()
1191 vp2->flag &= ~EXPORT; in makenv()
1193 if ((vp->flag&INTEGER)) { in makenv()
1197 vp->flag &= ~(INTEGER|RDONLY|SPECIAL); in makenv()
1228 return (tp && (tp->flag & ISSET) ? tp->type : V_NONE); in special()
1290 vp->flag &= ~SPECIAL; in getspec()
1295 vp->flag |= SPECIAL; in getspec()
1310 if (vp->flag & ISSET) { in getspec()
1320 vp->flag &= ~SPECIAL; in getspec()
1322 vp->flag |= SPECIAL; in getspec()
1341 if (!(vp->flag&INTEGER)) { in setspec()
1400 if (vp->flag & IMPORT) { in setspec()
1403 vp->flag &= ~SPECIAL; in setspec()
1413 vp->flag &= ~SPECIAL; in setspec()
1420 vp->flag |= SPECIAL; in setspec()
1554 vp->flag = (vp->flag | (ARRAY | DEFINED)) & ~ASSOC; in arraysearch()
1565 if (curr->flag&ISSET) in arraysearch()
1576 news->flag = (vp->flag & ~(ALLOC|DEFINED|ISSET|SPECIAL)) | AINDEX; in arraysearch()
1651 if ((vp->flag&RDONLY)) in set_array()
1671 if (!(vq->flag & ISSET)) in set_array()
1861 vp->flag = DEFINED | RDONLY; in record_match()
1870 uint32_t fset = 0, fclr = 0, flag; in c_typeset() local
1917 flag = 0; in c_typeset()
1920 flag = LJUST; in c_typeset()
1924 flag = RJUST; in c_typeset()
1933 flag = INT_U; in c_typeset()
1936 flag = ZEROFIL; in c_typeset()
1953 flag = INTEGER; in c_typeset()
1957 flag = LCASEV; in c_typeset()
1971 flag = RDONLY; in c_typeset()
1974 flag = TRACE; in c_typeset()
1978 flag = UCASEV_AL; in c_typeset()
1981 flag = EXPORT; in c_typeset()
1987 fclr |= flag; in c_typeset()
1988 fset &= ~flag; in c_typeset()
1991 fset |= flag; in c_typeset()
1992 fclr &= ~flag; in c_typeset()
2077 f->flag |= fset; in c_typeset()
2078 f->flag &= ~fclr; in c_typeset()
2081 tobool(f->flag & FKSH), in c_typeset()
2099 flag = fset | fclr; in c_typeset()
2103 if (flag && (vp->flag & flag) == 0) in c_typeset()
2107 tobool(vp->flag & FKSH), in c_typeset()
2117 c_typeset_vardump(vp, flag, thing, in c_typeset()
2121 c_typeset_vardump_recursive(e->loc, flag, thing, pflag, istset); in c_typeset()
2126 c_typeset_vardump_recursive(struct block *l, uint32_t flag, int thing, in c_typeset_vardump_recursive() argument
2132 c_typeset_vardump_recursive(l->next, flag, thing, pflag, istset); in c_typeset_vardump_recursive()
2135 c_typeset_vardump(vp, flag, thing, 0, pflag, istset); in c_typeset_vardump_recursive()
2140 c_typeset_vardump(struct tbl *vp, uint32_t flag, int thing, int any_set, in c_typeset_vardump() argument
2154 if (tvp->flag & ISSET) { in c_typeset_vardump()
2168 if (!any_set && !(vp->flag & USERATTRIB)) in c_typeset_vardump()
2170 if (flag && (vp->flag & flag) == 0) in c_typeset_vardump()
2172 if (!(vp->flag & ARRAY)) in c_typeset_vardump()
2181 if (any_set && !(vp->flag & ISSET)) in c_typeset_vardump()
2184 if (!thing && !flag) { in c_typeset_vardump()
2195 if (((vp->flag & (ARRAY | ASSOC)) == ASSOC)) in c_typeset_vardump()
2197 if ((vp->flag & INTEGER)) in c_typeset_vardump()
2199 if ((vp->flag & EXPORT)) in c_typeset_vardump()
2201 if ((vp->flag & RDONLY)) in c_typeset_vardump()
2203 if ((vp->flag & TRACE)) in c_typeset_vardump()
2205 if ((vp->flag & LJUST)) in c_typeset_vardump()
2207 if ((vp->flag & RJUST)) in c_typeset_vardump()
2209 if ((vp->flag & ZEROFIL)) in c_typeset_vardump()
2211 if ((vp->flag & LCASEV)) in c_typeset_vardump()
2213 if ((vp->flag & UCASEV_AL)) in c_typeset_vardump()
2215 if ((vp->flag & INT_U)) in c_typeset_vardump()
2219 (flag & EXPORT) ? Texport : Treadonly, ""); in c_typeset_vardump()
2225 if ((!thing && !flag && pflag) || in c_typeset_vardump()
2226 (thing == '-' && (vp->flag & ISSET))) { in c_typeset_vardump()
2230 if ((vp->flag & (INTEGER | LJUST | RJUST)) == INTEGER) in c_typeset_vardump()