/[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 356 by ph10, Mon Apr 28 15:10:02 2008 UTC revision 357 by ph10, Tue Jul 8 14:18:28 2008 UTC
# Line 1054  while (ptr < endptr) Line 1054  while (ptr < endptr)
1054          if (printname != NULL) fprintf(stdout, "%s:", printname);          if (printname != NULL) fprintf(stdout, "%s:", printname);
1055          if (number) fprintf(stdout, "%d:", linenumber);          if (number) fprintf(stdout, "%d:", linenumber);
1056          if (line_offsets)          if (line_offsets)
1057            fprintf(stdout, "%d,%d", matchptr + offsets[0] - ptr,            fprintf(stdout, "%d,%d", (int)(matchptr + offsets[0] - ptr),
1058              offsets[1] - offsets[0]);              offsets[1] - offsets[0]);
1059          else if (file_offsets)          else if (file_offsets)
1060            fprintf(stdout, "%d,%d", 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            fwrite(matchptr + offsets[0], 1, offsets[1] - offsets[0], stdout);            fwrite(matchptr + offsets[0], 1, offsets[1] - offsets[0], stdout);

Legend:
Removed from v.356  
changed lines
  Added in v.357

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12