Lines Matching refs:regs

75 #  define re_match_2(bufp, string1, size1, string2, size2, pos, regs, stop) \  argument
76 __re_match_2 (bufp, string1, size1, string2, size2, pos, regs, stop)
77 # define re_match(bufp, string, size, pos, regs) \ argument
78 __re_match (bufp, string, size, pos, regs)
79 # define re_search(bufp, string, size, startpos, range, regs) \ argument
80 __re_search (bufp, string, size, startpos, range, regs)
84 # define re_search_2(bufp, st1, s1, st2, s2, startpos, range, regs, stop) \ argument
85 __re_search_2 (bufp, st1, s1, st2, s2, startpos, range, regs, stop)
418 struct re_registers *regs,
424 struct re_registers *regs, int stop);
437 struct re_registers *regs,
446 struct re_registers *regs, int stop);
4891 struct re_registers *regs, unsigned num_regs, in weak_alias()
4897 regs->num_regs = num_regs; in weak_alias()
4898 regs->start = starts; in weak_alias()
4899 regs->end = ends; in weak_alias()
4904 regs->num_regs = 0; in weak_alias()
4905 regs->start = regs->end = (regoff_t *) 0; in weak_alias()
4919 int startpos, int range, struct re_registers *regs) in weak_alias()
4922 regs, size); in weak_alias()
4953 struct re_registers *regs, int stop) in weak_alias()
4958 range, regs, stop); in weak_alias()
4962 range, regs, stop); in weak_alias()
5012 struct re_registers *regs, int stop)
5203 size2, startpos, regs, stop,
5209 size2, startpos, regs, stop);
5396 int size, int pos, struct re_registers *regs)
5402 pos, regs, size,
5407 pos, regs, size);
5452 struct re_registers *regs, int stop) in re_match_2() argument
5458 pos, regs, stop, in re_match_2()
5463 pos, regs, stop); in re_match_2()
5534 struct re_registers *regs, in wcs_re_match_2_internal() argument
5549 struct re_registers *regs, int stop) in wcs_re_match_2_internal()
5980 if (regs && !bufp->no_sub) in wcs_re_match_2_internal()
5987 regs->num_regs = MAX (RE_NREGS, num_regs + 1); in wcs_re_match_2_internal()
5988 regs->start = TALLOC (regs->num_regs, regoff_t); in wcs_re_match_2_internal()
5989 regs->end = TALLOC (regs->num_regs, regoff_t); in wcs_re_match_2_internal()
5990 if (regs->start == NULL || regs->end == NULL) in wcs_re_match_2_internal()
6001 if (regs->num_regs < num_regs + 1) in wcs_re_match_2_internal()
6003 regs->num_regs = num_regs + 1; in wcs_re_match_2_internal()
6004 RETALLOC (regs->start, regs->num_regs, regoff_t); in wcs_re_match_2_internal()
6005 RETALLOC (regs->end, regs->num_regs, regoff_t); in wcs_re_match_2_internal()
6006 if (regs->start == NULL || regs->end == NULL) in wcs_re_match_2_internal()
6023 if (regs->num_regs > 0) in wcs_re_match_2_internal()
6025 regs->start[0] = pos; in wcs_re_match_2_internal()
6028 regs->end[0] = mbs_offset1 != NULL ? in wcs_re_match_2_internal()
6031 regs->end[0] = csize1 + (mbs_offset2 != NULL ? in wcs_re_match_2_internal()
6034 regs->end[0] = (MATCHING_IN_FIRST_STRING in wcs_re_match_2_internal()
6042 for (mcnt = 1; (unsigned) mcnt < MIN (num_regs, regs->num_regs); in wcs_re_match_2_internal()
6046 regs->start[mcnt] = regs->end[mcnt] = -1; in wcs_re_match_2_internal()
6049 regs->start[mcnt] in wcs_re_match_2_internal()
6051 regs->end[mcnt] in wcs_re_match_2_internal()
6061 for (mcnt = num_regs; (unsigned) mcnt < regs->num_regs; mcnt++) in wcs_re_match_2_internal()
6062 regs->start[mcnt] = regs->end[mcnt] = -1; in wcs_re_match_2_internal()
8011 struct re_registers regs;
8028 regs.num_regs = nmatch;
8029 regs.start = TALLOC (nmatch * 2, regoff_t);
8030 if (regs.start == NULL)
8032 regs.end = regs.start + nmatch;
8038 want_reg_info ? &regs : (struct re_registers *) 0);
8049 pmatch[r].rm_so = regs.start[r];
8050 pmatch[r].rm_eo = regs.end[r];
8055 free (regs.start);