[patch] size reduction of grep

Bernhard Fischer rep.nop at aon.at
Sun Sep 18 22:46:36 UTC 2005


On Mon, Sep 19, 2005 at 12:22:28AM +0200, Bernhard Fischer wrote:
>Hi,
>
>$ size findutils/grep.o*
>   text	   data	    bss	    dec	    hex	filename
>   1545	      0	     40	   1585	    631	findutils/grep.o
>   1697	      0	     40	   1737	    6c9	findutils/grep.o.oorig
>
>
>tested with make check.
>PS: Rob, i'm aware that you don't like such defines, but the patch would
>have been considerably bigger otherwise. Is that acceptable?

> /* options */
>-#define GREP_OPTS "lnqvscFiHhe:f:L"
>+static unsigned long opt;
>+#define GREP_OPTS "lnqvscFiHhe:f:Lr"
------------------------------------^
This shouldn't be there, the rest is ok.
(Incomplete backout of supporting -r)

I'll resend if i get to unifying the grep test and adding some more..
Sorry for the noise.



More information about the busybox mailing list