/[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 835 by ph10, Wed Dec 28 16:10:09 2011 UTC revision 836 by ph10, Wed Dec 28 17:16:11 2011 UTC
# Line 6  Line 6 
6  its pattern matching. On a Unix or Win32 system it can recurse into  its pattern matching. On a Unix or Win32 system it can recurse into
7  directories.  directories.
8    
9             Copyright (c) 1997-2011 University of Cambridge             Copyright (c) 1997-2012 University of Cambridge
10    
11  -----------------------------------------------------------------------------  -----------------------------------------------------------------------------
12  Redistribution and use in source and binary forms, with or without  Redistribution and use in source and binary forms, with or without
# 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 = (linelength + endlinelength) - startoffset;          plength = (int)((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 - (ptr - main_buffer), in);      int add = read_one_line(ptr, bufsize - (int)(ptr - main_buffer), in);
1466      bufflength += add;      bufflength += add;
1467      endptr += add;      endptr += add;
1468      }      }

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

  ViewVC Help
Powered by ViewVC 1.1.5