/[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 1319 by ph10, Wed Apr 24 12:07:09 2013 UTC revision 1320 by ph10, Wed May 1 16:39:35 2013 UTC
# Line 3134  while (argc > 1 && argv[op][0] == '-') Line 3134  while (argc > 1 && argv[op][0] == '-')
3134          (void)PCRE_CONFIG(PCRE_CONFIG_LINK_SIZE, &rc);          (void)PCRE_CONFIG(PCRE_CONFIG_LINK_SIZE, &rc);
3135          printf("%d\n", rc);          printf("%d\n", rc);
3136          yield = rc;          yield = rc;
3137    
3138  #ifdef __VMS  #ifdef __VMS
3139          vms_setsymbol("LINKSIZE",0,yield );          vms_setsymbol("LINKSIZE",0,yield );
3140  #endif  #endif
# Line 3697  while (!done) Line 3697  while (!done)
3697        case 'Y': options |= PCRE_NO_START_OPTIMISE; break;        case 'Y': options |= PCRE_NO_START_OPTIMISE; break;
3698        case 'Z': debug_lengths = 0; break;        case 'Z': debug_lengths = 0; break;
3699        case '8': options |= PCRE_UTF8; use_utf = 1; break;        case '8': options |= PCRE_UTF8; use_utf = 1; break;
3700        case '9': options |= PCRE_NEVER_UTF; break;        case '9': options |= PCRE_NEVER_UTF; break;
3701        case '?': options |= PCRE_NO_UTF8_CHECK; break;        case '?': options |= PCRE_NO_UTF8_CHECK; break;
3702    
3703        case 'T':        case 'T':
# Line 4018  while (!done) Line 4018  while (!done)
4018        {        {
4019        unsigned long int all_options;        unsigned long int all_options;
4020        pcre_uint32 first_char, need_char;        pcre_uint32 first_char, need_char;
4021        pcre_uint32 match_limit, recursion_limit;        pcre_uint32 match_limit, recursion_limit;
4022        int count, backrefmax, first_char_set, need_char_set, okpartial, jchanged,        int count, backrefmax, first_char_set, need_char_set, okpartial, jchanged,
4023          hascrorlf, maxlookbehind;          hascrorlf, maxlookbehind;
4024        int nameentrysize, namecount;        int nameentrysize, namecount;
# Line 4052  while (!done) Line 4052  while (!done)
4052    
4053        if (maxlookbehind > 0)        if (maxlookbehind > 0)
4054          fprintf(outfile, "Max lookbehind = %d\n", maxlookbehind);          fprintf(outfile, "Max lookbehind = %d\n", maxlookbehind);
4055    
4056        if (new_info(re, NULL, PCRE_INFO_MATCHLIMIT, &match_limit) == 0)        if (new_info(re, NULL, PCRE_INFO_MATCHLIMIT, &match_limit) == 0)
4057          fprintf(outfile, "Match limit = %u\n", match_limit);          fprintf(outfile, "Match limit = %u\n", match_limit);
4058    
4059        if (new_info(re, NULL, PCRE_INFO_RECURSIONLIMIT, &recursion_limit) == 0)        if (new_info(re, NULL, PCRE_INFO_RECURSIONLIMIT, &recursion_limit) == 0)
4060          fprintf(outfile, "Recursion limit = %u\n", recursion_limit);          fprintf(outfile, "Recursion limit = %u\n", recursion_limit);
4061    
4062        if (namecount > 0)        if (namecount > 0)
4063          {          {
# Line 5287  while (!done) Line 5287  while (!done)
5287            }            }
5288          }          }
5289    
5290        /* There was a partial match. If the bumpalong point is not the same as        /* There was a partial match. If the bumpalong point is not the same as
5291        the first inspected character, show the offset explicitly. */        the first inspected character, show the offset explicitly. */
5292    
5293        else if (count == PCRE_ERROR_PARTIAL)        else if (count == PCRE_ERROR_PARTIAL)
5294          {          {
5295          fprintf(outfile, "Partial match");          fprintf(outfile, "Partial match");
5296          if (use_size_offsets > 2 && use_offsets[0] != use_offsets[2])          if (use_size_offsets > 2 && use_offsets[0] != use_offsets[2])
5297            fprintf(outfile, " at offset %d", use_offsets[2]);            fprintf(outfile, " at offset %d", use_offsets[2]);
5298          if (markptr != NULL)          if (markptr != NULL)
5299            {            {
5300            fprintf(outfile, ", mark=");            fprintf(outfile, ", mark=");
5301            PCHARSV(markptr, 0, -1, outfile);            PCHARSV(markptr, 0, -1, outfile);

Legend:
Removed from v.1319  
changed lines
  Added in v.1320

  ViewVC Help
Powered by ViewVC 1.1.5