Lines Matching refs:max_sub
106 size_t max_sub; /* largest $number in replacement */ member
147 size_t max_sub; /* largest $number seen */ member
175 if (n < 1 || n > match_rule->max_sub) in dict_regexp_expand()
256 match_rule->max_sub > 0 ? in dict_regexp_lookup()
257 match_rule->max_sub + 1 : 0, in dict_regexp_lookup()
274 if (match_rule->max_sub == 0) in dict_regexp_lookup()
506 if (n > ctxt->max_sub) in dict_regexp_prescan()
507 ctxt->max_sub = n; in dict_regexp_prescan()
508 } else if (type == MAC_PARSE_LITERAL && ctxt->max_sub == 0) { in dict_regexp_prescan()
596 prescan_context.max_sub = 0; in dict_regexp_parseline()
638 if (prescan_context.max_sub == 0) in dict_regexp_parseline()
640 if (prescan_context.max_sub > 0 && first_pat.match == 0) { in dict_regexp_parseline()
645 if (prescan_context.max_sub > 0 && (dict->flags & DICT_FLAG_NO_REGSUB)) { in dict_regexp_parseline()
654 if (prescan_context.max_sub > first_exp->re_nsub) { in dict_regexp_parseline()
657 (int) prescan_context.max_sub); in dict_regexp_parseline()
673 match_rule->max_sub = prescan_context.max_sub; in dict_regexp_parseline()
761 size_t max_sub = 0; in dict_regexp_open() local
826 if (((DICT_REGEXP_MATCH_RULE *) rule)->max_sub > max_sub) in dict_regexp_open()
827 max_sub = ((DICT_REGEXP_MATCH_RULE *) rule)->max_sub; in dict_regexp_open()
868 if (max_sub > 0) in dict_regexp_open()
870 (regmatch_t *) mymalloc(sizeof(regmatch_t) * (max_sub + 1)); in dict_regexp_open()