summaryrefslogtreecommitdiff
path: root/editors
AgeCommit message (Collapse)Author
2009-09-09a few more GCC-isms removedDenys Vlasenko
text data bss dec hex filename 824641 458 6956 832055 cb237 busybox_old 824631 458 6956 832045 cb22d busybox_unstripped Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-09-06remove some GNUisms. by Dan Fandrich (dan AT coneharvesters.com)Denys Vlasenko
function old new delta logdirs_reopen 1310 1308 -2 read_line_input 4757 4753 -4 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-6) Total: -6 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-08-20patch: support -N. By Olivier Duclos (olivier.duclos AT gmail.com)Denys Vlasenko
function old new delta packed_usage 26646 26656 +10 patch_main 1101 1110 +9 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-08-17sed: fix " echo /usr/lib | sed 's,\(^/\|\)[^/][^/]*,..,g' " bugDenys Vlasenko
function old new delta process_files 2102 2091 -11 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-07-14sed: simpler fix for recent GNU compat stuff (by Rob Landley)Denys Vlasenko
function old new delta process_files 2120 2102 -18 Signed-off-by: Rob Landley <rob@landley.net> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-07-10sed: deal with peculiar behavior of '2d;2,1p' in GNU sedDenys Vlasenko
function old new delta process_files 2173 2120 -53 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-07-04fix dependencies of FEATURE_GETOPT_LONGDenys Vlasenko
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-06-30sed: fix handling of 1d;1,3p and 1d;1,REGEXpDenys Vlasenko
function old new delta process_files 2084 2173 +89 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-06-15vi: do not accept uppercase comments (compat). Closes bug 397.Denys Vlasenko
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-06-09diff: tiny compat tweakDenys Vlasenko
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-05-18awk: put at least one NUL between $n. Hopefully closes 337.Denys Vlasenko
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-05-17line editing: add an option to emit ESC [ 6 n and use resultsDenys Vlasenko
This makes line editing able to recognize case when cursor was not at the beginning of the line. It may also be adapted later to find out display size (serial line users would love it). Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-04-21*: mass renaming of USE_XXXX to IF_XXXXDenis Vlasenko
and SKIP_XXXX to IF_NOT_XXXX - the second one was especially badly named. It was not skipping anything!
2009-04-19mdev: Rob's #if forest removalDenis Vlasenko
*: remove superfluous conts in "f(type *const param)"
2009-04-12awk: fix long field separators case. By Ian Wienand (ianw AT vmware.com)Denis Vlasenko
2009-04-01trailing whitespace removalDenis Vlasenko
2009-03-15awk: fix compat issue found by gpm buildDenis Vlasenko
function old new delta as_regex 105 131 +26 hash_find 247 233 -14 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/1 up/down: 26/-14) Total: 12 bytes
2009-02-26unzip: fix thinko with le/be conv and size (closes bug 129)Denis Vlasenko
awk: make "struct global" hack more robust wrt alignment (closes bug 131)
2009-01-25awk: in BEGIN section $0 should be "", not "0".Denis Vlasenko
2008-11-24vi: speedup and code shrink (Walter Harms)Denis Vlasenko
networking/interface.c: silence warning (Vladimir) wget: more robust EINTR detection
2008-11-23diff: emit /dev/null if diff -rN diffs a file against /dev/nullDenis Vlasenko
function old new delta diffreg 1782 1786 +4
2008-11-19vi: fix several instances of major goof: when text grows, text[]Denis Vlasenko
might get reallocated! We were keeping around pointers to old place... function old new delta colon 3017 3037 +20 char_insert 336 354 +18 stupid_insert 18 24 +6 string_insert 89 94 +5 do_cmd 4461 4465 +4 file_insert 328 329 +1 text_hole_make 134 120 -14 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 6/1 up/down: 54/-14) Total: 40 bytes
2008-11-05*: code shrink by adding a wrapper around very common tcsetattr(0, TCSANOW, ↵Denis Vlasenko
xx) op function old new delta tcsetattr_stdin_TCSANOW - 14 +14 set_sane_term 116 113 -3 top_main 1277 1273 -4 make_new_session 421 415 -6 rawmode 133 126 -7 reset_term 18 10 -8 die 43 35 -8 cookmode 62 54 -8 vlock_main 425 415 -10 read_line_input 3165 3155 -10 bb_askpass 357 347 -10 fsck_minix_main 3079 3065 -14 getty_main 2375 2332 -43 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 0/12 up/down: 14/-131) Total: -117 bytes
2008-10-29randomconfig fixesDenis Vlasenko
2008-10-29vi: fix uninitialized last_search_pattern (bug 5794)Denis Vlasenko
2008-10-25less: reuse former vi's key reading code. Improve SIGWINCH handling.Denis Vlasenko
function old new delta less_main 2056 2097 +41 getch_nowait 248 273 +25 read_key 310 321 +11 static.esccmds 61 69 +8 count_lines 72 74 +2 less_gets 166 142 -24 less_getch 172 43 -129 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 6/5 up/down: 91/-170) Total: -79 bytes text data bss dec hex filename
2008-10-25vi: move key reading routine out of vi into llbbbDenis Vlasenko
function old new delta read_key - 310 +310 .... static.esccmds 170 61 -109 readit 286 60 -226 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 9/10 up/down: 349/-367) Total: -18 bytes
2008-10-24build system cleanup: rename FEATURE_AWK_MATH to FEATURE_AWK_LIBM;Denis Vlasenko
disable parsing test applet.
2008-10-21awk: fix typo in atan2 code. closes bug 5594.Denis Vlasenko
2008-10-20vi: handle chars 0x80, 0x81... correctlyDenis Vlasenko
2008-10-20dc: conditionalize parts which require libmDenis Vlasenko
2008-10-19volume identification: abolish /proc/partitions and /proc/cdromsDenis Vlasenko
scanning. It does not catch volume managers and such. Adding even more cruft is bad, so I decided to simply scan /dev/* for any block devices. See how much better it finds devices now: # ./busybox_old blkid /dev/sda1: LABEL="/boot" UUID="7931e231-dcb4-4b6d-9301-f7354ae24061" /dev/dm-0: LABEL="Fedora-9-Live-x8" UUID="bb491e1e-1145-4f5b-b0ab-cbd2baf4f15a" /dev/dm-1: UUID="edc2a920-ef83-437e-ba64-d3b6dc851267" /dev/sdb1: UUID="6F84-ED0F" # ./busybox blkid /dev/sdb1: UUID="6F84-ED0F" /dev/root: LABEL="Fedora-9-Live-x8" UUID="bb491e1e-1145-4f5b-b0ab-cbd2baf4f15a" /dev/dm-1: UUID="edc2a920-ef83-437e-ba64-d3b6dc851267" /dev/dm-0: LABEL="Fedora-9-Live-x8" UUID="bb491e1e-1145-4f5b-b0ab-cbd2baf4f15a" /dev/sda1: LABEL="/boot" UUID="7931e231-dcb4-4b6d-9301-f7354ae24061" /dev/mapper/VolGroup00-LogVol01: UUID="edc2a920-ef83-437e-ba64-d3b6dc851267" /dev/mapper/VolGroup00-LogVol00: LABEL="Fedora-9-Live-x8" UUID="bb491e1e-1145-4f5b-b0ab-cbd2baf4f15a" function old new delta static.drive_name_string 12 - -12 append_mount_options 205 190 -15 volume_id_open_node 37 18 -19 uuidcache_check_device 485 257 -228 uuidcache_init 637 36 -601 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 0/4 up/down: 0/-875) Total: -875 bytes text data bss dec hex filename 792218 592 6648 799458 c32e2 busybox_old 791260 592 6648 798500 c2f24 busybox_unstripped
2008-10-19Comment and whitespace tweaks.Rob Landley
2008-10-18vi: explain why reading 4 chars is unsafeDenis Vlasenko
2008-10-18vi: whitespace fixDenis Vlasenko
2008-10-16vi: a few trivial optimizations to keyboard reading code; bump timeout to 50s.Denis Vlasenko
function old new delta edit_file 901 912 +11 count_lines 74 72 -2 readit 306 289 -17 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/2 up/down: 11/-19) Total: -8 bytes
2008-10-16Confirmed that on Linux the serial interrupt takes precedence over the timerRob Landley
interrupt, so we don't need to worry about scheduler delays. This means the delay can be trimmed down to 25 miliseconds. Add comment while at it.
2008-10-14vi: fix bizarre formatting. no code changesDenis Vlasenko
2008-10-14fix recurring "last_cmd overrun", fix [del] handling in insert modeDenis Vlasenko
2008-10-14vi: trivial size optimization -65 bytesDenis Vlasenko
2008-10-14vi: reinstate timeout of 300 msDenis Vlasenko
2008-10-14vi: add comments to Rob's algorithm of reading and matching ESC sequencesDenis Vlasenko
(nice work btw!)
2008-10-14Escape sequences sent over serial links don't come in as a block, so pollRob Landley
needs to pause a bit to make sure the next character has time to come in.
2008-10-14Clean up editors/vi.c:readit() so it only does readahead when actuallyRob Landley
parsing an escape sequence. (This mitigates but doesn't fully fix the the "cursoring around the file deletes data under qemu" bug, presumably due to "\033[D" being treated as three separate characters.)
2008-09-21crontab: do not destroy STDIN_FILENO, editor may need it (crontab -e)Denis Vlasenko
vi: deal with EOF/error on stdin and with input NULs function old new delta crontab_main 623 642 +19 edit_file 901 906 +5 readit 331 318 -13
2008-09-05awk: add a commentDenis Vlasenko
2008-09-02awk: improve nadling of negative numbers in bitwise ops;Denis Vlasenko
fix handling of octal costants. add test for it function old new delta getvar_i_int - 93 +93 my_strtod - 84 +84 qrealloc 33 36 +3 getvar_i 99 95 -4 next_token 979 919 -60 evaluate 6359 5627 -732 ------------------------------------------------------------------------------ (add/remove: 2/0 grow/shrink: 1/3 up/down: 180/-796) Total: -616 bytes
2008-08-28awk: bitwise ops cast oprands and results to unsigned long,Denis Vlasenko
not signed. closes 4774.
2008-08-28awk: support hex constantsDenis Vlasenko
2008-07-22fix all cases of strcpy on overlapping strings.Denis Vlasenko