Lines Matching refs:rules
31 * read the base and global rules
44 * read the base rules
47 if (!(s = state.rules))
48 state.rules = null;
55 state.rules = strdup(sfstruse(tmp));
58 setvar(external.rules, state.rules, 0)->property |= V_compiled;
112 needrules = !state.base && !state.rules;
122 if (!state.rules)
161 if (state.rules && !state.explicitrules)
163 edit(internal.tmp, state.rules, DELETE, KEEP, DELETE);
164 edit(internal.wrk, b = getval(external.rules, VAL_PRIMARY), DELETE, KEEP, DELETE);
167 error(state.exec || state.mam.out ? -1 : 1, "%s: base rules changed to %s", sfstrbase(internal.tmp), sfstrbase(internal.wrk));
168 state.rules = b;
203 * base rules must be determined and loaded
204 * along with the global rules before the parse
274 * checking for base rules
296 if (strneq(s, "rules", 5))
302 rules(*t == '/' && *(t + 1) == '*' ? null : t);
320 if (strneq(s, "rules", 5))
323 rules(*s == '/' && *(s + 1) == '*' ? null : s);
375 if (!state.rules)
376 state.rules = getval(external.rules, VAL_PRIMARY);
478 error((type & COMP_INCLUDE) ? 2 : 3, "%s: cannot read%s", file, (type & COMP_INCLUDE) ? " include file" : (type & COMP_GLOBAL) ? " global rules" : (type & COMP_BASE) ? " base rules" : null);