PERFORCE change 147063 for review
Gabor Kovesdan
gabor at FreeBSD.org
Sun Aug 10 09:29:53 UTC 2008
http://perforce.freebsd.org/chv.cgi?CH=147063
Change 147063 by gabor at gabor_server on 2008/08/10 09:29:25
- Fix -v for fixed strings
Affected files ...
.. //depot/projects/soc2008/gabor_textproc/grep/util.c#72 edit
Differences ...
==== //depot/projects/soc2008/gabor_textproc/grep/util.c#72 (text+ko) ====
@@ -263,6 +263,8 @@
if (fg_pattern[i].pattern) {
r = grep_search(&fg_pattern[i], (unsigned char *)l->dat,
l->len, &pmatch);
+ r = (r == 0) ? (vflag ? REG_NOMATCH : 0) : (vflag ? 0 : REG_NOMATCH);
+ st = pmatch.rm_eo;
} else if (grepbehave != GREP_PERL) {
r = regexec(&r_pattern[i], l->dat, 1, &pmatch, eflags);
r = (r == 0) ? (vflag ? REG_NOMATCH : 0) : (vflag ? 0 : REG_NOMATCH);
More information about the p4-projects
mailing list