/[pcre]/code/branches/pcre16/pcretest.c
ViewVC logotype

Diff of /code/branches/pcre16/pcretest.c

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

revision 756 by ph10, Mon Nov 21 10:48:42 2011 UTC revision 774 by zherczeg, Thu Dec 1 06:08:45 2011 UTC
# Line 1920  while (!done) Line 1920  while (!done)
1920          (pcre_uint16)byteflip(rre->top_bracket, sizeof(rre->top_bracket));          (pcre_uint16)byteflip(rre->top_bracket, sizeof(rre->top_bracket));
1921        rre->top_backref =        rre->top_backref =
1922          (pcre_uint16)byteflip(rre->top_backref, sizeof(rre->top_backref));          (pcre_uint16)byteflip(rre->top_backref, sizeof(rre->top_backref));
1923        rre->first_byte =        rre->first_char =
1924          (pcre_uint16)byteflip(rre->first_byte, sizeof(rre->first_byte));          (pcre_uint16)byteflip(rre->first_char, sizeof(rre->first_char));
1925        rre->req_byte =        rre->req_char =
1926          (pcre_uint16)byteflip(rre->req_byte, sizeof(rre->req_byte));          (pcre_uint16)byteflip(rre->req_char, sizeof(rre->req_char));
1927        rre->name_table_offset = (pcre_uint16)byteflip(rre->name_table_offset,        rre->name_table_offset = (pcre_uint16)byteflip(rre->name_table_offset,
1928          sizeof(rre->name_table_offset));          sizeof(rre->name_table_offset));
1929        rre->name_entry_size = (pcre_uint16)byteflip(rre->name_entry_size,        rre->name_entry_size = (pcre_uint16)byteflip(rre->name_entry_size,
# Line 2079  while (!done) Line 2079  while (!done)
2079          }          }
2080        else        else
2081          {          {
2082          int ch = first_char & 255;          const char *caseless =
2083          const char *caseless = ((first_char & REQ_CASELESS) == 0)?            ((((real_pcre *)re)->flags & PCRE_FCH_CASELESS) == 0)?
2084            "" : " (caseless)";            "" : " (caseless)";
2085          if (PRINTHEX(ch))  
2086            fprintf(outfile, "First char = \'%c\'%s\n", ch, caseless);          if (PRINTHEX(first_char))
2087              fprintf(outfile, "First char = \'%c\'%s\n", first_char, caseless);
2088          else          else
2089            fprintf(outfile, "First char = %d%s\n", ch, caseless);            fprintf(outfile, "First char = %d%s\n", first_char, caseless);
2090          }          }
2091    
2092        if (need_char < 0)        if (need_char < 0)
# Line 2094  while (!done) Line 2095  while (!done)
2095          }          }
2096        else        else
2097          {          {
2098          int ch = need_char & 255;          const char *caseless =
2099          const char *caseless = ((need_char & REQ_CASELESS) == 0)?            ((((real_pcre *)re)->flags & PCRE_RCH_CASELESS) == 0)?
2100            "" : " (caseless)";            "" : " (caseless)";
2101          if (PRINTHEX(ch))  
2102            fprintf(outfile, "Need char = \'%c\'%s\n", ch, caseless);          if (PRINTHEX(need_char))
2103              fprintf(outfile, "Need char = \'%c\'%s\n", need_char, caseless);
2104          else          else
2105            fprintf(outfile, "Need char = %d%s\n", ch, caseless);            fprintf(outfile, "Need char = %d%s\n", need_char, caseless);
2106          }          }
2107    
2108        /* Don't output study size; at present it is in any case a fixed        /* Don't output study size; at present it is in any case a fixed

Legend:
Removed from v.756  
changed lines
  Added in v.774

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12