/[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 1761 by ph10, Tue Jun 13 16:53:16 2017 UTC revision 1762 by ph10, Tue Feb 11 18:13:46 2020 UTC
# Line 500  enum { Line 500  enum {
500  #if (defined (SUPPORT_PCRE8) + defined (SUPPORT_PCRE16) + \  #if (defined (SUPPORT_PCRE8) + defined (SUPPORT_PCRE16) + \
501       defined (SUPPORT_PCRE32)) >= 2       defined (SUPPORT_PCRE32)) >= 2
502    
503  #define CHAR_SIZE (1 << pcre_mode)  #define CHAR_SIZE (1U << pcre_mode)
504    
505  /* There doesn't seem to be an easy way of writing these macros that can cope  /* There doesn't seem to be an easy way of writing these macros that can cope
506  with the 3 pairs of bit sizes plus all three bit sizes. So just handle all the  with the 3 pairs of bit sizes plus all three bit sizes. So just handle all the
# Line 4443  while (!done) Line 4443  while (!done)
4443    
4444            /* If there is study data, write it. */            /* If there is study data, write it. */
4445    
4446            if (extra != NULL)            if (extra != NULL && (extra->flags & PCRE_EXTRA_STUDY_DATA) != 0)
4447              {              {
4448              if (fwrite(extra->study_data, 1, true_study_size, f) <              if (fwrite(extra->study_data, 1, true_study_size, f) <
4449                  true_study_size)                  true_study_size)
# Line 4735  while (!done) Line 4735  while (!done)
4735          if (isdigit(*p))    /* Set copy string */          if (isdigit(*p))    /* Set copy string */
4736            {            {
4737            while(isdigit(*p)) n = n * 10 + *p++ - '0';            while(isdigit(*p)) n = n * 10 + *p++ - '0';
4738            copystrings |= 1 << n;            copystrings |= 1U << n;
4739            }            }
4740          else if (isalnum(*p))          else if (isalnum(*p))
4741            {            {
# Line 4798  while (!done) Line 4798  while (!done)
4798          if (isdigit(*p))          if (isdigit(*p))
4799            {            {
4800            while(isdigit(*p)) n = n * 10 + *p++ - '0';            while(isdigit(*p)) n = n * 10 + *p++ - '0';
4801            getstrings |= 1 << n;            getstrings |= 1U << n;
4802            }            }
4803          else if (isalnum(*p))          else if (isalnum(*p))
4804            {            {
# Line 5335  while (!done) Line 5335  while (!done)
5335    
5336          for (i = 0; i < 32; i++)          for (i = 0; i < 32; i++)
5337            {            {
5338            if ((copystrings & (1 << i)) != 0)            if ((copystrings & (1U << i)) != 0)
5339              {              {
5340              int rc;              int rc;
5341              char copybuffer[256];              char copybuffer[256];
# Line 5400  while (!done) Line 5400  while (!done)
5400    
5401          for (i = 0; i < 32; i++)          for (i = 0; i < 32; i++)
5402            {            {
5403            if ((getstrings & (1 << i)) != 0)            if ((getstrings & (1U << i)) != 0)
5404              {              {
5405              int rc;              int rc;
5406              const char *substring;              const char *substring;

Legend:
Removed from v.1761  
changed lines
  Added in v.1762

  ViewVC Help
Powered by ViewVC 1.1.5