aboutsummaryrefslogtreecommitdiff
path: root/coreutils/diff.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* move several applets to more correct ex-project. No code changes.Denis Vlasenko2007-06-121-1282/+0
|
* - i need this disabled code for testing a patch. Please leave it in.Bernhard Reutner-Fischer2007-06-071-0/+18
|
* awk: move all data to malloc spaceDenis Vlasenko2007-06-061-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* diff: stop using data/bssDenis Vlasenko2007-06-041-45/+75
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta do_diff 385 436 +51 diff_main 850 895 +45 dump_unified_vec 437 457 +20 prepare 335 334 -1 anychange 1 - -1 suff 4 - -4 status 135 131 -4 static.max_context 4 - -4 start 12 8 -4 pref 4 - -4 member 4 - -4 label2 4 - -4 label1 4 - -4 klist 4 - -4 ixold 4 - -4 ixnew 4 - -4 dl_count 4 - -4 dl 4 - -4 context_vec_start 4 - -4 context_vec_ptr 4 - -4 context_vec_end 4 - -4 context 4 - -4 clistlen 4 - -4 clist 4 - -4 clen 4 - -4 class 4 - -4 J 4 - -4 add_to_dirlist 71 64 -7 slen 8 - -8 sfile 8 - -8 len 8 - -8 file 8 - -8 get_dir 196 185 -11 newcand 97 85 -12 change 351 331 -20 stb2 96 - -96 stb1 96 - -96 diffreg 2835 2717 -118 ------------------------------------------------------------------------------ (add/remove: 0/27 grow/shrink: 3/8 up/down: 116/-482) Total: -366 bytes # size */*/diff.o text data bss dec hex filename 7055 8 305 7368 1cc8 busybox.t2/coreutils/diff.o 7002 0 0 7002 1b5a busybox.t3/coreutils/diff.o
* usage.c: remove reference to busybox.hDenis Vlasenko2007-05-261-1/+1
| | | | | *: s/include "busybox.h"/include "libbb.h"
* find: fix handling of -pruneDenis Vlasenko2007-04-081-1/+1
| | | | recursive_actions: uppercase flag constants
* diff: fix segfault on empty dirs (Peter Korsgaard <peter.korsgaard@barco.com>)Denis Vlasenko2007-04-051-1/+1
|
* - fold recurse, depthFirst and dereference params into one param flags.Bernhard Reutner-Fischer2007-03-291-1/+2
| | | | Minor size improvement (-16b for size, -24b according to bloat-o-meter).
* diff: fix SEGV (NULL deref) in diff -NDenis Vlasenko2007-03-261-9/+18
|
* fix buglets found by randomconfig runDenis Vlasenko2007-03-111-2/+2
|
* diff: failed to confirm "static bug" in gcc - reinstating statics.Denis Vlasenko2007-03-091-74/+79
| | | | microscopic code improvements.
* diff: make -U0 workDenis Vlasenko2007-03-071-1/+1
|
* diff: fix access past end of arrayDenis Vlasenko2007-02-111-36/+13
|
* suppress warnings about easch <applet>_main() havingDenis Vlasenko2007-02-031-0/+1
| | | | no preceding prototype
* - small size tweaksBernhard Reutner-Fischer2007-01-201-2/+2
|
* - FIXME: someone broke diff -rBernhard Reutner-Fischer2007-01-071-48/+48
| | | | | | | - minor shrinkage i had lying around text data bss dec hex filename 7002 8 88 7098 1bba diff.o.orig 6936 8 81 7025 1b71 diff.o
* work around gcc's false warningDenis Vlasenko2007-01-071-3/+2
|
* diff: small optimizations; do not try to diff non-seekable streamDenis Vlasenko2007-01-071-46/+44
| | | | | | | | (currently we don't support that) sort: fixes. testsuites fixed: sort with non-default leading delim 1 sort with non-default leading delim 2 sort key doesn't strip leading blanks, disables fallback global sort
* - minor shrinkage: -25 bytes or so.Bernhard Reutner-Fischer2007-01-061-12/+14
|
* done a dozen of randconfig test. guess what? ALL failed...Denis Vlasenko2006-12-301-1/+1
| | | | these are resulting fixes
* introduce LONE_CHAR (optimized strcmp with one-char string)Denis Vlasenko2006-12-211-1/+1
|
* inline strcmp(s, "-") [actually macro-ize it for now - gcc is too stupid]Denis Vlasenko2006-12-161-5/+5
|
* diff: fix -q exit codeDenis Vlasenko2006-12-161-70/+72
| | | | last_char_is: sacrifice 9 bytes but avoid double-scan
* - minor shrinkageBernhard Reutner-Fischer2006-12-141-4/+6
|
* - remove warning about unused depth parameter in add_to_dirlist()Bernhard Reutner-Fischer2006-12-131-2/+5
| | | | - make one variable static and add comment about why the other variables there are not static.
* style cleanup: return(a) -> return a, part 2Denis Vlasenko2006-11-271-8/+8
|
* style cleanup: return(a) -> return a, part 1Denis Vlasenko2006-11-271-15/+15
|
* recursive_action: add depth paramDenis Vlasenko2006-10-271-3/+3
| | | | chmod: match coreutils versus following links
* add open_read_close() and similar stuffDenis Vlasenko2006-10-141-3/+3
|
* attempt to regularize atoi mess.Denis Vlasenko2006-10-081-1/+1
|
* build system overhaulDenis Vlasenko2006-10-051-3/+2
|
* getopt_ulflags -> getopt32.Denis Vlasenko2006-10-031-2/+2
| | | | | | | | It is impossible to formulate sane ABI based on size of ulong because it can be 32-bit or 64-bit. Basically it means that you cannot portably use more that 32 option chars in one call anyway... Make it explicit.
* whitespace cleanupDenis Vlasenko2006-09-171-2/+2
|
* Remove bb_ prefixes from xfuncs.c (and a few other places), consolidateRob Landley2006-08-031-29/+12
| | | | | | | | | | things like xasprintf() into xfuncs.c, remove xprint_file_by_name() (it only had one user), clean up lots of #includes... General cleanup pass. What I've been doing for the last couple days. And it conflicts! I've removed httpd.c from this checkin due to somebody else touching that file. It builds for me. I have to catch a bus. (Now you know why I'm looking forward to Mercurial.)
* More removal of "#if 0" content."Robert P. J. Day"2006-07-011-18/+0
|
* - reuse strings and messages. Saves about 600BBernhard Reutner-Fischer2006-06-071-7/+2
|
* - just whitespaceBernhard Reutner-Fischer2006-05-291-731/+741
|
* - ls: remove unused variableBernhard Reutner-Fischer2006-05-291-8/+6
| | | | | | | | - dpkg.c, diff: use xstat text data bss dec hex filename 848823 9100 645216 1503139 16efa3 busybox_old 848679 9100 645216 1502995 16ef13 busybox_unstripped bloatcheck is completely useless as it sees -79 for this, which is bogus.
* - do not use non-standard u_int.Bernhard Reutner-Fischer2006-05-191-6/+6
| | | | | - do not use _PATH_DEVNULL gnuism but bb_dev_null. Thanks to Rich Felker.
* Simplify the GPL boilerplate.Rob Landley2006-04-181-18/+2
|
* - add and use bb_opendir(), bb_xopendir().Bernhard Reutner-Fischer2006-04-121-2/+2
| | | | | | | | text data bss dec hex filename 889445 9392 1035784 1934621 1d851d busybox.gcc-4.2.orig 889297 9392 1035784 1934473 1d8489 busybox.gcc-4.2 889009 9820 1037860 1936689 1d8d31 busybox.gcc-4.1.orig 888817 9820 1037860 1936497 1d8c71 busybox.gcc-4.1
* - patch from Rob Sullivan to add support for -LBernhard Reutner-Fischer2006-04-061-36/+64
|
* - shrink it a little bit and make it buildable with gcc-2.95Bernhard Reutner-Fischer2006-04-061-35/+46
| | | | | | | | | | | | | | | | text data bss dec hex filename 7332 4 92 7428 1d04 diff.o-gcc-4.2-HEAD.orig 7185 4 92 7281 1c71 diff.o-gcc-4.2-HEAD.new 7336 4 92 7432 1d08 diff.o-gcc-4.1-HEAD.orig 7148 4 92 7244 1c4c diff.o-gcc-4.1-HEAD.new 7485 4 92 7581 1d9d diff.o-gcc-4.0.orig 7318 4 92 7414 1cf6 diff.o-gcc-4.0.new 7511 4 92 7607 1db7 diff.o-gcc-3.4.orig 7252 4 92 7348 1cb4 diff.o-gcc-3.4.new 8214 4 92 8310 2076 diff.o-gcc-3.3.orig 7882 4 92 7978 1f2a diff.o-gcc-3.3.new - - - - - diff.o-gcc-2.95.orig 8238 8 88 8334 208e diff.o-gcc-2.95.new
* - remove unused args.Bernhard Reutner-Fischer2006-04-061-12/+13
| | | | | | text data bss dec hex filename 7353 4 92 7449 1d19 coreutils/diff.o-gcc-4.2.oorig 7332 4 92 7428 1d04 coreutils/diff.o
* - move code around to avoid the need for the prototypes.Bernhard Reutner-Fischer2006-04-061-587/+557
|
* - new applet diff. Rob Sullivan writes:Bernhard Reutner-Fischer2006-04-061-0/+1277
Here's my attempt at a mini diff applet - it's adapted from the code at http://www.openbsd.org/cgi-bin/cvsweb/src/usr.bin/diff/, and only supports unified diffs. I've busyboxified everything to a reasonable degree, so I think the code is suitable enough to be included, but there's still a fair bit of cleaning up to be done.