/[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 416 by ph10, Sat Apr 11 14:34:02 2009 UTC revision 427 by ph10, Fri Aug 28 09:55:54 2009 UTC
# Line 1992  while (!done) Line 1992  while (!done)
1992          continue;          continue;
1993    
1994          case 'P':          case 'P':
1995          options |= PCRE_PARTIAL;          options |= ((options & PCRE_PARTIAL_SOFT) == 0)?
1996              PCRE_PARTIAL_SOFT : PCRE_PARTIAL_HARD;
1997          continue;          continue;
1998    
1999          case 'Q':          case 'Q':
# Line 2363  while (!done) Line 2364  while (!done)
2364        else if (count == PCRE_ERROR_PARTIAL)        else if (count == PCRE_ERROR_PARTIAL)
2365          {          {
2366          fprintf(outfile, "Partial match");          fprintf(outfile, "Partial match");
2367  #if !defined NODFA          if (use_size_offsets > 1)
2368          if ((all_use_dfa || use_dfa) && use_size_offsets > 2)            {
2369            fprintf(outfile, ": %.*s", use_offsets[1] - use_offsets[0],            fprintf(outfile, ": ");
2370              bptr + use_offsets[0]);            pchars(bptr + use_offsets[0], use_offsets[1] - use_offsets[0],
2371  #endif              outfile);
2372              }
2373          fprintf(outfile, "\n");          fprintf(outfile, "\n");
2374          break;  /* Out of the /g loop */          break;  /* Out of the /g loop */
2375          }          }

Legend:
Removed from v.416  
changed lines
  Added in v.427

  ViewVC Help
Powered by ViewVC 1.1.5