]> mj.ucw.cz Git - libucw.git/blobdiff - ucw/eltpool.h
Opt: Deleted extra newlines after failure messages
[libucw.git] / ucw / eltpool.h
index a3a4e427a517d29d92be92c5c88a3866d03ba57f..24911fb5e54c625e6a574081a8200817358d480c 100644 (file)
@@ -50,6 +50,8 @@ struct eltpool_free {
  * The pool will allocate chunks of at least @elts_per_chunk elements.
  * Higher numbers lead to better allocation times but also to bigger
  * unused memory blocks. Call @ep_delete() to free all pool's resources.
+ *
+ * Element pools can be treated as <<trans:respools,resources>>, see <<trans:res_eltpool()>>.
  **/
 struct eltpool *ep_new(uns elt_size, uns elts_per_chunk);
 
@@ -79,7 +81,7 @@ void *ep_alloc_slow(struct eltpool *pool); /* Internal. Do not call directly. */
 static inline void *ep_alloc(struct eltpool *pool)
 {
   pool->num_allocated++;
-#ifdef CONFIG_FAKE_ELTPOOL
+#ifdef CONFIG_UCW_FAKE_ELTPOOL
   return xmalloc(pool->elt_size);
 #else
   struct eltpool_free *elt;
@@ -99,7 +101,7 @@ static inline void *ep_alloc(struct eltpool *pool)
 static inline void ep_free(struct eltpool *pool, void *p)
 {
   pool->num_allocated--;
-#ifdef CONFIG_FAKE_ELTPOOL
+#ifdef CONFIG_UCW_FAKE_ELTPOOL
   (void) pool;
   xfree(p);
 #else