/[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 1072 by chpe, Tue Oct 16 15:54:40 2012 UTC revision 1076 by chpe, Tue Oct 16 15:54:54 2012 UTC
# Line 2755  register int yield = 0; Line 2755  register int yield = 0;
2755  while (posix_name_lengths[yield] != 0)  while (posix_name_lengths[yield] != 0)
2756    {    {
2757    if (len == posix_name_lengths[yield] &&    if (len == posix_name_lengths[yield] &&
2758      STRNCMP_UC_C8(ptr, pn, len) == 0) return yield;      STRNCMP_UC_C8(ptr, pn, (unsigned int)len) == 0) return yield;
2759    pn += posix_name_lengths[yield] + 1;    pn += posix_name_lengths[yield] + 1;
2760    yield++;    yield++;
2761    }    }
# Line 2810  while ((ptr = (pcre_uchar *)find_recurse Line 2810  while ((ptr = (pcre_uchar *)find_recurse
2810    
2811    for (hc = save_hwm; hc < cd->hwm; hc += LINK_SIZE)    for (hc = save_hwm; hc < cd->hwm; hc += LINK_SIZE)
2812      {      {
2813      offset = GET(hc, 0);      offset = (int)GET(hc, 0);
2814      if (cd->start_code + offset == ptr + 1)      if (cd->start_code + offset == ptr + 1)
2815        {        {
2816        PUT(hc, 0, offset + adjust);        PUT(hc, 0, offset + adjust);
# Line 2823  while ((ptr = (pcre_uchar *)find_recurse Line 2823  while ((ptr = (pcre_uchar *)find_recurse
2823    
2824    if (hc >= cd->hwm)    if (hc >= cd->hwm)
2825      {      {
2826      offset = GET(ptr, 1);      offset = (int)GET(ptr, 1);
2827      if (cd->start_code + offset >= group) PUT(ptr, 1, offset + adjust);      if (cd->start_code + offset >= group) PUT(ptr, 1, offset + adjust);
2828      }      }
2829    
# Line 3053  check_auto_possessive(const pcre_uchar * Line 3053  check_auto_possessive(const pcre_uchar *
3053  pcre_uint32 c = NOTACHAR;  pcre_uint32 c = NOTACHAR;
3054  pcre_uint32 next;  pcre_uint32 next;
3055  int escape;  int escape;
3056  int op_code = *previous++;  pcre_uchar op_code = *previous++;
3057    
3058  /* Skip whitespace and comments in extended mode */  /* Skip whitespace and comments in extended mode */
3059    
# Line 3251  if (escape == 0) Line 3251  if (escape == 0)
3251    
3252  #ifdef SUPPORT_UCP  #ifdef SUPPORT_UCP
3253      case OP_PROP:      case OP_PROP:
3254      return check_char_prop(next, previous[0], previous[1], FALSE);      return check_char_prop(next, (int)previous[0], (int)previous[1], FALSE);
3255    
3256      case OP_NOTPROP:      case OP_NOTPROP:
3257      return check_char_prop(next, previous[0], previous[1], TRUE);      return check_char_prop(next, (int)previous[0], (int)previous[1], TRUE);
3258  #endif  #endif
3259    
3260      default:      default:

Legend:
Removed from v.1072  
changed lines
  Added in v.1076

  ViewVC Help
Powered by ViewVC 1.1.5