Lines Matching refs:rule
134 * The first, empty rule
160 * Finds the next rule according to a goto action statement,
167 struct rewrite_rule *rule
174 assert( rule != NULL );
179 for ( ; n > 1 && rule != NULL ; n-- ) {
180 rule = rule->lr_next;
183 for ( ; n < 1 && rule != NULL ; n++ ) {
184 rule = rule->lr_prev;
188 return rule;
193 * OK: fine; if *result != NULL rule matched and rewrite succeeded.
194 * STOP: fine, rule matched; stop processing following rules
195 * UNWILL: rule matched; force 'unwilling to perform'
206 struct rewrite_rule *rule;
226 for ( rule = context->lc_rule->lr_next;
227 rule != NULL && op->lo_num_passes < info->li_max_passes;
228 rule = rule->lr_next, op->lo_num_passes++ ) {
232 * Apply a single rule
234 rc = rewrite_rule_apply( info, op, rule, s, &res );
237 * A rule may return:
255 if ( rule->lr_action != NULL ) {
259 for ( action = rule->lr_action;
281 rule = rewrite_action_goto( action, rule );
282 if ( rule == NULL ) {
298 if ( rule->lr_next == NULL ) {
313 * if res is defined, it means the rule matched and we
329 for ( action = rule->lr_action;
356 rule = rewrite_action_goto( action, rule );
357 if ( rule == NULL ) {
380 * in case of last rule we need to set the
383 } else if ( rule->lr_next == NULL ) {