comparison src/regex.c @ 10000:659346eafd79

(re_compile_fastmap): Treat `succeed' like end of pattern.
author Karl Heuer <kwzh@gnu.org>
date Fri, 18 Nov 1994 01:04:41 +0000
parents ef6e1637c777
children 9203331b118a
comparison
equal deleted inserted replaced
9999:8187800943e7 10000:659346eafd79
2782 bufp->fastmap_accurate = 1; /* It will be when we're done. */ 2782 bufp->fastmap_accurate = 1; /* It will be when we're done. */
2783 bufp->can_be_null = 0; 2783 bufp->can_be_null = 0;
2784 2784
2785 while (p != pend || !FAIL_STACK_EMPTY ()) 2785 while (p != pend || !FAIL_STACK_EMPTY ())
2786 { 2786 {
2787 if (p == pend) 2787 if (p == pend || *p == succeed)
2788 { 2788 {
2789 bufp->can_be_null |= path_can_be_null; 2789 bufp->can_be_null |= path_can_be_null;
2790 2790
2791 /* Reset for next path. */ 2791 /* Reset for next path. */
2792 path_can_be_null = true; 2792 path_can_be_null = true;