1.1 --- a/ucx/mempool.c Fri Aug 09 15:29:26 2013 +0200 1.2 +++ b/ucx/mempool.c Mon Aug 12 14:39:51 2013 +0200 1.3 @@ -36,13 +36,23 @@ 1.4 1.5 #include "mempool.h" 1.6 1.7 +/** Capsule for destructible memory chunks. */ 1.8 typedef struct { 1.9 + /** The destructor for the memory chunk. */ 1.10 ucx_destructor destructor; 1.11 + /** 1.12 + * First byte of the memory chunk. 1.13 + * Note, that the address <code>&c</code> is also the address 1.14 + * of the whole memory chunk. 1.15 + */ 1.16 char c; 1.17 } ucx_memchunk; 1.18 1.19 +/** Capsule for data and its destructor. */ 1.20 typedef struct { 1.21 + /** The destructor for the data. */ 1.22 ucx_destructor destructor; 1.23 + /** A pointer to the data. */ 1.24 void *ptr; 1.25 } ucx_regdestr; 1.26