/[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 1369 by ph10, Tue Oct 1 16:54:40 2013 UTC revision 1370 by ph10, Wed Oct 9 10:18:26 2013 UTC
# Line 4497  while (!done) Line 4497  while (!done)
4497          while (i++ < 2 && isdigit(*p) && *p != '8' && *p != '9')          while (i++ < 2 && isdigit(*p) && *p != '8' && *p != '9')
4498            c = c * 8 + *p++ - '0';            c = c * 8 + *p++ - '0';
4499          break;          break;
4500    
4501            case 'o':
4502            if (*p == '{')
4503              {
4504              pcre_uint8 *pt = p;
4505              c = 0;
4506              for (pt++; isdigit(*pt) && *pt != '8' && *pt != '9'; pt++)
4507                {
4508                if (++i == 12)
4509                  fprintf(outfile, "** Too many octal digits in \\o{...} item; "
4510                                   "using only the first twelve.\n");
4511                else c = c * 8 + *pt - '0';
4512                }
4513              if (*pt == '}') p = pt + 1;
4514                else fprintf(outfile, "** Missing } after \\o{ (assumed)\n");
4515              }
4516            break;
4517    
4518          case 'x':          case 'x':
4519          if (*p == '{')          if (*p == '{')

Legend:
Removed from v.1369  
changed lines
  Added in v.1370

  ViewVC Help
Powered by ViewVC 1.1.5