/[pcre]/code/trunk/pcretest.c
ViewVC logotype

Diff of /code/trunk/pcretest.c

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

revision 11 by nigel, Sat Feb 24 21:38:17 2007 UTC revision 13 by nigel, Sat Feb 24 21:38:21 2007 UTC
# Line 38  static const char *OP_names[] = { Line 38  static const char *OP_names[] = {
38    "*", "*?", "+", "+?", "?", "??", "{", "{", "{",    "*", "*?", "+", "+?", "?", "??", "{", "{", "{",
39    "*", "*?", "+", "+?", "?", "??", "{", "{", "{",    "*", "*?", "+", "+?", "?", "??", "{", "{", "{",
40    "*", "*?", "+", "+?", "?", "??", "{", "{",    "*", "*?", "+", "+?", "?", "??", "{", "{",
41    "class", "Ref",    "class", "negclass", "Ref",
42    "Alt", "Ket", "KetRmax", "KetRmin", "Assert", "Assert not", "Once",    "Alt", "Ket", "KetRmax", "KetRmin", "Assert", "Assert not", "Once",
43    "Brazero", "Braminzero", "Bra"    "Brazero", "Braminzero", "Bra"
44  };  };
# Line 161  for(;;) Line 161  for(;;)
161      goto CLASS_REF_REPEAT;      goto CLASS_REF_REPEAT;
162    
163      case OP_CLASS:      case OP_CLASS:
164        case OP_NEGCLASS:
165        {        {
166        int i, min, max;        int i, min, max;
167          if (*code++ == OP_CLASS) printf("    [");
168        code++;          else printf("   ^[");
       printf("    [");  
169    
170        for (i = 0; i < 256; i++)        for (i = 0; i < 256; i++)
171          {          {

Legend:
Removed from v.11  
changed lines
  Added in v.13

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12