aboutsummaryrefslogtreecommitdiff
path: root/editors (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* sed: fix " echo /usr/lib | sed 's,\(^/\|\)[^/][^/]*,..,g' " bugDenys Vlasenko2009-08-171-19/+26
| | | | | | | function old new delta process_files 2102 2091 -11 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* sed: simpler fix for recent GNU compat stuff (by Rob Landley)Denys Vlasenko2009-07-141-23/+14
| | | | | | | | 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>
* sed: deal with peculiar behavior of '2d;2,1p' in GNU sedDenys Vlasenko2009-07-101-12/+11
| | | | | | | function old new delta process_files 2173 2120 -53 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fix dependencies of FEATURE_GETOPT_LONGDenys Vlasenko2009-07-041-3/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* sed: fix handling of 1d;1,3p and 1d;1,REGEXpDenys Vlasenko2009-06-301-229/+247
| | | | | | | function old new delta process_files 2084 2173 +89 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* vi: do not accept uppercase comments (compat). Closes bug 397.Denys Vlasenko2009-06-151-33/+31
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* diff: tiny compat tweakDenys Vlasenko2009-06-091-0/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* awk: put at least one NUL between $n. Hopefully closes 337.Denys Vlasenko2009-05-181-4/+5
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* line editing: add an option to emit ESC [ 6 n and use resultsDenys Vlasenko2009-05-171-7/+6
| | | | | | | | | 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>
* *: mass renaming of USE_XXXX to IF_XXXXDenis Vlasenko2009-04-213-13/+13
| | | | | | and SKIP_XXXX to IF_NOT_XXXX - the second one was especially badly named. It was not skipping anything!
* mdev: Rob's #if forest removalDenis Vlasenko2009-04-191-2/+2
| | | | | *: remove superfluous conts in "f(type *const param)"
* awk: fix long field separators case. By Ian Wienand (ianw AT vmware.com)Denis Vlasenko2009-04-121-1/+4
|
* trailing whitespace removalDenis Vlasenko2009-04-011-2/+2
|
* awk: fix compat issue found by gpm buildDenis Vlasenko2009-03-151-3/+14
| | | | | | | | | 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
* unzip: fix thinko with le/be conv and size (closes bug 129)Denis Vlasenko2009-02-261-6/+9
| | | | | awk: make "struct global" hack more robust wrt alignment (closes bug 131)
* awk: in BEGIN section $0 should be "", not "0".Denis Vlasenko2009-01-251-13/+9
|
* vi: speedup and code shrink (Walter Harms)Denis Vlasenko2008-11-241-21/+17
| | | | | | networking/interface.c: silence warning (Vladimir) wget: more robust EINTR detection
* diff: emit /dev/null if diff -rN diffs a file against /dev/nullDenis Vlasenko2008-11-231-9/+7
| | | | | | function old new delta diffreg 1782 1786 +4
* vi: fix several instances of major goof: when text grows, text[]Denis Vlasenko2008-11-191-45/+78
| | | | | | | | | | | | | | | | 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
* *: code shrink by adding a wrapper around very common tcsetattr(0, TCSANOW, ↵Denis Vlasenko2008-11-051-2/+2
| | | | | | | | | | | | | | | | | | | | | | 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
* randomconfig fixesDenis Vlasenko2008-10-291-1/+2
|
* vi: fix uninitialized last_search_pattern (bug 5794)Denis Vlasenko2008-10-291-10/+5
|
* less: reuse former vi's key reading code. Improve SIGWINCH handling.Denis Vlasenko2008-10-251-1/+1
| | | | | | | | | | | | | | | 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
* vi: move key reading routine out of vi into llbbbDenis Vlasenko2008-10-251-185/+44
| | | | | | | | | | | 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
* build system cleanup: rename FEATURE_AWK_MATH to FEATURE_AWK_LIBM;Denis Vlasenko2008-10-242-5/+5
| | | | | disable parsing test applet.
* awk: fix typo in atan2 code. closes bug 5594.Denis Vlasenko2008-10-211-1/+1
|
* vi: handle chars 0x80, 0x81... correctlyDenis Vlasenko2008-10-201-61/+64
|
* dc: conditionalize parts which require libmDenis Vlasenko2008-10-201-1/+1
|
* volume identification: abolish /proc/partitions and /proc/cdromsDenis Vlasenko2008-10-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Comment and whitespace tweaks.Rob Landley2008-10-191-10/+6
|
* vi: explain why reading 4 chars is unsafeDenis Vlasenko2008-10-181-3/+5
|
* vi: whitespace fixDenis Vlasenko2008-10-181-2/+2
|
* vi: a few trivial optimizations to keyboard reading code; bump timeout to 50s.Denis Vlasenko2008-10-161-18/+29
| | | | | | | | | | 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
* Confirmed that on Linux the serial interrupt takes precedence over the timerRob Landley2008-10-161-2/+3
| | | | | 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.
* vi: fix bizarre formatting. no code changesDenis Vlasenko2008-10-141-2/+2
|
* fix recurring "last_cmd overrun", fix [del] handling in insert modeDenis Vlasenko2008-10-141-15/+15
|
* vi: trivial size optimization -65 bytesDenis Vlasenko2008-10-141-18/+16
|
* vi: reinstate timeout of 300 msDenis Vlasenko2008-10-141-4/+8
|
* vi: add comments to Rob's algorithm of reading and matching ESC sequencesDenis Vlasenko2008-10-141-23/+33
| | | | | (nice work btw!)
* Escape sequences sent over serial links don't come in as a block, so pollRob Landley2008-10-141-1/+1
| | | | needs to pause a bit to make sure the next character has time to come in.
* Clean up editors/vi.c:readit() so it only does readahead when actuallyRob Landley2008-10-141-61/+58
| | | | | | 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.)
* crontab: do not destroy STDIN_FILENO, editor may need it (crontab -e)Denis Vlasenko2008-09-211-23/+25
| | | | | | | | | | 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
* awk: add a commentDenis Vlasenko2008-09-051-0/+1
|
* awk: improve nadling of negative numbers in bitwise ops;Denis Vlasenko2008-09-021-14/+33
| | | | | | | | | | | | | | | 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
* awk: bitwise ops cast oprands and results to unsigned long,Denis Vlasenko2008-08-281-6/+8
| | | | | not signed. closes 4774.
* awk: support hex constantsDenis Vlasenko2008-08-281-1/+6
|
* fix all cases of strcpy on overlapping strings.Denis Vlasenko2008-07-221-1/+1
|
* - wrap overlong lines (Cristian Ionescu-Idbohrn)Bernhard Reutner-Fischer2008-07-221-7/+7
| | | | - s/\. /. /g;# (me)
* libbb: [x]fopen_for_{read,write} introduced and used.Denis Vlasenko2008-07-213-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (by Valdimir) function old new delta config_open2 - 41 +41 config_read 507 542 +35 find_pair 169 187 +18 fopen_for_write - 14 +14 fopen_for_read - 14 +14 find_main 406 418 +12 xfopen_for_write - 10 +10 xfopen_for_read - 10 +10 popstring 134 140 +6 parse_inittab 396 401 +5 next_token 923 928 +5 pack_gzip 1659 1661 +2 bb__parsespent 117 119 +2 fallbackSort 1719 1717 -2 evalvar 1376 1374 -2 qrealloc 36 33 -3 ... ... ... ... singlemount 4579 4569 -10 process_stdin 443 433 -10 patch_main 1111 1101 -10 ifupdown_main 2175 2165 -10 file_action_grep 90 80 -10 uuidcache_init 649 637 -12 hush_main 797 785 -12 read_config 230 217 -13 dpkg_main 3835 3820 -15 read_line_input 3134 3110 -24 sysctl_main 232 203 -29 config_open 40 10 -30 WARN_BAD_LINE 44 - -44 login_main 1714 1575 -139 ------------------------------------------------------------------------------ (add/remove: 5/1 grow/shrink: 8/74 up/down: 174/-737) Total: -563 bytes
* vi: using array data after it fell out of scope is stupid.Denis Vlasenko2008-07-171-6/+8
|