summaryrefslogtreecommitdiff
path: root/editors (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
| * awk: fix breakage in last commitDenys Vlasenko2010-10-241-12/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | While at it, made bb_process_escape_sequence faster (same size) function old new delta nextchar 49 53 +4 bb_process_escape_sequence 138 140 +2 next_token 838 839 +1 static.charmap 20 18 -2 is_assignment 143 135 -8 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 3/2 up/down: 7/-10) Total: -3 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * awk: fix segfault on closing non-opened fileDenys Vlasenko2010-10-231-86/+96
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* | Merge commit '6722737ece4b8db3e30b53aef8f981f53db1621e'Nguyễn Thái Ngọc Duy2011-01-043-8/+4
|\| | | | | | | | | Conflicts: coreutils/dos2unix.c
| * *: introduce and use xmkstemp. -65 bytes.Alexander Shishkin2010-10-223-8/+4
| | | | | | | | | | Signed-off-by: Alexander Shishkin <virtuoso@slind.org> Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* | Merge commit '6722737ece4b8db3e30b53aef8f981f53db1621e^'Nguyễn Thái Ngọc Duy2011-01-041-9/+16
|\|
| * patch: implement -E optionLukas Huba2010-10-211-9/+16
| | | | | | | | | | Signed-off-by: Lukas Huba <Huba.Lukas@centrum.cz> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * revert last change (wrong author)Denys Vlasenko2010-10-211-16/+9
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * patch: implement -E optionGilles Espinasse2010-10-211-9/+16
| | | | | | | | | | Signed-off-by: Gilles Espinasse <g.esp@free.fr> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* | Merge commit '06f719fd79fe15ce6fd5431bc58fcb22851de24d^'Nguyễn Thái Ngọc Duy2011-01-043-59/+91
|\|
| * *: replace xopen3 with xopen where makes senseDenys Vlasenko2010-10-182-2/+2
| | | | | | | | | | | | | | | | | | | | function old new delta uniq_main 421 416 -5 sort_main 803 798 -5 patch_main 2051 2046 -5 cpio_main 547 542 -5 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * awk: code shrinkDenys Vlasenko2010-10-051-43/+41
| | | | | | | | | | | | | | | | function old new delta fsrealloc 112 107 -5 next_token 862 844 -18 Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
| * awk: 00.123 is not a octal constant; neither is 009.123. fixing thisDenys Vlasenko2010-10-051-8/+40
| | | | | | | | | | | | | | function old new delta my_strtod 80 113 +33 Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
| * *: whitespace fixesDenys Vlasenko2010-10-052-2/+2
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * patch: tweaksRob Landley2010-10-041-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | 1) Eliminate spurious warnings about possibly reduced hunks. Instead only note a possible location if we don't find a non-reversed place to apply it. (Otherwise, hunks that move code forward around within a file look reversed at the removal site.) 2) Open the source file read-only, so we can apply patches to read-only files. Signed-off-by: Rob Landley <rob@landley.net> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* | win32: vi: reimplement mysleep() because poll() won't work on stdinNguyễn Thái Ngọc Duy2010-09-141-0/+9
|/ | | | | This makes vi work on rxvt for Windows. There is work to do in winansi.c in order to make vim work on Windows console.
* *: s/perror/bb_simple_perror_msg/gMarek Polacek2010-09-121-5/+5
| | | | | | | | | | | function old new delta readLines 448 446 -2 doCommands 2449 2438 -11 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-13) Total: -13 bytes Signed-off-by: Marek Polacek <mmpolacek@gmail.com> Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* typo fix in commentDenys Vlasenko2010-08-301-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* patch: support "patch [FILE [PATCH]]" formatDenys Vlasenko2010-08-221-11/+24
| | | | | | | | function old new delta xopen_stdin - 15 +15 patch_main 2075 2041 -34 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* patch: fix -N regressionDenys Vlasenko2010-08-171-5/+11
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: make GNU licensing statement forms more regularDenys Vlasenko2010-08-167-19/+19
| | | | | | | This change retains "or later" state! No licensing _changes_ here, only form is adjusted (article, space between "GPL" and "v2" and so on). Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* sed: make N command behave as in GNU sedDenys Vlasenko2010-08-161-3/+11
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* patch: add -N and a test for it (fails for now)Denys Vlasenko2010-08-161-2/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* patch: move closer to toybox codeDenys Vlasenko2010-08-131-4/+7
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* patch: deal with ommitted ",len" in hunk headers (default len to 1)Rob Landley2010-08-131-7/+13
| | | | | Signed-off-by: Rob Landley <rob@landley.net> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* patch: replace it with toybox's implementationRob Landley2010-08-133-336/+959
| | | | | Signed-off-by: Rob Landley <rob@landley.net> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* sed: fix sed -i: unlike without -i, it does not forget rangesDenys Vlasenko2010-08-011-4/+9
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* vi: fix "ask terminal" codeDenys Vlasenko2010-07-211-10/+10
| | | | | | | | | function old new delta edit_file 761 793 +32 refresh 773 780 +7 query_screen_dimensions 63 54 -9 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* diff: make diff -r much less eager to recurse into directoriesDenys Vlasenko2010-07-101-1/+22
| | | | | | | | function old new delta skip_dir 44 120 +76 diff_main 1175 1185 +10 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* diff: cosmetic change on top of last commitDenys Vlasenko2010-07-091-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* diff: fix "diff dir1 dir2/". Closes bug 2203Matheus Izvekov2010-07-091-2/+4
| | | | | Signed-off-by: Matheus Izvekov <mizvekov@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* remove some dead assignments, add a TODO commentDenys Vlasenko2010-07-041-1/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* sed: trivial code shrink -18 bytesDenys Vlasenko2010-06-191-3/+6
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Revert "sed: trivial code shrink"Denys Vlasenko2010-06-191-6/+3
| | | | This reverts commit c2c7aa4b0d16049322ca2ebc69ca1093f6944e3a.
* sed: trivial code shrinkDenys Vlasenko2010-06-191-3/+6
| | | | | | | function old new delta sed_main 685 667 -18 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* add a comment about sed and suid bitsDenys Vlasenko2010-06-181-0/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: add INSERTs to *.src files where appropriateDenys Vlasenko2010-06-082-0/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* remove defconfig. Now "make defconfig" simply uses defaults from Config.inDenys Vlasenko2010-06-061-11/+11
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mass renaming Kbuild -> Kbuild.src, Config.in -> Config.srcDenys Vlasenko2010-06-042-0/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* typo fixDenys Vlasenko2010-06-041-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* sed: fix a case when one-line range matches past lines. Closes bug 1867.Denys Vlasenko2010-06-041-15/+28
| | | | | | | | | | function old new delta process_files 2096 2107 +11 add_cmd 1142 1132 -10 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/1 up/down: 11/-10) Total: 1 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* vi: fix "set ic" command; code shrink while at it. closes bug 1765Denys Vlasenko2010-05-191-49/+37
| | | | | | | function old new delta colon 2970 2848 -122 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* consolidate ESC sequencesDenys Vlasenko2010-05-161-8/+8
| | | | | | | | | | | | | | function old new delta bell 2 - -2 CMdown 2 - -2 Ceos 4 - -4 Ceol 4 - -4 CMup 4 - -4 SOs 5 - -5 SOn 5 - -5 CMrc 9 - -9 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* sed: fix a command with multible trailing backslashesDenys Vlasenko2010-05-121-6/+8
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* lineedit: change how cmdedit_set_out_char worksDenys Vlasenko2010-05-111-2/+2
| | | | | | | | | | | | | | | | | | | Rename two badly names functions, use "clear to end of screen" to eliminate annoying problems with clearing wide/combining chars, and such. Run tested. function old new delta put_cur_glyph_and_inc_cursor - 124 +124 put_till_end_and_adv_cursor - 24 +24 input_delete 125 130 +5 Ceos 5 4 -1 Ceol 5 4 -1 input_end 24 - -24 cmdedit_set_out_char 122 - -122 ------------------------------------------------------------------------------ (add/remove: 2/2 grow/shrink: 1/2 up/down: 153/-148) Total: 5 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* cmp: remove history comment. it is more natural to keep it in source controlDenys Vlasenko2010-04-261-11/+0
| | | | | | | | | | | | | | | | The comment was: * Mar 16, 2003 Manuel Novoa III (mjn3@codepoet.org) * * Original version majorly reworked for SUSv3 compliance, bug fixes, and * size optimizations. Changes include: * 1) Now correctly distinguishes between errors and actual file differences. * 2) Proper handling of '-' args. * 3) Actual error checking of i/o. * 4) Accept SUSv3 -l option. Note that we use the slightly nicer gnu format * in the '-l' case. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* cmp: ifdefectomyRob Landley2010-04-261-9/+6
| | | | | Signed-off-by: Rob Landley <rob@landley.net> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* sed: fix nested {} caseDenys Vlasenko2010-04-201-1/+9
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* sed: fix c cmdDenys Vlasenko2010-04-191-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* vi: discover window size even on serial consoles. optionalDenys Vlasenko2010-04-182-1/+34
| | | | | | | | | | | | | | | | function old new delta edit_file 671 761 +90 wh_helper - 57 +57 query_screen_dimensions 54 63 +9 ar_main 533 542 +9 refresh 767 773 +6 vi_main 242 243 +1 text_yank 56 54 -2 get_terminal_width_height 180 135 -45 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 5/2 up/down: 172/-47) Total: 125 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* vi: remove superfluous check on filename == ""Denys Vlasenko2010-04-181-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>