Lines Matching refs:num_regs
1694 /* We used to use (num_regs - 1), which is the number of registers
2239 /* Make the register vectors big enough for NUM_REGS registers,
2243 PREFIX(regex_grow_registers) (int num_regs)
2245 if (num_regs > regs_allocated_size)
2247 RETALLOC_IF (regstart, num_regs, const char *);
2248 RETALLOC_IF (regend, num_regs, const char *);
2249 RETALLOC_IF (old_regstart, num_regs, const char *);
2250 RETALLOC_IF (old_regend, num_regs, const char *);
2251 RETALLOC_IF (best_regstart, num_regs, const char *);
2252 RETALLOC_IF (best_regend, num_regs, const char *);
2253 RETALLOC_IF (PREFIX(reg_info), num_regs, PREFIX(register_info_type));
2254 RETALLOC_IF (reg_dummy, num_regs, const char *);
2255 RETALLOC_IF (PREFIX(reg_info_dummy), num_regs, PREFIX(register_info_type));
2257 regs_allocated_size = num_regs;
4199 int num_regs = bufp->re_nsub + 1;
4231 PREFIX(regex_grow_registers) (num_regs);
4891 /* Set REGS to hold NUM_REGS registers, storing them in STARTS and
4895 be at least NUM_REGS * sizeof (regoff_t) bytes long.
4897 If NUM_REGS == 0, then subsequent matches should allocate their own
4906 struct re_registers *regs, unsigned num_regs,
4909 if (num_regs)
4912 regs->num_regs = num_regs;
4919 regs->num_regs = 0;
5631 size_t num_regs = bufp->re_nsub + 1;
5712 regstart = REGEX_TALLOC (num_regs, const CHAR_T *);
5713 regend = REGEX_TALLOC (num_regs, const CHAR_T *);
5714 old_regstart = REGEX_TALLOC (num_regs, const CHAR_T *);
5715 old_regend = REGEX_TALLOC (num_regs, const CHAR_T *);
5716 best_regstart = REGEX_TALLOC (num_regs, const CHAR_T *);
5717 best_regend = REGEX_TALLOC (num_regs, const CHAR_T *);
5718 reg_info = REGEX_TALLOC (num_regs, PREFIX(register_info_type));
5719 reg_dummy = REGEX_TALLOC (num_regs, const CHAR_T *);
5720 reg_info_dummy = REGEX_TALLOC (num_regs, PREFIX(register_info_type));
5804 for (mcnt = 1; (unsigned) mcnt < num_regs; mcnt++)
5960 for (mcnt = 1; (unsigned) mcnt < num_regs; mcnt++)
5986 for (mcnt = 1; (unsigned) mcnt < num_regs; mcnt++)
6002 extra element beyond `num_regs' for the `-1' marker
6004 regs->num_regs = MAX (RE_NREGS, num_regs + 1);
6005 regs->start = TALLOC (regs->num_regs, regoff_t);
6006 regs->end = TALLOC (regs->num_regs, regoff_t);
6018 if (regs->num_regs < num_regs + 1)
6020 regs->num_regs = num_regs + 1;
6021 RETALLOC (regs->start, regs->num_regs, regoff_t);
6022 RETALLOC (regs->end, regs->num_regs, regoff_t);
6040 if (regs->num_regs > 0)
6057 /* Go through the first `min (num_regs, regs->num_regs)'
6059 for (mcnt = 1; (unsigned) mcnt < MIN (num_regs, regs->num_regs);
6078 for (mcnt = num_regs; (unsigned) mcnt < regs->num_regs; mcnt++)
8049 regs.num_regs = nmatch;