Lines Matching defs:to

175  * map name s to rule r
215 * return a pointer to a rule given its name,
306 * add a single non-duplicated prerequisite x to rule r
1027 * merge <from> into <to> according to op
1031 merge(register Rule_t* from, register Rule_t* to, int op)
1037 if (from == to || to->status != NOTYET && (to->status != UPDATE || !(from->property & P_use)))
1040 * this is a workaround to separate the view vs. local binding for this case:
1042 * to /dir/foo == foo
1043 * it may need to be examined for cases other than (state.mam.statix)
1046 if (!state.exec && state.mam.statix && (from->dynamic & D_alias) && (to->property & P_terminal) && from->uname && to->uname && *from->name != '/' && *to->name == '/')
1051 to->uname = from->name;
1052 if (!(tostate = staterule(RULE, to, NiL, 0)) && (fromstate = staterule(RULE, from, NiL, 0)))
1053 *staterule(RULE, to, NiL, 1) = *fromstate;
1058 if (to->name)
1059 debug((-4, "merging %s%s into %s", (op & MERGE_ATTR) ? "attributes of " : null, from->name, to->name));
1062 if (!(to->dynamic & D_bound) || (op & (MERGE_ASSOC|MERGE_FORCE)))
1063 to->property |= from->property & (P_accept|P_after|P_always|P_archive|P_before|P_command|P_dontcare|P_force|P_foreground|P_functional|P_ignore|P_implicit|P_joint|P_local|P_make|P_multiple|P_parameter|P_read|P_repeat|P_terminal|P_virtual);
1065 to->property |= from->property & (P_accept|P_after|P_always|P_archive|P_before|P_command|P_force|P_foreground|P_functional|P_implicit|P_joint|P_local|P_make|P_multiple|P_parameter|P_read|P_repeat|P_terminal|P_virtual);
1067 to->property &= ~P_terminal;
1069 to->property &= ~P_implicit;
1072 if (!to->action)
1073 to->action = from->action;
1074 to->attribute |= from->attribute;
1075 to->property |= from->property & (P_accept|P_immediate|P_target|P_use);
1076 to->dynamic |= from->dynamic & (D_dynamic|D_global|D_regular);
1078 to->dynamic |= from->dynamic & (D_entries|D_scanned);
1080 to->scan = from->scan;
1081 if (to->status == NOTYET)
1082 to->status = from->status;
1084 addprereq(to, p->rule, PREREQ_APPEND);
1085 if (!(to->property & P_state))
1090 to->mark |= M_bind;
1092 mergestate(from, to);
1096 to->mark &= ~M_bind;
1102 if (from->attribute && from != internal.accept && from != internal.ignore && from != internal.retain && ((to->property & (P_attribute|P_use)) != P_attribute || to == internal.accept || to == internal.ignore || to == internal.retain))
1103 to->attribute |= from->attribute;
1105 to->scan = from->scan;
1109 if (from->attribute && from != internal.accept && from != internal.ignore && from != internal.retain && ((to->property & (P_attribute|P_use)) != P_attribute || to == internal.accept || to == internal.ignore || to == internal.retain))
1110 to->attribute |= from->attribute & ~internal.ignore->attribute;
1111 if (!to->scan)
1112 to->scan = from->scan;
1117 * merge <from> state rules into <to>
1121 mergestate(Rule_t* from, Rule_t* to)
1134 tostate = staterule(RULE, to, NiL, 1);
1135 else if ((from->dynamic & D_alias) && (tostate = staterule(RULE, to, NiL, 0)))
1143 error(2, "MERGESTATE to: %s: %s time=[%s] event=[%s]", to->name, tostate->name, timestr(tostate->time), timestr(tostate->event));
1152 * on <to> will be forced out of date rather
1156 reason((1, "%s alias has changed to %s", unbound(from), unbound(to)));
1157 to->dynamic |= D_aliaschanged;
1168 from = to;
1169 to = t;
1179 if ((fromstate = staterule(i, from, NiL, 0)) && !staterule(i, to, NiL, 0))
1181 tostate = staterule(i, to, NiL, 1);
1191 * negate <from> attributes in <to>
1195 negate(register Rule_t* from, register Rule_t* to)
1197 to->attribute &= ~from->attribute;
1198 to->property &= ~(from->property & (P_accept|P_after|P_always|P_archive|P_before|P_command|P_dontcare|P_force|P_functional|P_ignore|P_immediate|P_implicit|P_local|P_make|P_multiple|P_parameter|P_repeat|P_target|P_terminal|P_use|P_virtual));
1199 to->dynamic &= ~(from->dynamic & (D_dynamic|D_entries|D_regular));
1201 to->scan = 0;
1203 to->semaphore = 0;
1224 * NOTE: this is required to sync pre 2001-05-09 make objects
1392 * NOTE: version.c may reference some of these names, not to mention