[Patch] Add command ":wn" to vi-applet
Bernhard Fischer
rep.nop at aon.at
Fri Mar 24 07:53:13 UTC 2006
On Thu, Mar 23, 2006 at 09:40:39PM -0500, Rob Landley wrote:
>On Thursday 23 March 2006 5:15 pm, Bernhard Fischer wrote:
>> On Thu, Mar 23, 2006 at 06:42:09PM +0100, Alexander Griesser wrote:
>> >-----BEGIN PGP SIGNED MESSAGE-----
>> >Hash: SHA1
>> >
>> >I don't know if you want this feature in the current vi release, I think
>> >the difference in sizes with this patch applied isn't that dramatically
>> >and I really like :wn ;)
>> >
>> >OLD:
>> > text data bss dec hex filename
>> > 20429 4 924 21357 536d vi.o
>> >
>> >NEW:
>> > text data bss dec hex filename
>> > 20456 4 924 21384 5388 vi.o
>
>
>
>> The patch you sent doesn't apply. The *.no. variants are your patch,
>> the smaller ones (the busybox.vi-add_wn.01_02.diff) would add a byte
>> less, fwiw.
>>
>> text data bss dec hex filename
>> 01_02 alone:
>> 20403 4 924 21331 5353 editors/vi.o.orig-4.0
>> 20430 4 924 21358 536e editors/vi.o.no-4.0
>> 20429 4 924 21357 536d editors/vi.o-4.0
>> 19823 4 816 20643 50a3 editors/vi.o.orig-4.2
>> 19850 4 816 20670 50be editors/vi.o.no-4.2
>> 19849 4 816 20669 50bd editors/vi.o-4.2
>> both 01_02 and 02_02
>> 20393 4 924 21321 5349 editors/vi.o-4.0-svn-version
>> 19825 4 816 20645 50a5 editors/vi.o-4.2-svn-version
>
>strcasecmp() with a three byte string is turned into thirteen comparisons
>(seven ==s, four ||s, and two &&s), but the one strcasecmp() on the next line
>is left alone?
>
>I'm _CONFUSED_.
I don't mean to shrink vi, nor clean it up :)
>I go :w filename from time to time, is this related?
no.
More information about the busybox
mailing list