(check_dst_limits): Hoist computation of the source
authordrepper <drepper>
Mon, 8 Nov 2004 21:48:14 +0000 (21:48 +0000)
committerdrepper <drepper>
Mon, 8 Nov 2004 21:48:14 +0000 (21:48 +0000)
commitee6b9f153ced8decb5414b389ae9927b6514d3bb
treeaf6933e3e5b6e5daccd429bc0c9e9b59630dcd8f
parent40c4f5b29caadf863abf40190e9f46e94b20e783
(check_dst_limits): Hoist computation of the source
and destination bkref_idx out of the loop.  Pass it to
check_dst_limits_calc_pos.
(check_dst_limits_calc_pos_1): New function, containing the recursive
loop of check_dst_limits_calc_pos; uses the "more" field of
struct re_backref_cache to control the loop.
(check_dst_limits_calc_pos): Store into "boundaries" the position
relative to lim's start and end positions.  Do not accept eclosures,
accept bkref_idx instead.  Call check_dst_limits_calc_pos_1 to do the work.
(sift_states_bkref): Use the "more" field of struct re_backref_cache
to control the loop.  A big "if" was turned into a continue and the
function was reindented.
(get_subexp): Use the "more" field of struct re_backref_cache
to control the loop.
(match_ctx_add_entry): Initialize the bkref_ents' "more" field.
(search_cur_bkref_entry): Return -1 if out of bounds.
posix/regexec.c