/[grep]/grep/src/grep.c
ViewVC logotype

Diff of /grep/src/grep.c

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

revision 1.96 by julianfoad, Tue Apr 12 17:43:54 2005 UTC revision 1.97 by charles_levert, Fri Apr 29 06:04:47 2005 UTC
# Line 538  prline (char const *beg, char const *lim Line 538  prline (char const *beg, char const *lim
538            while ((match_offset = (*execute) (ibeg, ilim - ibeg, &match_size, 1))            while ((match_offset = (*execute) (ibeg, ilim - ibeg, &match_size, 1))
539                   != (size_t) -1)                   != (size_t) -1)
540              {              {
541                char const *b = ibeg + match_offset;                char const *b = beg + match_offset;
542                if (b == lim)                if (b == lim)
543                  break;                  break;
544                if (match_size == 0)                if (match_size == 0)
# Line 549  prline (char const *beg, char const *lim Line 549  prline (char const *beg, char const *lim
549                if(color_option)                if(color_option)
550                  fputs("\33[00m", stdout);                  fputs("\33[00m", stdout);
551                fputs("\n", stdout);                fputs("\n", stdout);
552                ibeg = b + match_size;                beg = b + match_size;
553                  ibeg += match_offset + match_size;
554              }              }
555            free (buf);            free (buf);
556            lastout = lim;            lastout = lim;

Legend:
Removed from v.1.96  
changed lines
  Added in v.1.97

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26