summaryrefslogtreecommitdiff
path: root/editors/sed.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* don't pass argc in getopt32, it's superfluousDenis Vlasenko2007-08-181-1/+1
| | | | | | | | (add/remove: 0/0 grow/shrink: 12/131 up/down: 91/-727) Total: -636 bytes text data bss dec hex filename 773469 1058 11092 785619 bfcd3 busybox_old 772644 1058 11092 784794 bf99a busybox_unstripped
* trylink: produce even more info about final link stageDenis Vlasenko2007-08-121-1/+1
| | | | | | | | | trylink: explain how to modify link and drastically decrease amount of padding (unfortunately, needs hand editing ATM). *: add ALIGN1 / ALIGN2 to global strings and arrays of bytes and shorts size saving: 0.5k
* sed: fix 'q' command handling ("Nguyen Thai Ngoc Duy" <pclouds@gmail.com>)Denis Vlasenko2007-08-061-2/+9
| | | | | | | add testsuite entry for it. Fix applet order checker. Fix cmp yelling. trylink: fix error file and map file generation applets: fix applet order
* Audit bb_common_bufsiz usage, add script which looks for misuse.Denis Vlasenko2007-06-041-7/+8
| | | | | | tr: stop using globals needlessly. code: -103 bytes
* whitespace fixesDenis Vlasenko2007-05-301-1/+1
|
* usage.c: remove reference to busybox.hDenis Vlasenko2007-05-261-1/+1
| | | | | *: s/include "busybox.h"/include "libbb.h"
* 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)
* 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
* 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.
* clean up accumulated whitespace damageDenis Vlasenko2007-03-071-1/+1
|
* suppress warnings about easch <applet>_main() havingDenis Vlasenko2007-02-031-0/+1
| | | | 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
|
* 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
|
* merge post-1.3.0 fixesDenis Vlasenko2006-12-261-1/+2
|
* remove casts from xmalloc()Denis Vlasenko2006-12-191-1/+1
|
* inline strcmp(s, "-") [actually macro-ize it for now - gcc is too stupid]Denis Vlasenko2006-12-161-3/+1
|
* bb_makedev: fix for glibc 2.3.2Denis Vlasenko2006-12-101-3/+3
| | | | sed: fix C++ style declaration
* sed: style fixesDenis Vlasenko2006-12-101-328/+338
|
* sed: fix handling of files not ending in '\n'Denis Vlasenko2006-12-021-10/+30
|
* sed: improve handling of NULsDenis Vlasenko2006-12-021-46/+64
|
* last nail into error_msg() (de)capitalizationDenis Vlasenko2006-10-271-1/+1
|
* rename functions to more understandable namesDenis Vlasenko2006-10-261-1/+1
|
* sed: mostly style fixes, very small changes in actual codeDenis Vlasenko2006-10-251-333/+354
|
* use skip_whitespace where appropriateDenis Vlasenko2006-10-251-82/+85
|
* bb_get_[chomped]line_from_file wasn't descriptive enough.Denis Vlasenko2006-10-121-2/+2
| | | | Renaming...
* getopt_ulflags -> getopt32.Denis Vlasenko2006-10-031-5/+5
| | | | | | | | 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.
* rename bb_default_error_retval -> xfunc_error_retvalDenis Vlasenko2006-10-031-1/+1
|
* lots of silly indent fixesDenis Vlasenko2006-10-031-1/+1
|
* sed: -e options were handled in reverse order. fix that.Denis Vlasenko2006-10-011-19/+27
|
* sed: unbreak multiple -e, -f option handling (my fault)Denis Vlasenko2006-10-011-15/+24
|
* sed: getopt_ulflags'isationDenis Vlasenko2006-09-221-34/+22
|
* Change license statements (and clean up headers) on some of the files thatRob Landley2006-09-221-1/+1
| | | | Erik or I are primary copyright holders on.
* whitespace cleanupDenis Vlasenko2006-09-171-2/+2
|
* Bugfix for: echo '123456789' | sed 's/./|&/5'Rob Landley2006-09-081-1/+1
|
* removed a lot of trailing \n in bb_msg() calls. It is addedDenis Vlasenko2006-09-061-1/+1
| | | | | automatically by function itself.
* Remove bb_ prefixes from xfuncs.c (and a few other places), consolidateRob Landley2006-08-031-16/+16
| | | | | | | | | | 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.)
* Rich Filker spotted that sed -e 's/xxx/[/' didn't work right. Did a smallerRob Landley2006-07-261-35/+23
| | | | | | fix than his, and shrank the code a bit on top of that so the net size is smaller, and added a test to the test suite for this case. Plus I cleaned up the #includes and removed unnecessary "const"s while I was there.
* Fix http://bugs.busybox.net/view.php?id=826 in which "(echo; echo) | sed x"Rob Landley2006-06-281-1/+1
| | | | | crashes because the empty state of the hold space is NULL but the empty state of the pattern space is "".
* - reuse strings and messages. Saves about 600BBernhard Reutner-Fischer2006-06-071-1/+1
|
* Confirming it's not needed.Rob Landley2006-06-051-1/+1
|
* - use bb functions instead of handrolling stuff.Bernhard Reutner-Fischer2006-06-031-3/+3
| | | | | | | - add XXX question about supposedly superfluous else clause text data bss dec hex filename 5918 0 0 5918 171e editors/sed.o.orig 5901 0 0 5901 170d editors/sed.o
* Change llist_add_* to take the address of the list rather than returning the newRob Landley2006-05-261-1/+1
| | | | head, and change all the callers.