Natanael Copa
Thu, 05 Jun 2008 08:08:16 -0700
On Thu, 2008-06-05 at 16:56 +0200, Denys Vlasenko wrote: > On Thursday 05 June 2008 16:54, Natanael Copa wrote: > > > Applied, thanks. (It also brought my attention to ~300+ bytes > > > of bloat nearby, which I removed). > > > > oh.... I guess we were working on the same thing then. > > > > I'm attatching what I was looking at. I guess it does not apply anymore. > > Not at all, I just removed some useless dances with fprintf(fp, ...) > which were invariably printing to stdout. You are working on something > different, so please continue :)
I'm done with it more or less (and my day is over). I think the patch i
posted in previous email need testing though. It touches (too?) many
places.
basicly it replaces:
if (flags & mask)
printf("FLAG ");
with a "mask_string" struct (better name anyone?) and print_flags()
func:
flag_struc = {
{ mask, "FLAG" },
{ 0, NULL }
};
...
print_flags(flag_struc, flags, " ");
...
There seems to be a drawback on places where the mask and flags is a
byte rahter than int. But it reduces text as showed in the previous
posted 'make bloatcheck'.
Please have a look at it.
Thanks!
> --
> vda
_______________________________________________
busybox mailing list
busybox@busybox.net
http://busybox.net/cgi-bin/mailman/listinfo/busybox