X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=ucw%2Feltpool.h;h=0f65186586d38bcf573900ef4655e9afae77f2bd;hb=156301aa8c7fd24d49ed27cfbd1afc10ccb7bc58;hp=24911fb5e54c625e6a574081a8200817358d480c;hpb=3bb92d7face43b9ffb8a32640965cc7423ec8819;p=libucw.git diff --git a/ucw/eltpool.h b/ucw/eltpool.h index 24911fb5..0f651865 100644 --- a/ucw/eltpool.h +++ b/ucw/eltpool.h @@ -10,6 +10,13 @@ #ifndef _UCW_ELTPOOL_H #define _UCW_ELTPOOL_H +#ifdef CONFIG_UCW_CLEAN_ABI +#define ep_alloc_slow ucw_ep_alloc_slow +#define ep_delete ucw_ep_delete +#define ep_new ucw_ep_new +#define ep_total_size ucw_ep_total_size +#endif + /*** * [[defs]] * Definitions @@ -23,11 +30,11 @@ struct eltpool { struct eltpool_chunk *first_chunk; struct eltpool_free *first_free; - uns elt_size; - uns chunk_size; - uns elts_per_chunk; - uns num_allocated; // Just for debugging - uns num_chunks; + uint elt_size; + uint chunk_size; + uint elts_per_chunk; + uint num_allocated; // Just for debugging + uint num_chunks; }; struct eltpool_chunk { @@ -53,7 +60,7 @@ struct eltpool_free { * * Element pools can be treated as <>, see <>. **/ -struct eltpool *ep_new(uns elt_size, uns elts_per_chunk); +struct eltpool *ep_new(uint elt_size, uint elts_per_chunk); /** * Release a memory pool created by @ep_new() including all