Denis Vlasenko
fe7cd642b0
don't pass argc in getopt32, it's superfluous
...
(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
2007-08-18 15:32:12 +00:00
Denis Vlasenko
b6adbf1be2
usage.c: remove reference to busybox.h
...
*: s/include "busybox.h"/include "libbb.h"
2007-05-26 19:00:18 +00:00
Denis Vlasenko
bb5b01c7c7
comm: eliminate statics
2007-04-07 00:45:27 +00:00
Denis Vlasenko
06af216528
suppress warnings about easch <applet>_main() having
...
no preceding prototype
2007-02-03 17:28:39 +00:00
Denis Vlasenko
67b23e6043
getopt_ulflags -> getopt32.
...
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-03 21:00:06 +00:00
Rob Landley
d921b2ecc0
Remove bb_ prefixes from xfuncs.c (and a few other places), consolidate
...
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-08-03 15:41:12 +00:00
Rob Landley
e104d5fdcb
Some tests were always true. We need comm.tests...
2006-04-04 19:26:37 +00:00
Mike Frysinger
1ece21bddd
as Rob Landley pointed out, need to fix the 1 versus i typo in indexing
2005-05-13 03:09:20 +00:00
Mike Frysinger
0fb397e617
blah, forgot to save last time to fix whitespacing
2005-05-13 00:58:18 +00:00
Mike Frysinger
867a6080fe
remove duplicated code and rework algorithms to end up with smaller code
2005-05-13 00:57:30 +00:00
Mike Frysinger
dad4cf7e63
use a bunch of if statements since it is a few bytes smaller than a switch; also use bb_xfopen() instead of fopen() so comm doesnt segfault when given non-existant files :(
2005-05-12 22:50:12 +00:00
Mike Frysinger
b3a6ec3e62
err, added 2 to the wrong var :) also touchup the option detection to shrink size
2005-05-12 22:41:13 +00:00
Mike Frysinger
3ba93c0438
fix segfault if user only specifies 1 file
2005-05-12 22:36:32 +00:00
Mike Frysinger
0d605e98b2
fix whitespace/coding style
2005-05-12 22:25:41 +00:00
Rob Landley
2acfd7bd26
Small comm implementatin from Rob Sullivan. Needed to build perl.
2005-05-11 23:12:49 +00:00