moving buffer allocation schemes from busybox.h to libbb.h

Rob Landley rob at landley.net
Fri Mar 31 16:24:16 PST 2006


On Friday 31 March 2006 5:40 pm, Bernhard Fischer wrote:
> Hi,
>
> I want to move the buffer allocation schemes from busybox.h to libbb.h.
>
> That way, we could use the RESERVE_CONFIG_{U,}BUFFER /
> RELEASE_CONFIG_BUFFER also in libbb.

You mean so code in libbb can use it?  Sounds reasonable.

> The following files will have to be changed to include the correct .h
> (libbb.h instead of busybox.h):
> $ grep -l busybox.h libbb/*
> libbb/bb_echo.c
> libbb/copyfd.c
> libbb/copy_file.c
> libbb/get_terminal_width_height.c
> libbb/md5.c
> libbb/messages.c
> libbb/sha1.c
> libbb/xgetlarg.c

Actually busybox.h includes libbb.h, but in general libbb/*.c should probably 
include libbb.h rather than busybox.h anyway.

Rob
-- 
Never bet against the cheap plastic solution.


More information about the busybox mailing list