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

Diff of /code/trunk/pcre_compile.c

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

revision 1578 by ph10, Mon Jul 20 16:27:31 2015 UTC revision 1579 by ph10, Tue Jul 21 13:47:22 2015 UTC
# Line 3940  for (++ptr; *ptr != CHAR_NULL; ptr++) Line 3940  for (++ptr; *ptr != CHAR_NULL; ptr++)
3940        (ptr[1] == CHAR_RIGHT_SQUARE_BRACKET ||        (ptr[1] == CHAR_RIGHT_SQUARE_BRACKET ||
3941         ptr[1] == CHAR_BACKSLASH))         ptr[1] == CHAR_BACKSLASH))
3942      ptr++;      ptr++;
3943    else if (*ptr == CHAR_RIGHT_SQUARE_BRACKET) return FALSE;    else if ((*ptr == CHAR_LEFT_SQUARE_BRACKET && ptr[1] == terminator) ||
3944    else              *ptr == CHAR_RIGHT_SQUARE_BRACKET) return FALSE;
3945      else if (*ptr == terminator && ptr[1] == CHAR_RIGHT_SQUARE_BRACKET)
3946      {      {
3947      if (*ptr == terminator && ptr[1] == CHAR_RIGHT_SQUARE_BRACKET)      *endptr = ptr;
3948        {      return TRUE;
       *endptr = ptr;  
       return TRUE;  
       }  
     if (*ptr == CHAR_LEFT_SQUARE_BRACKET &&  
          (ptr[1] == CHAR_COLON || ptr[1] == CHAR_DOT ||  
           ptr[1] == CHAR_EQUALS_SIGN) &&  
         check_posix_syntax(ptr, endptr))  
       return FALSE;  
3949      }      }
3950    }    }
3951  return FALSE;  return FALSE;

Legend:
Removed from v.1578  
changed lines
  Added in v.1579

  ViewVC Help
Powered by ViewVC 1.1.5