/[pcre]/code/trunk/pcre_printint.src
ViewVC logotype

Diff of /code/trunk/pcre_printint.src

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

revision 653 by ph10, Thu Jun 2 19:04:54 2011 UTC revision 654 by ph10, Tue Aug 2 11:00:40 2011 UTC
# Line 180  utf8 = (options & PCRE_UTF8) != 0; Line 180  utf8 = (options & PCRE_UTF8) != 0;
180  for(;;)  for(;;)
181    {    {
182    uschar *ccode;    uschar *ccode;
183    const char *flag = "  ";    const char *flag = "  ";
184    int c;    int c;
185    int extra = 0;    int extra = 0;
186    
# Line 238  for(;;) Line 238  for(;;)
238      continue;      continue;
239    
240      case OP_CBRA:      case OP_CBRA:
241      case OP_CBRAPOS:      case OP_CBRAPOS:
242      case OP_SCBRA:      case OP_SCBRA:
243      case OP_SCBRAPOS:      case OP_SCBRAPOS:
244      if (print_lengths) fprintf(f, "%3d ", GET(code, 1));      if (print_lengths) fprintf(f, "%3d ", GET(code, 1));
245        else fprintf(f, "    ");        else fprintf(f, "    ");
246      fprintf(f, "%s %d", OP_names[*code], GET2(code, 1+LINK_SIZE));      fprintf(f, "%s %d", OP_names[*code], GET2(code, 1+LINK_SIZE));
247      break;      break;
248    
249      case OP_BRA:      case OP_BRA:
250      case OP_BRAPOS:      case OP_BRAPOS:
251      case OP_SBRA:      case OP_SBRA:
252      case OP_SBRAPOS:      case OP_SBRAPOS:
253      case OP_KETRMAX:      case OP_KETRMAX:
254      case OP_KETRMIN:      case OP_KETRMIN:
255      case OP_KETRPOS:      case OP_KETRPOS:
256      case OP_ALT:      case OP_ALT:
257      case OP_KET:      case OP_KET:
258      case OP_ASSERT:      case OP_ASSERT:
# Line 307  for(;;) Line 307  for(;;)
307      case OP_MINQUERYI:      case OP_MINQUERYI:
308      case OP_POSQUERYI:      case OP_POSQUERYI:
309      flag = "/i";      flag = "/i";
310      /* Fall through */      /* Fall through */
311      case OP_STAR:      case OP_STAR:
312      case OP_MINSTAR:      case OP_MINSTAR:
313      case OP_POSSTAR:      case OP_POSSTAR:
# Line 345  for(;;) Line 345  for(;;)
345      case OP_MINUPTOI:      case OP_MINUPTOI:
346      case OP_POSUPTOI:      case OP_POSUPTOI:
347      flag = "/i";      flag = "/i";
348      /* Fall through */      /* Fall through */
349      case OP_EXACT:      case OP_EXACT:
350      case OP_UPTO:      case OP_UPTO:
351      case OP_MINUPTO:      case OP_MINUPTO:
# Line 378  for(;;) Line 378  for(;;)
378    
379      case OP_NOTI:      case OP_NOTI:
380      flag = "/i";      flag = "/i";
381      /* Fall through */      /* Fall through */
382      case OP_NOT:      case OP_NOT:
383      c = code[1];      c = code[1];
384      if (PRINTABLE(c)) fprintf(f, " %s [^%c]", flag, c);      if (PRINTABLE(c)) fprintf(f, " %s [^%c]", flag, c);
# Line 395  for(;;) Line 395  for(;;)
395      case OP_NOTMINQUERYI:      case OP_NOTMINQUERYI:
396      case OP_NOTPOSQUERYI:      case OP_NOTPOSQUERYI:
397      flag = "/i";      flag = "/i";
398      /* Fall through */      /* Fall through */
399    
400      case OP_NOTSTAR:      case OP_NOTSTAR:
401      case OP_NOTMINSTAR:      case OP_NOTMINSTAR:
# Line 417  for(;;) Line 417  for(;;)
417      case OP_NOTMINUPTOI:      case OP_NOTMINUPTOI:
418      case OP_NOTPOSUPTOI:      case OP_NOTPOSUPTOI:
419      flag = "/i";      flag = "/i";
420      /* Fall through */      /* Fall through */
421    
422      case OP_NOTEXACT:      case OP_NOTEXACT:
423      case OP_NOTUPTO:      case OP_NOTUPTO:
# Line 429  for(;;) Line 429  for(;;)
429      if (*code != OP_NOTEXACT && *code != OP_NOTEXACTI) fprintf(f, "0,");      if (*code != OP_NOTEXACT && *code != OP_NOTEXACTI) fprintf(f, "0,");
430      fprintf(f, "%d}", GET2(code,1));      fprintf(f, "%d}", GET2(code,1));
431      if (*code == OP_NOTMINUPTO || *code == OP_NOTMINUPTOI) fprintf(f, "?");      if (*code == OP_NOTMINUPTO || *code == OP_NOTMINUPTOI) fprintf(f, "?");
432        else        else
433      if (*code == OP_NOTPOSUPTO || *code == OP_NOTPOSUPTOI) fprintf(f, "+");      if (*code == OP_NOTPOSUPTO || *code == OP_NOTPOSUPTOI) fprintf(f, "+");
434      break;      break;
435    
# Line 441  for(;;) Line 441  for(;;)
441    
442      case OP_REFI:      case OP_REFI:
443      flag = "/i";      flag = "/i";
444      /* Fall through */      /* Fall through */
445      case OP_REF:      case OP_REF:
446      fprintf(f, " %s \\%d", flag, GET2(code,1));      fprintf(f, " %s \\%d", flag, GET2(code,1));
447      ccode = code + _pcre_OP_lengths[*code];      ccode = code + _pcre_OP_lengths[*code];
# Line 601  for(;;) Line 601  for(;;)
601        fprintf(f, "    %s %s", OP_names[*code], code + 2 + LINK_SIZE);        fprintf(f, "    %s %s", OP_names[*code], code + 2 + LINK_SIZE);
602      extra += code[1+LINK_SIZE];      extra += code[1+LINK_SIZE];
603      break;      break;
604    
605      case OP_CIRCM:      case OP_CIRCM:
606      case OP_DOLLM:      case OP_DOLLM:
607      flag = "/m";      flag = "/m";
608      /* Fall through */      /* Fall through */
609    
610      /* Anything else is just an item with no data, but possibly a flag. */      /* Anything else is just an item with no data, but possibly a flag. */
611    
612      default:      default:

Legend:
Removed from v.653  
changed lines
  Added in v.654

  ViewVC Help
Powered by ViewVC 1.1.5