[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

grep ./ChangeLog tests/ src/grep.c

From: Charles Levert
Subject: grep ./ChangeLog tests/ src/grep.c
Date: Tue, 21 Jun 2005 02:19:45 -0400

CVSROOT:        /cvsroot/grep
Module name:    grep
Changes by:     Charles Levert <address@hidden> 05/06/21 06:19:44

Modified files:
        .              : ChangeLog 
        tests          : 
        src            : grep.c 

Log message:
        * tests/ Add tests combining -o, -n/-b/-H, and -i,
        since there are separate code paths for -i.  Add tests combining
        -o, -n/-b/-H, and -3, since any context line specification
        should be ignored when combined with -o.
        * src/grep.c (print_line_head): New function, culled off the
        top content of prline().  Adds a guard against "lastnl" having
        already reached "lim", which can happen when if the function
        is called more than once per line.
        * src/grep.c (prline): Now calls print_line_head(), not only at
        the beginning to replace the moved code when -o is not
        specified, but also for each match when -o is specified (two
        code paths with this).  Patch #3770, more or less.  This makes
        all tests combining -o and -n/-b/-H pass, which they didn't
        before.  Fixes bug #12727.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]