Added last minute patch for .*?$ failing in the non-recursive algorithm.

[SVN r21525]
This commit is contained in:
John Maddock
2004-01-07 12:00:51 +00:00
parent 3e60ca3481
commit 6cbda47155

View File

@ -1005,7 +1005,7 @@ bool perl_matcher<BidiIterator, Allocator, traits, Allocator2>::unwind_slow_dot_
{ {
// can't repeat any more, remove the pushed state: // can't repeat any more, remove the pushed state:
destroy_single_repeat(); destroy_single_repeat();
if(rep->can_be_null & mask_skip) if(0 == (rep->can_be_null & mask_skip))
return true; return true;
} }
else if(count == rep->max) else if(count == rep->max)
@ -1057,7 +1057,7 @@ bool perl_matcher<BidiIterator, Allocator, traits, Allocator2>::unwind_fast_dot_
{ {
// can't repeat any more, remove the pushed state: // can't repeat any more, remove the pushed state:
destroy_single_repeat(); destroy_single_repeat();
if(rep->can_be_null & mask_skip) if(0 == (rep->can_be_null & mask_skip))
return true; return true;
} }
else if(count == rep->max) else if(count == rep->max)
@ -1121,7 +1121,7 @@ bool perl_matcher<BidiIterator, Allocator, traits, Allocator2>::unwind_char_repe
{ {
// can't repeat any more, remove the pushed state: // can't repeat any more, remove the pushed state:
destroy_single_repeat(); destroy_single_repeat();
if(rep->can_be_null & mask_skip) if(0 == (rep->can_be_null & mask_skip))
return true; return true;
} }
else if(count == rep->max) else if(count == rep->max)
@ -1185,7 +1185,7 @@ bool perl_matcher<BidiIterator, Allocator, traits, Allocator2>::unwind_short_set
{ {
// can't repeat any more, remove the pushed state: // can't repeat any more, remove the pushed state:
destroy_single_repeat(); destroy_single_repeat();
if(rep->can_be_null & mask_skip) if(0 == (rep->can_be_null & mask_skip))
return true; return true;
} }
else if(count == rep->max) else if(count == rep->max)
@ -1250,7 +1250,7 @@ bool perl_matcher<BidiIterator, Allocator, traits, Allocator2>::unwind_long_set_
{ {
// can't repeat any more, remove the pushed state: // can't repeat any more, remove the pushed state:
destroy_single_repeat(); destroy_single_repeat();
if(rep->can_be_null & mask_skip) if(0 == (rep->can_be_null & mask_skip))
return true; return true;
} }
else if(count == rep->max) else if(count == rep->max)