/[pcre]/code/tags/pcre-8.33/pcre_compile.c
ViewVC logotype

Diff of /code/tags/pcre-8.33/pcre_compile.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 691 by ph10, Sun Sep 11 14:31:21 2011 UTC revision 701 by ph10, Tue Sep 20 11:30:56 2011 UTC
# Line 5045  for (;; ptr++) Line 5045  for (;; ptr++)
5045                PUT2INC(code, 0, oc->number);                PUT2INC(code, 0, oc->number);
5046                }                }
5047              *code++ = (cd->assert_depth > 0)? OP_ASSERT_ACCEPT : OP_ACCEPT;              *code++ = (cd->assert_depth > 0)? OP_ASSERT_ACCEPT : OP_ACCEPT;
5048    
5049                /* Do not set firstbyte after *ACCEPT */
5050                if (firstbyte == REQ_UNSET) firstbyte = REQ_NONE;
5051              }              }
5052    
5053            /* Handle other cases with/without an argument */            /* Handle other cases with/without an argument */
# Line 6323  for (;; ptr++) Line 6326  for (;; ptr++)
6326      byte, set it from this character, but revert to none on a zero repeat.      byte, set it from this character, but revert to none on a zero repeat.
6327      Otherwise, leave the firstbyte value alone, and don't change it on a zero      Otherwise, leave the firstbyte value alone, and don't change it on a zero
6328      repeat. */      repeat. */
6329    
6330      if (firstbyte == REQ_UNSET)      if (firstbyte == REQ_UNSET)
6331        {        {
6332        zerofirstbyte = REQ_NONE;        zerofirstbyte = REQ_NONE;
# Line 6340  for (;; ptr++) Line 6343  for (;; ptr++)
6343        else firstbyte = reqbyte = REQ_NONE;        else firstbyte = reqbyte = REQ_NONE;
6344        }        }
6345    
6346      /* firstbyte was previously set; we can set reqbyte only the length is      /* firstbyte was previously set; we can set reqbyte only if the length is
6347      1 or the matching is caseful. */      1 or the matching is caseful. */
6348    
6349      else      else
# Line 7287  re->top_bracket = cd->bracount; Line 7290  re->top_bracket = cd->bracount;
7290  re->top_backref = cd->top_backref;  re->top_backref = cd->top_backref;
7291  re->flags = cd->external_flags;  re->flags = cd->external_flags;
7292    
7293  if (cd->had_accept) reqbyte = -1;   /* Must disable after (*ACCEPT) */  if (cd->had_accept) reqbyte = REQ_NONE;   /* Must disable after (*ACCEPT) */
7294    
7295  /* If not reached end of pattern on success, there's an excess bracket. */  /* If not reached end of pattern on success, there's an excess bracket. */
7296    

Legend:
Removed from v.691  
changed lines
  Added in v.701

  ViewVC Help
Powered by ViewVC 1.1.5