/[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 903 by ph10, Sat Jan 21 16:37:17 2012 UTC revision 905 by zherczeg, Mon Jan 23 19:26:03 2012 UTC
# Line 3067  if (next >= 0) switch(op_code) Line 3067  if (next >= 0) switch(op_code)
3067      }      }
3068    else    else
3069  #endif  /* SUPPORT_UTF */  #endif  /* SUPPORT_UTF */
3070    return (c != TABLE_GET(next, cd->fcc, next));  /* Non-UTF-8 mode */    return (c != TABLE_GET((unsigned int)next, cd->fcc, next));  /* Non-UTF-8 mode */
3071    
3072    /* For OP_NOT and OP_NOTI, the data is always a single-byte character. These    /* For OP_NOT and OP_NOTI, the data is always a single-byte character. These
3073    opcodes are not used for multi-byte characters, because they are coded using    opcodes are not used for multi-byte characters, because they are coded using
# Line 3092  if (next >= 0) switch(op_code) Line 3092  if (next >= 0) switch(op_code)
3092      }      }
3093    else    else
3094  #endif  /* SUPPORT_UTF */  #endif  /* SUPPORT_UTF */
3095    return (c == TABLE_GET(next, cd->fcc, next));  /* Non-UTF-8 mode */    return (c == (int)(TABLE_GET((unsigned int)next, cd->fcc, next)));  /* Non-UTF-8 mode */
3096    
3097    /* Note that OP_DIGIT etc. are generated only when PCRE_UCP is *not* set.    /* Note that OP_DIGIT etc. are generated only when PCRE_UCP is *not* set.
3098    When it is set, \d etc. are converted into OP_(NOT_)PROP codes. */    When it is set, \d etc. are converted into OP_(NOT_)PROP codes. */
# Line 4571  for (;; ptr++) Line 4571  for (;; ptr++)
4571  #endif  #endif
4572            {            {
4573            unsigned int othercase;            unsigned int othercase;
4574            if ((othercase = UCD_OTHERCASE(c)) != c)            if ((int)(othercase = UCD_OTHERCASE(c)) != c)
4575              {              {
4576              *class_uchardata++ = XCL_SINGLE;              *class_uchardata++ = XCL_SINGLE;
4577              class_uchardata += PRIV(ord2utf)(othercase, class_uchardata);              class_uchardata += PRIV(ord2utf)(othercase, class_uchardata);
# Line 8134  if ((re->flags & PCRE_REQCHSET) != 0) Line 8134  if ((re->flags & PCRE_REQCHSET) != 0)
8134    }    }
8135    
8136  #ifdef COMPILE_PCRE8  #ifdef COMPILE_PCRE8
8137  pcre_printint(re, stdout, TRUE);  pcre_printint((pcre *)re, stdout, TRUE);
8138  #else  #else
8139  pcre16_printint(re, stdout, TRUE);  pcre16_printint((pcre *)re, stdout, TRUE);
8140  #endif  #endif
8141    
8142  /* This check is done here in the debugging case so that the code that  /* This check is done here in the debugging case so that the code that

Legend:
Removed from v.903  
changed lines
  Added in v.905

  ViewVC Help
Powered by ViewVC 1.1.5