[BusyBox] Ash digest for 08/09

Aaron Lehmann aaronl at vitelus.com
Thu Aug 9 03:43:40 UTC 2001


I have attached (gzipped) the same patch collection as yesterday's,
with one significant addition: the ADDCMD macro mess was replaced with
a more elegant (I think) and compact global variable-based system.
This saved over 300 bytes. You can see this from lines 1986 to 2228 in
the diff. The one "problem" that I know of is that this leaves a
realloc unchecked. If you think it's important to check it, I can fix
that. It's just a bit of a pain since a whole chain of functions has
to return (maybe this is a job for setjmp()?).

I measure a size difference of 2528 bytes (i386, 2.95.2) after
applying this patch to the CVS version, which is pretty cool!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ash-20010809.diff.gz
Type: application/octet-stream
Size: 13444 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20010809/ac54a11a/attachment.obj 


More information about the busybox mailing list