cxalloc: customizable allocator framework
authorMarko Kreen <markokr@gmail.com>
Fri, 23 Jul 2010 10:06:24 +0000 (13:06 +0300)
committerMarko Kreen <markokr@gmail.com>
Wed, 15 Sep 2010 11:53:17 +0000 (14:53 +0300)
commit153b2d3979dcc78cb0d833827b9a9a26b9a11d73
tree046d9f64622134b61c4a0b9d1f7754a184b432b2
parent35093a64695557fce85d4c3373cc0aa403f41ee9
cxalloc: customizable allocator framework

There is a need to sometimes have different allocation policy
to some generic data structure than usual.

Instead of having each of them having allocator abstraction
on their own and both simple and customisable API, lets
have simple generic allocation API.

Initialized will take another CxMem *cx argument, and when
no customization is needed, put USUAL_ALLOC there.
25 files changed:
Makefile
test/Makefile
test/compile.c
test/test_cbtree.c
test/test_common.c
test/test_common.h
test/test_cxalloc.c [new file with mode: 0644]
test/test_pgutil.c
test/test_string.c
test/test_strpool.c
usual/cbtree.c
usual/cbtree.h
usual/cxalloc.c [new file with mode: 0644]
usual/cxalloc.h [new file with mode: 0644]
usual/cxextra.c [new file with mode: 0644]
usual/cxextra.h [new file with mode: 0644]
usual/hashtab-impl.h
usual/pgutil.c
usual/pgutil.h
usual/slab.c
usual/slab.h
usual/string.c
usual/string.h
usual/strpool.c
usual/strpool.h