/[pcre]/code/tags/pcre-4.5/printint.c
ViewVC logotype

Diff of /code/tags/pcre-4.5/printint.c

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

code/trunk/printint.c revision 63 by nigel, Sat Feb 24 21:40:03 2007 UTC code/tags/pcre-4.5/printint.c revision 74 by nigel, Sat Feb 24 21:40:32 2007 UTC
# Line 50  static const char *OP_names[] = { OP_NAM Line 50  static const char *OP_names[] = { OP_NAM
50  library with debugging, they are included twice, but that isn't really a  library with debugging, they are included twice, but that isn't really a
51  problem - compiling with debugging is pretty rare and these are very small. */  problem - compiling with debugging is pretty rare and these are very small. */
52    
53  static int utf8_t3[] = { 0xff, 0x1f, 0x0f, 0x07, 0x03, 0x01};  static const int utf8_t3[] = { 0xff, 0x1f, 0x0f, 0x07, 0x03, 0x01};
54    
55  static uschar utf8_t4[] = {  static const uschar utf8_t4[] = {
56    1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,    1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
57    1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,    1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
58    2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,    2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
# Line 137  for(;;) Line 137  for(;;)
137        fprintf(f, "%3d ", charlength);        fprintf(f, "%3d ", charlength);
138        while (charlength > 0)        while (charlength > 0)
139          {          {
140          int extra = print_char(f, ccode, utf8);          int extrabytes = print_char(f, ccode, utf8);
141          ccode += 1 + extra;          ccode += 1 + extrabytes;
142          charlength -= 1 + extra;          charlength -= 1 + extrabytes;
143          }          }
144        }        }
145      break;      break;
# Line 301  for(;;) Line 301  for(;;)
301    
302        if (*code == OP_XCLASS)        if (*code == OP_XCLASS)
303          {          {
304          int c;          int ch;
305          while ((c = *ccode++) != XCL_END)          while ((ch = *ccode++) != XCL_END)
306            {            {
307            ccode += 1 + print_char(f, ccode, TRUE);            ccode += 1 + print_char(f, ccode, TRUE);
308            if (c == XCL_RANGE)            if (ch == XCL_RANGE)
309              {              {
310              fprintf(f, "-");              fprintf(f, "-");
311              ccode += 1 + print_char(f, ccode, TRUE);              ccode += 1 + print_char(f, ccode, TRUE);

Legend:
Removed from v.63  
changed lines
  Added in v.74

  ViewVC Help
Powered by ViewVC 1.1.5