Lines Matching refs:rule

77         /* during rule parsing, uid/gid lookup results are cached */
124 /* tokens of a rule are sorted/handled in this order */
190 unsigned char type; /* same in rule and key */
200 } rule;
225 struct token rule;
341 &rules->buf[token->rule.filename_off], token->rule.filename_line,
342 idx, token->rule.token_count,
343 &rules->buf[token->rule.label_off]);
973 log_error("temporary rule array too small");
1019 .rule.type = TK_RULE,
1022 /* the offset in the rule is limited to unsigned short */
1024 rule_tmp.rule.rule.filename_off = filename_off;
1025 rule_tmp.rule.rule.filename_line = lineno;
1374 rule_tmp.rule.rule.label_off = rules_add_string(rules, value);
1407 rule_tmp.rule.rule.can_set_name = true;
1420 rule_tmp.rule.rule.can_set_name = true;
1442 rule_tmp.rule.rule.can_set_name = true;
1464 rule_tmp.rule.rule.can_set_name = true;
1482 rule_tmp.rule.rule.can_set_name = true;
1531 rule_tmp.rule.rule.has_static_node = true;
1541 /* add rule token */
1542 rule_tmp.rule.rule.token_count = 1 + rule_tmp.token_cur;
1543 if (add_token(rules, &rule_tmp.rule) != 0)
1552 log_error("invalid rule '%s:%u'", filename, lineno);
1625 if (rules->tokens[j].rule.label_off == 0)
1627 if (!streq(label, rules_str(rules, rules->tokens[j].rule.label_off)))
1858 struct token *rule;
1869 /* loop through token list, match, run actions or forward to next rule */
1871 rule = cur;
1876 /* current rule */
1877 rule = cur;
1879 if (!can_set_name && rule->rule.can_set_name)
2077 rules_str(rules, rule->rule.filename_off),
2078 rule->rule.filename_line);
2113 rules_str(rules, rule->rule.filename_off),
2114 rule->rule.filename_line);
2129 rules_str(rules, rule->rule.filename_off),
2130 rule->rule.filename_line);
2144 rules_str(rules, rule->rule.filename_off),
2145 rule->rule.filename_line);
2262 rules_str(rules, rule->rule.filename_off),
2263 rule->rule.filename_line);
2288 rules_str(rules, rule->rule.filename_off),
2289 rule->rule.filename_line);
2311 rules_str(rules, rule->rule.filename_off),
2312 rule->rule.filename_line);
2324 rules_str(rules, rule->rule.filename_off),
2325 rule->rule.filename_line);
2336 rules_str(rules, rule->rule.filename_off),
2337 rule->rule.filename_line);
2348 rules_str(rules, rule->rule.filename_off),
2349 rule->rule.filename_line);
2361 rules_str(rules, rule->rule.filename_off),
2362 rule->rule.filename_line);
2434 rules_str(rules, rule->rule.filename_off), rule->rule.filename_line);
2440 rules_str(rules, rule->rule.filename_off),
2441 rule->rule.filename_line);
2474 rules_str(rules, rule->rule.filename_off), rule->rule.filename_line);
2484 rules_str(rules, rule->rule.filename_off), rule->rule.filename_line);
2502 rules_str(rules, rule->rule.filename_off),
2503 rule->rule.filename_line);
2523 rules_str(rules, rule->rule.filename_off), rule->rule.filename_line);
2537 rules_str(rules, rule->rule.filename_off),
2538 rule->rule.filename_line);
2562 /* fast-forward to next rule */
2563 cur = rule + rule->rule.token_count;
2569 struct token *rule;
2583 rule = cur;
2587 /* current rule */
2588 rule = cur;
2591 if (!rule->rule.has_static_node)
2691 /* fast-forward to next rule */
2692 cur = rule + rule->rule.token_count;