aboutsummaryrefslogtreecommitdiff
path: root/editors/awk.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Minor cleanups: Convert a few calloc() calls to xzalloc, remove unnecessarylandley2006-05-211-8/+8
| | | | | | | memset, collate variable declarations... git-svn-id: svn://busybox.net/trunk/busybox@15156 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - include strings.haldot2006-05-191-0/+1
| | | | | | | Thanks to Rich Felker for pointing this out. git-svn-id: svn://busybox.net/trunk/busybox@15124 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove bb_strlen() in favor of -fno-builtin-strlen. Saves as many byteslandley2006-05-071-14/+14
| | | | | | | | as the old optimization did (actually does slightly better under gcc 4.0), and simplifies the code. git-svn-id: svn://busybox.net/trunk/busybox@15023 69ca8d6d-28ef-0310-b511-8ec308f3f277
* touchup commentvapier2006-04-161-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@14886 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Denis Vlasenko turning static const int (which gets emitted intolandley2006-03-101-1/+1
| | | | | | | the busybox binary) into enums (which don't). git-svn-id: svn://busybox.net/trunk/busybox@14513 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Robert P. Day removed 8 gazillion occurrences of "extern" on functionlandley2006-03-061-1/+1
| | | | | | | definitions. (That should only be on prototypes.) git-svn-id: svn://busybox.net/trunk/busybox@14457 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from awk maintainer (Dmitry Zakhrov) to fix bugs 642, 663, and 667.landley2006-02-141-5/+13
| | | | git-svn-id: svn://busybox.net/trunk/busybox@14013 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - add platform.h.aldot2006-01-221-16/+3
| | | | | | | - use shorter boilerplate while at it. git-svn-id: svn://busybox.net/trunk/busybox@13494 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Bug 112, return value of awk should be /256. In reality, we should probablylandley2006-01-091-1/+1
| | | | | | | | | be using WEXITSTATUS(), but until I can figure out why the heck that would want to do (*(int *) &(status)) on the value, I'm happy just fixing the bug we actually see. git-svn-id: svn://busybox.net/trunk/busybox@13198 69ca8d6d-28ef-0310-b511-8ec308f3f277
* more const, attribute_noreturn saved 200 bytesvodz2005-10-191-24/+26
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11886 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - consume space between functionname and opening bracketsaldot2005-10-171-1/+2
| | | | | | | Fixes Rob's issue using busybox awk for building gcc-4_0 optionlist (http://busybox.net/lists/busybox/2005-October/016659.html) git-svn-id: svn://busybox.net/trunk/busybox@11883 69ca8d6d-28ef-0310-b511-8ec308f3f277
* as pointed out in Bug 17, use uint32_t instead of unsigned long since the ↵vapier2005-09-271-20/+20
| | | | | | code expects the size of the info variables to be 32bits and sizeof(long) on 64bit hosts is not 32bits git-svn-id: svn://busybox.net/trunk/busybox@11661 69ca8d6d-28ef-0310-b511-8ec308f3f277
* eat misappropriated whitespacevapier2005-09-271-66/+66
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11659 69ca8d6d-28ef-0310-b511-8ec308f3f277
* uncuddle function scope bracketsvapier2005-09-271-116/+116
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11658 69ca8d6d-28ef-0310-b511-8ec308f3f277
* split libbb: moved xregcomp separatelly for speed up recompilevodz2005-09-141-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11464 69ca8d6d-28ef-0310-b511-8ec308f3f277
* removed strange extern void xregcomp(... from some applets, but declared ↵vodz2005-09-141-1/+0
| | | | | | from libbb.h git-svn-id: svn://busybox.net/trunk/busybox@11463 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Dmitry Zakharov:landley2005-06-071-2/+1
| | | | | | | | | | | | | | | | | | Charlie Brady wrote: > Here's another awk parsing problem - unary post increment - pre is fine: > >bash-2.05a$ echo 2,3 | gawk -F , '{ $2++ }' >bash-2.05a$ echo 2,3 | /tmp/busybox/busybox awk -F , '{ $2++ }' >awk: cmd. line:1: Unexpected token > Here's a fix for this. There is another problem with constructions like "print (A+B) ++C", I don't know whether somebody uses such constructions (fixing both these problems would require very serious change in awk code). git-svn-id: svn://busybox.net/trunk/busybox@10478 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Dmitry Zakharov to fix a bug triggered by freeswan's scripts.bug12004-09-241-1/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@9277 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Simon Poole reports that awk segfaults when environment variablesandersen2004-07-301-0/+4
| | | | | | | | | | | | | | with no value exist, i.e. $ export BOB='' % ./busybox awk Segmentation fault This patch teaches awk to not blow chunks on empty env variables. -Erik git-svn-id: svn://busybox.net/trunk/busybox@9054 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Dmitry Zakharov to fix a bug discovered via the freeswapbug12004-07-231-0/+1
| | | | | | | script. git-svn-id: svn://busybox.net/trunk/busybox@9006 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Larry Doolittle writes:andersen2004-04-141-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | This is a bulk spelling fix patch against busybox-1.00-pre10. If anyone gets a corrupted copy (and cares), let me know and I will make alternate arrangements. Erik - please apply. Authors - please check that I didn't corrupt any meaning. Package importers - see if any of these changes should be passed to the upstream authors. I glossed over lots of sloppy capitalizations, missing apostrophes, mixed American/British spellings, and German-style compound words. What is "pretect redefined for test" in cmdedit.c? Good luck on the 1.00 release! - Larry git-svn-id: svn://busybox.net/trunk/busybox@8759 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove trailing whitespace. Update copyright to include 2004.andersen2004-03-151-7/+7
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8630 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Dmitry Zakharov, this line was missedfrom the last patchbug12004-02-221-0/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8548 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Dmitry Zakharov,bug12003-10-301-12/+28
| | | | | | | | | | Fixes two bugs: - END block didn't execute after an exit() call - huge memory consumption and performance degradation on large input (now performance is comparable to gawk) git-svn-id: svn://busybox.net/trunk/busybox@7725 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Major coreutils update.mjn32003-03-191-33/+33
| | | | git-svn-id: svn://busybox.net/trunk/busybox@6751 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Change if(x)free(x); to free(x);aaronl2002-11-281-5/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@6055 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Use erorr_msg( isntead of fprintf(stderr,bug12002-11-281-4/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@6042 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Move awk from textutils to editors. Cleanup run-parts, saves 200 bytes, ↵bug12002-11-111-0/+2742
moves the guts of run_parts to libbb to be used by ifupdown. git-svn-id: svn://busybox.net/trunk/busybox@5909 69ca8d6d-28ef-0310-b511-8ec308f3f277