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

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

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

revision 63 by nigel, Sat Feb 24 21:40:03 2007 UTC revision 67 by nigel, Sat Feb 24 21:40:13 2007 UTC
# 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.67

  ViewVC Help
Powered by ViewVC 1.1.5