Documented memory resources.
Implemented debugging function rlookup() which you can call from gdbto see what resource does the address given as a parameter belong to.
Include "lib/string.h" instead of <string.h>. It should give us bzero()and other non-portable functions on all systems.
Simplify handling of free chunks.
Don't forget to free large blocks.
Clarify resource dumps and include them in the main debugging dump.
Added lp_flush() which flushes contents of a linear pool, leaving all thememory available for subsequent allocations from the same pool. Both flushingand re-using the memory costs just few instructions.
Name cleanups as suggested by Pavel:
- cfg_strcpy() > cfg_strdup() mempool -> linpool, mp_* -> lp_* [to avoid confusion with memblock, mb_*]
Anyway, it might be better to stop ranting about names and do some real work.
Staticized some variables and functions.
BIRD library: The story continues.
Complete resource manages and IP address handling.