aboutsummaryrefslogtreecommitdiff
path: root/editors/sed.c
AgeCommit message (Collapse)Author
2007-03-26sed: a communal variable managed to slip past 'size'Denis Vlasenko
('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
2007-03-16sed: fix very obscure case of escaped newline in sed commandDenis Vlasenko
(needed for uclibc build, btw). Add testcase for it.
2007-03-07clean up accumulated whitespace damageDenis Vlasenko
2007-02-03suppress warnings about easch <applet>_main() havingDenis Vlasenko
no preceding prototype
2007-01-30silly space saving in sedDenis Vlasenko
2007-01-30micro optimizationDenis Vlasenko
2007-01-29preparatory patch for -Wwrite-strings #7: sedDenis Vlasenko
remaining: shell (rather scary mess in msh.c)
2007-01-29preparatory patch for -Wwrite-strings #2Denis Vlasenko
2007-01-29add to testsuite and fix yet another sed corner caseDenis Vlasenko
2007-01-29disable -Wold-style-definition for gcc 3.xDenis Vlasenko
2007-01-29sed: fix 2 bugs (one testsuite entry + one newly found)Denis Vlasenko
but more importantly make code more understandable
2007-01-28fix all known regressions with sed and also make it simplerDenis Vlasenko
2007-01-19strdup -> xstrdupDenis Vlasenko
sed: de-obfuscate piece of code
2007-01-17sed,get_line_from_file: improve commentsDenis Vlasenko
2006-12-26merge post-1.3.0 fixesDenis Vlasenko
2006-12-19remove casts from xmalloc()Denis Vlasenko
2006-12-16inline strcmp(s, "-") [actually macro-ize it for now - gcc is too stupid]Denis Vlasenko
2006-12-10bb_makedev: fix for glibc 2.3.2Denis Vlasenko
sed: fix C++ style declaration
2006-12-10sed: style fixesDenis Vlasenko
2006-12-02sed: fix handling of files not ending in '\n'Denis Vlasenko
2006-12-02sed: improve handling of NULsDenis Vlasenko
2006-10-27last nail into error_msg() (de)capitalizationDenis Vlasenko
2006-10-26rename functions to more understandable namesDenis Vlasenko
2006-10-25sed: mostly style fixes, very small changes in actual codeDenis Vlasenko
2006-10-25use skip_whitespace where appropriateDenis Vlasenko
2006-10-12bb_get_[chomped]line_from_file wasn't descriptive enough.Denis Vlasenko
Renaming...
2006-10-03getopt_ulflags -> getopt32.Denis Vlasenko
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.
2006-10-03rename bb_default_error_retval -> xfunc_error_retvalDenis Vlasenko
2006-10-03lots of silly indent fixesDenis Vlasenko
2006-10-01sed: -e options were handled in reverse order. fix that.Denis Vlasenko
2006-10-01sed: unbreak multiple -e, -f option handling (my fault)Denis Vlasenko
2006-09-22sed: getopt_ulflags'isationDenis Vlasenko
2006-09-22Change license statements (and clean up headers) on some of the files thatRob Landley
Erik or I are primary copyright holders on.
2006-09-17whitespace cleanupDenis Vlasenko
2006-09-08Bugfix for: echo '123456789' | sed 's/./|&/5'Rob Landley
2006-09-06removed a lot of trailing \n in bb_msg() calls. It is addedDenis Vlasenko
automatically by function itself.
2006-08-03Remove bb_ prefixes from xfuncs.c (and a few other places), consolidateRob Landley
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.)
2006-07-26Rich Filker spotted that sed -e 's/xxx/[/' didn't work right. Did a smallerRob Landley
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.
2006-06-28Fix http://bugs.busybox.net/view.php?id=826 in which "(echo; echo) | sed x"Rob Landley
crashes because the empty state of the hold space is NULL but the empty state of the pattern space is "".
2006-06-07- reuse strings and messages. Saves about 600BBernhard Reutner-Fischer
2006-06-05Confirming it's not needed.Rob Landley
2006-06-03- use bb functions instead of handrolling stuff.Bernhard Reutner-Fischer
- 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
2006-05-26Change llist_add_* to take the address of the list rather than returning the newRob Landley
head, and change all the callers.
2006-05-24Yann Morin spotted some leftover flotsam from halfway through the recentRob Landley
llist.c interface change that accidentally got checked in. My bad.
2006-05-21Minor cleanups: Convert a few calloc() calls to xzalloc, remove unnecessaryRob Landley
memset, collate variable declarations...
2006-05-09Convert sed's static variables to a single global structure.Rob Landley
2006-05-08Move sed over to the generic llist_t for append. Saves about 90 bytes.Rob Landley
2006-03-09Portability patch from rfelker. The bb_asprintf.c thing needs an eventualRob Landley
follow up in platform.h to set the #ifdef, but the workaround works for everybody, so...
2006-03-06Robert P. Day removed 8 gazillion occurrences of "extern" on functionRob Landley
definitions. (That should only be on prototypes.)
2006-03-02- silence warning about "'free_and_close_stuff' used but never defined"Bernhard Reutner-Fischer