Lines Matching refs:state

227  *	D	definition of state variable: -Dx[=y]
228 * E alternate definition of state variable: x=[y]
236 * Sc return staterule name given non-state rule
237 * U return variable or non-state name given state rule
575 if ((r->dynamic & D_alias) && (!state.context || !iscontext(r->uname)) && (r = makerule(s)))
577 if (state.expandview && state.fsview)
630 sfputr(xp, state.localview ? localview(p->rule) : p->rule->name, -1);
699 a = state.mam.out ? 30 : BREAKARGS;
1321 else if (!(state.questionable & 0x20000000) && !strchr(s, '/') && (t = strrchr(internal.pwd, '/')) && streq(s, t + 1))
1662 else if (!(state.questionable & 0x40000000) && !(flags & ORDER_prereqs) && (r->mark & (M_INIT|M_LHS|M_MUST|M_RHS|M_SKIP)) == M_RHS)
1739 sfprintf(xp, "%s/%s%c", state.mam.statix ? internal.dot->name : internal.pwd, s, 0);
1753 s = state.localview ? localview(makerule(t)) : t;
1779 if (((state.questionable & 0x10000000) || !(s = r->uname) || !(t = strrchr(r->name, '/')) || !streq(t+1, s)) && ((t = getbound(r->name)) || (s = r->uname) && (t = getbound(s))))
1790 s = (!(state.questionable & 0x00008000) && *r->name == '/') ? r->uname : (char*)0;
1791 t = state.localview ? localview(x) : x->name;
1792 if ((r->dynamic & D_alias) && !(state.questionable & 0x10000000))
1801 t = state.localview ? localview(x) : x->name;
1804 sfputr(xp, state.localview ? localview(x) : x->name, -1);
1820 sfputr(xp, state.localview ? localview(r) : r->name, -1);
1853 if (state.mam.statix && r && !(r->property & P_state) && !(r->dynamic & D_alias))
1948 if (!state.maxview)
1953 else if (state.fsview)
1983 c = state.view[n].rootlen;
1984 if (!strncmp(s, state.view[n].root, c) && (!s[c] || s[c] == '/') && *(s += c))
1994 if (i > state.maxview)
1996 if (!strncmp(s, state.view[i].root, n = state.view[i].rootlen) && (!*(s + n) || *(s + n) == '/'))
2011 for (; n <= state.maxview; n++)
2014 sfprintf(internal.nam, "%s/%s", state.view[n].root, s);
2017 if (*state.view[n].path != '/')
2019 sfprintf(internal.nam, "%s", state.view[n].path);
2050 if (sepcmp(sep, (unsigned long)((r->dynamic & D_global) ? state.maxview : r->view), (unsigned long)n))
2085 if (r->view && (!state.fsview || state.expandview))
2087 n = state.view[r->view].pathlen;
2091 for (t = state.view[r->view].path + n; t > state.view[r->view].path && (*t != '/' || --n > 0); t--);
2092 n = t - state.view[r->view].path;
2094 if (!strncmp(s, state.view[r->view].path, n) && *(s + n) == '/')
2136 else if (state.maxview && !state.fsview && r->view)
2138 c = state.view[r->view].pathlen;
2139 if (!strncmp(s, state.view[r->view].path, c) && (!s[c] || s[c] == '/') && *(s += c))
2149 s = state.view[r->view].path;
2450 tst = state.mam.regress && state.user > 1 && !(r->dynamic & D_bound);
2453 sfprintf(state.mam.out, "%sbind %s\n", state.mam.label, mamname(r));
2462 for (fp = state.frame; fp->target != r; fp = fp->parent)
2488 tst = (notfile(r) || !r->time && ((state.questionable & 0x04000000) || !(r->dynamic & D_triggered)) || r->status == IGNORE || state.exec && r->status != NOTYET && (x = staterule(RULE, r, NiL, 0)) && !x->time || (r->dynamic & (D_member|D_membertoo)) == D_member) ? 0 : 'F';
2501 oframe = state.frame;
2502 if (!(state.frame = r->active))
2506 state.frame = frame.parent = &frame;
2509 state.frame = oframe;
2522 if (state.localview > 1)
2619 * state.accept | state.ignorestate
2626 if (r->action || (r->property & (P_archive|P_command)) || !(state.questionable & 0x00004000) && (r->dynamic & D_dynamic))
2782 error(2, "%c: unknown state op", op);
2790 tm = state.frame->target->time;
2882 for (pp = 0, ap = state.frame; ap && ap != pp; pp = ap, ap = ap->parent)
3106 if ((state.questionable & 0x00040000) && !(sep & LT))
3143 if (!(state.questionable & 0x00000200))
3424 if (state.expandall)
3429 state.expandall = 1;
3463 if (state.test & 0x00000010)
3635 if (state.test & 0x00000010)
3919 state.expandall = 0;
3935 ctx = !!state.context;
4454 state.expandall = 0;
4622 if (state.mam.statix && nvars > 1 && strmatch(v, "${mam_*}") && (!ed || !*ed))
4719 if (a == sfstrbase(internal.val) || state.val)