| 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 |
| 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]; |