/[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 735 by ph10, Thu Oct 13 15:51:27 2011 UTC revision 738 by ph10, Fri Oct 21 09:04:01 2011 UTC
# Line 2346  while (!done) Line 2346  while (!done)
2346            {            {
2347            unsigned char *pt = p;            unsigned char *pt = p;
2348            c = 0;            c = 0;
2349    
2350            /* We used to have "while (isxdigit(*(++pt)))" here, but it fails            /* We used to have "while (isxdigit(*(++pt)))" here, but it fails
2351            when isxdigit() is a macro that refers to its argument more than            when isxdigit() is a macro that refers to its argument more than
2352            once. This is banned by the C Standard, but apparently happens in at            once. This is banned by the C Standard, but apparently happens in at
2353            least one MacOS environment. */            least one MacOS environment. */
2354    
2355            for (pt++; isxdigit(*pt); pt++)            for (pt++; isxdigit(*pt); pt++)
2356              c = c * 16 + tolower(*pt) - ((isdigit(*pt))? '0' : 'a' - 10);              c = c * 16 + tolower(*pt) - ((isdigit(*pt))? '0' : 'a' - 10);
2357            if (*pt == '}')            if (*pt == '}')

Legend:
Removed from v.735  
changed lines
  Added in v.738

  ViewVC Help
Powered by ViewVC 1.1.5