summaryrefslogtreecommitdiff
path: root/editors/awk.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* *: add optimization barrier to all "G trick" locationsDenis Vlasenko2008-02-271-3/+4
|
* *: tidy up usage of char **environDenis Vlasenko2008-01-281-1/+0
|
* add -fvisibility=hidden to CC flags, mark XXX_main functionsDenis Vlasenko2007-10-111-1/+1
| | | | | EXTERNALLY_VISIBLE. 5% size reduction of libbusybox.so
* 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-19/+18
| | | | | | | | | 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
* awk: fix -F 'regex' bug (miscounted fields if last field is empty)Denis Vlasenko2007-07-181-17/+25
|
* awk: style fixes; remove one xstrdup/free pair; testsuiteDenis Vlasenko2007-07-181-13/+17
|
* Consolidate ARRAY_SIZE macro; remove one unneeded global var (walter harms ↵Denis Vlasenko2007-06-251-2/+2
| | | | <wharms@bfs.de>)
* diff: shrink code (-85 bytes):Denis Vlasenko2007-06-121-1/+1
| | | | | | | | | | | | function old new delta fiddle_sum 8 - -8 diffreg 2717 2690 -27 prepare 334 284 -50 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 0/2 up/down: 0/-85) Total: -85 bytes s/ATTRIBUTE_ALWAYS_INLINE/ALWAYS_INLINE/g
* awk: experimentally modify "global" trick to make code smallerDenis Vlasenko2007-06-071-50/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | by minimizing data offsets function old new delta parse_expr 752 782 +30 syntax_error 23 26 +3 nvfree 151 154 +3 nvalloc 172 175 +3 fsrealloc 111 114 +3 chain_node 99 102 +3 chain_loop 121 124 +3 chain_group 628 631 +3 awk_main 1002 1005 +3 awk_exit 99 102 +3 parse_program 308 310 +2 split_f0 172 170 -2 awk_split 510 507 -3 getvar_s 108 102 -6 awk_sub 643 637 -6 awk_getline 706 700 -6 next_token 943 927 -16 handle_special 470 446 -24 next_input_file 252 213 -39 evaluate 6703 6633 -70 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 11/9 up/down: 59/-172) Total: -113 bytes # size */*/awk.o text data bss dec hex filename 18247 0 0 18247 4747 busybox.t0/editors/awk.o 18134 0 0 18134 46d6 busybox.t1/editors/awk.o
* awk: move all data to malloc spaceDenis Vlasenko2007-06-061-156/+234
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* usage.c: remove reference to busybox.hDenis Vlasenko2007-05-261-1/+1
| | | | | *: s/include "busybox.h"/include "libbb.h"
* awk: fix a trivial bug introduced by me.Denis Vlasenko2007-05-181-1/+1
| | | | | | This is how it goes. I break stuff by doing useless 'cleanups', people fix the fallout. :(. Thanks rockeychu!
* awk: make code a bit less obfuscatedDenis Vlasenko2007-05-171-240/+251
|
* several *.c files:Denis Vlasenko2007-05-171-2/+1
| | | | move 'extern environ' up to the location of #includes
* vi: remove two globalsDenis Vlasenko2007-05-171-66/+72
| | | | | | | | | | | | | | | | | | | | | | | | awk: some 'lineno' vars were shorts, made them ints (code got smaller) awk: rename global t to global ttt. still an awful name, but at least you can grep for it now. function old new delta ttt - 28 +28 mysleep 104 120 +16 readit 408 418 +10 lineno 2 4 +2 parse_program 338 339 +1 evaluate 6446 6445 -1 syntax_error 25 23 -2 next_token 917 915 -2 new_node 26 24 -2 tv 16 8 -8 skip_spaces 68 53 -15 t 28 - -28 rfds 128 - -128 ------------------------------------------------------------------------------ (add/remove: 1/2 grow/shrink: 4/6 up/down: 57/-186) Total: -129 bytes
* awk: don't segfault on printf(%*s). Close 1337.Denis Vlasenko2007-05-091-1/+4
|
* awk: guard against empty environmentDenis Vlasenko2007-05-031-1/+2
|
* style fixes. No code changesDenis Vlasenko2007-04-121-1/+2
|
* audit small applets and mark some of them as NOFORK.Denis Vlasenko2007-04-101-0/+2
| | | | | Put big scary warnings in relevant places.
* getopt32: fix llist_t options ordering. llist_rev is not unused.Denis Vlasenko2007-04-081-1/+0
| | | | | | | | | | | | | | | | function old new delta tar_main 705 695 -10 sort_main 928 918 -10 decode_format_string 886 876 -10 run_parts_main 197 185 -12 ps_main 513 500 -13 wget_main 2764 2750 -14 awk_main 1014 1000 -14 od_main 2886 2866 -20 llist_rev 25 - -25 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 0/8 up/down: 0/-128) Total: -128 bytes
* awk: support multiple -v optionsDenis Vlasenko2007-03-101-3/+8
|
* awk: fix memory leak (can affect large file processing)Denis Vlasenko2007-02-241-18/+18
|
* suppress warnings about easch <applet>_main() havingDenis Vlasenko2007-02-031-0/+1
| | | | no preceding prototype
* preparatory patch for -Wwrite-strings #1Denis Vlasenko2007-01-291-20/+27
|
* whitespace fixes (leading spaces to tab)Denis Vlasenko2007-01-131-1/+1
|
* Trailing whitespace removal over entire treeDenis Vlasenko2007-01-111-2/+2
|
* awk: style fixesDenis Vlasenko2007-01-011-27/+23
|
* awk: undo locale setting for numbers - or else parsingDenis Vlasenko2007-01-011-0/+5
| | | | | can act quite mysteriously date: add if(ENABLE_LOCALE_SUPPORT)
* awk: style cleanup. A lot of rw data moved to roDenis Vlasenko2007-01-011-294/+293
| | | | | (still has quite a lot of statics etc...). getopt32-ification.
* style fixesDenis Vlasenko2006-12-261-12/+11
| | | | last xcalloc replaced by xzalloc
* remove useless casts (type*) xzalloc(...)Denis Vlasenko2006-12-221-7/+6
|
* remove casts from xmalloc()Denis Vlasenko2006-12-191-3/+3
|
* Add option to disable command execution from vi & awkDenis Vlasenko2006-12-191-1/+2
|
* Fix largefile breakage; advance version to 1.2.2Denis Vlasenko2006-10-271-2/+1
|
* use skip_whitespace where appropriateDenis Vlasenko2006-10-251-1/+1
|
* message string changes, mostly for consistency, also -32 bytes in .rodataDenis Vlasenko2006-10-201-1/+1
|
* awk: && -> & in "n->info && OPCLSMASK" - fixes bug 1067Denis Vlasenko2006-10-071-1/+1
|
* 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.
* lots of silly indent fixesDenis Vlasenko2006-10-031-2/+2
|
* several fixes from openWRT projectDenis Vlasenko2006-09-261-1/+30
|
* awk: getopt_ulflags'isationDenis Vlasenko2006-09-221-37/+27
|
* removed a lot of trailing \n in bb_msg() calls. It is addedDenis Vlasenko2006-09-061-1/+1
| | | | | automatically by function itself.
* Svn 16007 broke the build under gcc 4.0.3. This fixes up some of the damageRob Landley2006-08-291-1/+1
| | | | | (the e2fsprogs directory is too twisty and evil to easily fix, but I plan to rewrite it anyway so I'll just bump that up in priority a bit).
* Remove bb_ prefixes from xfuncs.c (and a few other places), consolidateRob Landley2006-08-031-24/+14
| | | | | | | | | | 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.)
* Remove all usage of the "register" storage class specifier."Robert P. J. Day"2006-07-011-8/+8
|
* Minor cleanups: Convert a few calloc() calls to xzalloc, remove unnecessaryRob Landley2006-05-211-8/+8
| | | | memset, collate variable declarations...
* - include strings.hBernhard Reutner-Fischer2006-05-191-0/+1
| | | | Thanks to Rich Felker for pointing this out.
* Remove bb_strlen() in favor of -fno-builtin-strlen. Saves as many bytesRob Landley2006-05-071-14/+14
| | | | | as the old optimization did (actually does slightly better under gcc 4.0), and simplifies the code.
* touchup commentMike Frysinger2006-04-161-1/+1
|