Lines Matching refs:set
76 #define CON_set (11<<10) /* set options */
171 "set", CON_set,
1437 set(sfstrseek(sp, n, SEEK_SET), 1, pp->scoped);
2086 } *att, clr, set;
2238 zero(set);
2239 set.op = op;
2241 set.op |= A_target;
2243 while (s = getarg(&rhs, &set.op))
2281 set.op |= A_negate;
2285 att = &set;
2299 set.op |= A_negate;
2303 att = &set;
2363 if ((set.op & (A_metarule|A_special)) == A_metarule || !*s)
2381 else if (set.op & A_scope)
2384 set.rule.dynamic |= D_hasscope;
2393 if (!(set.rule.dynamic & D_dynamic) && !(r->dynamic & D_scope) && isdynamic(r->name))
2394 set.rule.dynamic |= D_dynamic;
2396 merge(r, &set.rule, MERGE_ATTR);
2402 set.op |= A_target;
2406 if (*act || (set.op & (A_null|A_target)) || (set.rule.property & (P_make|P_local)) == (P_make|P_local))
2407 set.rule.property |= P_target;
2408 joint = (set.rule.property & P_joint) ? internal.joint : 0;
2415 name = getarg(&lhs, &set.op);
2424 name = getarg(&lhs, &set.op);
2437 if ((set.op & (A_metarule|A_special)) == A_metarule)
2461 addprereq(in, x, ((set.op & A_insert) || *(s + strlen(s) - 1) != '%') ? PREREQ_INSERT : PREREQ_APPEND);
2462 if (set.op & A_negate)
2468 name = getarg(&lhs, &set.op);
2491 c = ((set.op & A_clear) && !prereqs && !*act) ? PREREQ_DELETE : PREREQ_APPEND;
2504 if (name = getarg(&lhs, &set.op))
2513 } while (name = getarg(&lhs, &set.op));
2517 addprereq(metainfo((set.rule.property & P_terminal) ? 'T' : 'N', NiL, NiL, 1), in, c);
2523 name = getarg(&lhs, &set.op);
2529 name = getarg(&lhs, &set.op);
2530 if (!internal.main->prereqs && !state.global && !(set.rule.property & P_operator) && !(set.op & A_special) && !special(r) && !special(&set.rule))
2548 if (!((r->property|set.rule.property) & P_immediate) && (r->status == UPDATE || r->status == MAKING))
2550 if (*act || (set.op & A_null))
2555 if (set.op & (A_clear|A_copy|A_delete|A_insert))
2564 if (set.op & (A_clear|A_copy))
2576 if ((r->property & P_metarule) && (prereqs || *act || (set.op & A_null)))
2581 if (set.op & A_copy)
2605 if (set.op & A_delete)
2609 negate(&set.rule, r);
2613 if (set.op & A_null)
2618 if ((set.op & A_insert) && (r->property & (P_joint|P_target)) == (P_joint|P_target))
2622 if (isactive && (set.rule.dynamic & D_dynamic))
2631 r->prereqs = (set.op & A_insert) ? append(p, r->prereqs) : append(r->prereqs, p);
2646 if (s && r->action != s && !state.user && !(set.rule.property & P_operator) && !(set.op & A_special) && !special(r) && !special(&set.rule))
2654 merge(&set.rule, r, MERGE_ATTR|MERGE_FORCE);
2655 if (set.op & A_negate)
2662 if (!isactive && ((set.rule.dynamic & D_dynamic) || isdynamic(r->name)))
2664 if (((set.rule.property|clr.rule.property) & P_functional) && !(r->property & P_state) && ((v = getvar(r->name)) || (v = setvar(r->name, null, 0))))
2666 if (set.rule.property & P_functional)
2671 if (set.rule.property & P_immediate)
2673 if (set.rule.property & P_operator)
2683 if (set.rule.property & P_readonly)
2685 if (set.rule.semaphore)
2686 r->semaphore = set.rule.semaphore + 1;
2687 if ((set.rule.property & P_target) && !((clr.rule.property | r->property) & P_target))
2693 if ((set.rule.property & P_use) && (!(r->property & P_attribute) || !r->attribute))
2700 if ((set.rule.dynamic | clr.rule.dynamic) & ~D_dynamic)
2702 r->dynamic |= (set.rule.dynamic & ~D_dynamic);
2706 x->dynamic |= (set.rule.dynamic & ~D_dynamic);
2713 x->dynamic |= (set.rule.dynamic & ~D_dynamic);
2724 if ((set.rule.property & P_attribute) && !(r->property & P_attribute))
2742 if ((set.op & A_scan) && !r->scan)