/[pcre]/code/trunk/pgrep.c
ViewVC logotype

Diff of /code/trunk/pgrep.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 34 by nigel, Sat Feb 24 21:38:45 2007 UTC revision 35 by nigel, Sat Feb 24 21:39:05 2007 UTC
# Line 74  while (fgets(buffer, sizeof(buffer), in) Line 74  while (fgets(buffer, sizeof(buffer), in)
74    if (length > 0 && buffer[length-1] == '\n') buffer[--length] = 0;    if (length > 0 && buffer[length-1] == '\n') buffer[--length] = 0;
75    linenumber++;    linenumber++;
76    
77    match = pcre_exec(pattern, hints, buffer, length, 0, offsets, 99) >= 0;    match = pcre_exec(pattern, hints, buffer, length, 0, 0, offsets, 99) >= 0;
78    if (match && whole_lines && offsets[1] != length) match = FALSE;    if (match && whole_lines && offsets[1] != length) match = FALSE;
79    
80    if (match != invert)    if (match != invert)

Legend:
Removed from v.34  
changed lines
  Added in v.35

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12