/[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 376 by ph10, Tue Jul 8 14:18:28 2008 UTC revision 377 by ph10, Sun Mar 1 12:07:19 2009 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-2008 University of Cambridge             Copyright (c) 1997-2009 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 1060  while (ptr < endptr) Line 1060  while (ptr < endptr)
1060            fprintf(stdout, "%d,%d", (int)(filepos + matchptr + offsets[0] - ptr),            fprintf(stdout, "%d,%d", (int)(filepos + matchptr + offsets[0] - ptr),
1061              offsets[1] - offsets[0]);              offsets[1] - offsets[0]);
1062          else          else
1063              {
1064              if (do_colour) fprintf(stdout, "%c[%sm", 0x1b, colour_string);
1065            fwrite(matchptr + offsets[0], 1, offsets[1] - offsets[0], stdout);            fwrite(matchptr + offsets[0], 1, offsets[1] - offsets[0], stdout);
1066              if (do_colour) fprintf(stdout, "%c[00m", 0x1b);
1067              }
1068          fprintf(stdout, "\n");          fprintf(stdout, "\n");
1069          matchptr += offsets[1];          matchptr += offsets[1];
1070          length -= offsets[1];          length -= offsets[1];

Legend:
Removed from v.376  
changed lines
  Added in v.377

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12