/[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 64 by nigel, Sat Feb 24 21:40:03 2007 UTC revision 65 by nigel, Sat Feb 24 21:40:08 2007 UTC
# Line 407  while (argc > 1 && argv[op][0] == '-') Line 407  while (argc > 1 && argv[op][0] == '-')
407    else if (strcmp(argv[op], "-i") == 0) showinfo = 1;    else if (strcmp(argv[op], "-i") == 0) showinfo = 1;
408    else if (strcmp(argv[op], "-d") == 0) showinfo = debug = 1;    else if (strcmp(argv[op], "-d") == 0) showinfo = debug = 1;
409    else if (strcmp(argv[op], "-o") == 0 && argc > 2 &&    else if (strcmp(argv[op], "-o") == 0 && argc > 2 &&
410        ((size_offsets = get_value(argv[op+1], &endptr)), *endptr == 0))        ((size_offsets = get_value((unsigned char *)argv[op+1], &endptr)),
411            *endptr == 0))
412      {      {
413      op++;      op++;
414      argc--;      argc--;
# Line 1017  while (!done) Line 1018  while (!done)
1018            uschar *pp = name;            uschar *pp = name;
1019            while (isalnum(*p)) *pp++ = *p++;            while (isalnum(*p)) *pp++ = *p++;
1020            *pp = 0;            *pp = 0;
1021            n = pcre_get_stringnumber(re, name);            n = pcre_get_stringnumber(re, (char *)name);
1022            if (n < 0)            if (n < 0)
1023              fprintf(outfile, "no parentheses with name \"%s\"\n", name);              fprintf(outfile, "no parentheses with name \"%s\"\n", name);
1024            else copystrings |= 1 << n;            else copystrings |= 1 << n;
# Line 1070  while (!done) Line 1071  while (!done)
1071            uschar *pp = name;            uschar *pp = name;
1072            while (isalnum(*p)) *pp++ = *p++;            while (isalnum(*p)) *pp++ = *p++;
1073            *pp = 0;            *pp = 0;
1074            n = pcre_get_stringnumber(re, name);            n = pcre_get_stringnumber(re, (char *)name);
1075            if (n < 0)            if (n < 0)
1076              fprintf(outfile, "no parentheses with name \"%s\"\n", name);              fprintf(outfile, "no parentheses with name \"%s\"\n", name);
1077            else getstrings |= 1 << n;            else getstrings |= 1 << n;

Legend:
Removed from v.64  
changed lines
  Added in v.65

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12