summaryrefslogtreecommitdiff
path: root/editors (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* move several applets to more correct ex-project. No code changes.Denis Vlasenko2007-06-124-0/+1468
|
* moved biggest stack buffers to malloc space, or made their size configurableDenis Vlasenko2007-06-102-24/+36
| | | | | | | | | | | | | | | | | (8k of shell line edit buffer is an overkill) # make ARCH=i386 bloatcheck function old new delta read_line_input 3933 3967 +34 ifaddrlist 348 345 -3 do_loadfont 208 191 -17 edit_file 840 819 -21 .rodata 129112 129080 -32 uncompress 1305 1268 -37 loadfont_main 566 495 -71 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/6 up/down: 34/-181) Total: -147 bytes
* awk: experimentally modify "global" trick to make code smallerDenis Vlasenko2007-06-071-50/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | by minimizing data offsets function old new delta parse_expr 752 782 +30 syntax_error 23 26 +3 nvfree 151 154 +3 nvalloc 172 175 +3 fsrealloc 111 114 +3 chain_node 99 102 +3 chain_loop 121 124 +3 chain_group 628 631 +3 awk_main 1002 1005 +3 awk_exit 99 102 +3 parse_program 308 310 +2 split_f0 172 170 -2 awk_split 510 507 -3 getvar_s 108 102 -6 awk_sub 643 637 -6 awk_getline 706 700 -6 next_token 943 927 -16 handle_special 470 446 -24 next_input_file 252 213 -39 evaluate 6703 6633 -70 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 11/9 up/down: 59/-172) Total: -113 bytes # size */*/awk.o text data bss dec hex filename 18247 0 0 18247 4747 busybox.t0/editors/awk.o 18134 0 0 18134 46d6 busybox.t1/editors/awk.o
* awk: move all data to malloc spaceDenis Vlasenko2007-06-061-156/+234
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta evaluate 6448 6728 +280 awk_getline 676 705 +29 parse_expr 726 752 +26 next_token 917 943 +26 next_input_file 237 252 +15 awk_split 498 510 +12 awk_sub 632 643 +11 split_f0 160 170 +10 getvar_s 98 108 +10 ... chain_loop 128 121 -7 nvalloc 179 171 -8 chain_node 107 99 -8 mainseq 12 - -12 endseq 12 - -12 chain_group 640 628 -12 beginseq 12 - -12 awk_exit 112 100 -12 fsrealloc 127 110 -17 static.v 20 - -20 static.rsm 24 - -24 ttt 28 - -28 parse_program 339 311 -28 static.sreg 32 - -32 intvar 76 - -76 static.tspl 84 - -84 rsplitter 84 - -84 fsplitter 84 - -84 ------------------------------------------------------------------------------ (add/remove: 0/39 grow/shrink: 16/11 up/down: 439/-685) Total: -246 bytes
* Audit bb_common_bufsiz usage, add script which looks for misuse.Denis Vlasenko2007-06-042-11/+12
| | | | | | tr: stop using globals needlessly. code: -103 bytes
* vi: move some data to malloc'ed space: ~500 less bss, codeDenis Vlasenko2007-05-301-42/+68
| | | | size is smaller too (subject to arch differenced I guess)
* whitespace fixesDenis Vlasenko2007-05-301-1/+1
|
* usage.c: remove reference to busybox.hDenis Vlasenko2007-05-265-8/+6
| | | | | *: s/include "busybox.h"/include "libbb.h"
* awk: fix a trivial bug introduced by me.Denis Vlasenko2007-05-181-1/+1
| | | | | | This is how it goes. I break stuff by doing useless 'cleanups', people fix the fallout. :(. Thanks rockeychu!
* awk: make code a bit less obfuscatedDenis Vlasenko2007-05-171-240/+251
|
* several *.c files:Denis Vlasenko2007-05-171-2/+1
| | | | move 'extern environ' up to the location of #includes
* vi: remove two globalsDenis Vlasenko2007-05-172-69/+79
| | | | | | | | | | | | | | | | | | | | | | | | awk: some 'lineno' vars were shorts, made them ints (code got smaller) awk: rename global t to global ttt. still an awful name, but at least you can grep for it now. function old new delta ttt - 28 +28 mysleep 104 120 +16 readit 408 418 +10 lineno 2 4 +2 parse_program 338 339 +1 evaluate 6446 6445 -1 syntax_error 25 23 -2 next_token 917 915 -2 new_node 26 24 -2 tv 16 8 -8 skip_spaces 68 53 -15 t 28 - -28 rfds 128 - -128 ------------------------------------------------------------------------------ (add/remove: 1/2 grow/shrink: 4/6 up/down: 57/-186) Total: -129 bytes
* awk: don't segfault on printf(%*s). Close 1337.Denis Vlasenko2007-05-091-1/+4
|
* awk: guard against empty environmentDenis Vlasenko2007-05-031-1/+2
|
* sed: fix escaped newlines in -f; fix multiple -f and -eDenis Vlasenko2007-04-121-32/+18
| | | | (broke when getopt32 was fixed to not reverse the list)
* style fixes. No code changesDenis Vlasenko2007-04-123-3/+6
|
* audit small applets and mark some of them as NOFORK.Denis Vlasenko2007-04-101-0/+2
| | | | | Put big scary warnings in relevant places.
* getopt32: fix llist_t options ordering. llist_rev is not unused.Denis Vlasenko2007-04-081-1/+0
| | | | | | | | | | | | | | | | function old new delta tar_main 705 695 -10 sort_main 928 918 -10 decode_format_string 886 876 -10 run_parts_main 197 185 -12 ps_main 513 500 -13 wget_main 2764 2750 -14 awk_main 1014 1000 -14 od_main 2886 2866 -20 llist_rev 25 - -25 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 0/8 up/down: 0/-128) Total: -128 bytes
* libbb: add xunlink()Denis Vlasenko2007-04-051-6/+3
| | | | patch: do not try to delete same file twice
* Copyright, help text, whitespace cleanupsDenis Vlasenko2007-04-011-1/+1
|
* sed: a communal variable managed to slip past 'size'Denis Vlasenko2007-03-261-93/+99
| | | | | | | | | | | | | ('size' happily displays 0 bytes in data and bss, but in reality sed.o used 180 bytes of it). Oh well. function old new delta pipe_putc 67 76 +9 sed_main 627 633 +6 get_next_line 161 166 +5 bbg 180 - -180 (add/remove: 0/1 grow/shrink: 3/0 up/down: 20/-180) Total: -160 bytes sed: also make sed -i failure message less cryptic
* inetd,ed,msh: data/bss reduction (in mss, more than 9k of it)Denis Vlasenko2007-03-241-3/+9
|
* random style fixes (extra spaces deleted)Denis Vlasenko2007-03-241-1/+1
|
* assorted fixes uncovered by randomconfig runsDenis Vlasenko2007-03-221-1/+11
|
* vi: fix signed char-induced potential bugsDenis Vlasenko2007-03-211-30/+32
|
* vi: remove Byte typedef and massive amount of casts.Denis Vlasenko2007-03-211-424/+445
| | | | | also optimize many strlen() calls. if (strlen(buf) <= 0) goto vc1 - ??!!
* vi: support $EXINIT and -cDenis Vlasenko2007-03-211-14/+53
|
* sed: fix very obscure case of escaped newline in sed commandDenis Vlasenko2007-03-161-12/+29
| | | | (needed for uclibc build, btw). Add testcase for it.
* kill superfluous returns at the end of void functionsDenis Vlasenko2007-03-111-8/+1
|
* awk: support multiple -v optionsDenis Vlasenko2007-03-101-3/+8
|
* clean up accumulated whitespace damageDenis Vlasenko2007-03-072-2/+2
|
* awk: fix memory leak (can affect large file processing)Denis Vlasenko2007-02-241-18/+18
|
* suppress warnings about easch <applet>_main() havingDenis Vlasenko2007-02-035-0/+5
| | | | no preceding prototype
* silly space saving in sedDenis Vlasenko2007-01-301-6/+6
|
* micro optimizationDenis Vlasenko2007-01-301-1/+1
|
* preparatory patch for -Wwrite-strings #7: sedDenis Vlasenko2007-01-291-13/+16
| | | | remaining: shell (rather scary mess in msh.c)
* preparatory patch for -Wwrite-strings #2Denis Vlasenko2007-01-291-10/+10
|
* preparatory patch for -Wwrite-strings #1Denis Vlasenko2007-01-292-21/+28
|
* add to testsuite and fix yet another sed corner caseDenis Vlasenko2007-01-291-6/+24
|
* disable -Wold-style-definition for gcc 3.xDenis Vlasenko2007-01-291-6/+9
|
* sed: fix 2 bugs (one testsuite entry + one newly found)Denis Vlasenko2007-01-291-59/+59
| | | | but more importantly make code more understandable
* fix all known regressions with sed and also make it simplerDenis Vlasenko2007-01-281-28/+42
|
* strdup -> xstrdupDenis Vlasenko2007-01-191-3/+4
| | | | sed: de-obfuscate piece of code
* sed,get_line_from_file: improve commentsDenis Vlasenko2007-01-171-17/+27
|
* whitespace fixes (leading spaces to tab)Denis Vlasenko2007-01-131-1/+1
|
* Trailing whitespace removal over entire treeDenis Vlasenko2007-01-111-2/+2
|
* awk: style fixesDenis Vlasenko2007-01-011-27/+23
|
* awk: undo locale setting for numbers - or else parsingDenis Vlasenko2007-01-011-0/+5
| | | | | can act quite mysteriously date: add if(ENABLE_LOCALE_SUPPORT)
* awk: style cleanup. A lot of rw data moved to roDenis Vlasenko2007-01-011-294/+293
| | | | | (still has quite a lot of statics etc...). getopt32-ification.
* next bunch of fixes for bugs found by randconfigDenis Vlasenko2006-12-301-202/+205
|