/[pcre]/code/trunk/pcre_dfa_exec.c
ViewVC logotype

Diff of /code/trunk/pcre_dfa_exec.c

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

revision 130 by ph10, Mon Mar 26 15:09:47 2007 UTC revision 144 by ph10, Mon Apr 2 13:32:07 2007 UTC
# Line 2166  md->poptions = re->options; Line 2166  md->poptions = re->options;
2166  /* Handle different types of newline. The three bits give eight cases. If  /* Handle different types of newline. The three bits give eight cases. If
2167  nothing is set at run time, whatever was used at compile time applies. */  nothing is set at run time, whatever was used at compile time applies. */
2168    
2169  switch ((((options & PCRE_NEWLINE_BITS) == 0)? re->options : options) &  switch ((((options & PCRE_NEWLINE_BITS) == 0)? re->options : (pcre_uint32)options) &
2170           PCRE_NEWLINE_BITS)           PCRE_NEWLINE_BITS)
2171    {    {
2172    case 0: newline = NEWLINE; break;   /* Compile-time default */    case 0: newline = NEWLINE; break;   /* Compile-time default */
# Line 2311  for (;;) Line 2311  for (;;)
2311    
2312          /* If we have just passed a CR and the newline option is ANY, and we          /* If we have just passed a CR and the newline option is ANY, and we
2313          are now at a LF, advance the match position by one more character. */          are now at a LF, advance the match position by one more character. */
2314    
2315          if (current_subject[-1] == '\r' &&          if (current_subject[-1] == '\r' &&
2316               md->nltype == NLTYPE_ANY &&               md->nltype == NLTYPE_ANY &&
2317               current_subject < end_subject &&               current_subject < end_subject &&

Legend:
Removed from v.130  
changed lines
  Added in v.144

  ViewVC Help
Powered by ViewVC 1.1.5