/[pcre]/code/trunk/pcregrep.c
ViewVC logotype

Diff of /code/trunk/pcregrep.c

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

revision 587 by ph10, Fri Jan 14 19:01:25 2011 UTC revision 588 by ph10, Sat Jan 15 11:22:47 2011 UTC
# Line 1363  while (ptr < endptr) Line 1363  while (ptr < endptr)
1363            last_offset += offsets[1];            last_offset += offsets[1];
1364            matchptr += offsets[1];            matchptr += offsets[1];
1365            length -= offsets[1];            length -= offsets[1];
1366            if (!match_patterns(matchptr, length, offsets, &mrc)) break;            if (last_offset >= linelength + endlinelength ||
1367                  !match_patterns(matchptr, length, offsets, &mrc)) break;
1368            FWRITE(matchptr, 1, offsets[0], stdout);            FWRITE(matchptr, 1, offsets[0], stdout);
1369            fprintf(stdout, "%c[%sm", 0x1b, colour_string);            fprintf(stdout, "%c[%sm", 0x1b, colour_string);
1370            FWRITE(matchptr + offsets[0], 1, offsets[1] - offsets[0], stdout);            FWRITE(matchptr + offsets[0], 1, offsets[1] - offsets[0], stdout);

Legend:
Removed from v.587  
changed lines
  Added in v.588

  ViewVC Help
Powered by ViewVC 1.1.5