/[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 779 by ph10, Fri Dec 2 10:39:32 2011 UTC revision 835 by ph10, Wed Dec 28 16:10:09 2011 UTC
# Line 1410  while (ptr < endptr) Line 1410  while (ptr < endptr)
1410          and its line-ending characters (if they matched the pattern), so there          and its line-ending characters (if they matched the pattern), so there
1411          may be no more to print. */          may be no more to print. */
1412    
1413          plength = (int)((linelength + endlinelength) - startoffset);          plength = (linelength + endlinelength) - startoffset;
1414          if (plength > 0) FWRITE(ptr + startoffset, 1, plength, stdout);          if (plength > 0) FWRITE(ptr + startoffset, 1, plength, stdout);
1415          }          }
1416    
# Line 1462  while (ptr < endptr) Line 1462  while (ptr < endptr)
1462    
1463    if (input_line_buffered && bufflength < (size_t)bufsize)    if (input_line_buffered && bufflength < (size_t)bufsize)
1464      {      {
1465      int add = read_one_line(ptr, bufsize - (int)(ptr - main_buffer), in);      int add = read_one_line(ptr, bufsize - (ptr - main_buffer), in);
1466      bufflength += add;      bufflength += add;
1467      endptr += add;      endptr += add;
1468      }      }

Legend:
Removed from v.779  
changed lines
  Added in v.835

  ViewVC Help
Powered by ViewVC 1.1.5