]> mj.ucw.cz Git - libucw.git/blobdiff - lib/mempool.c
Cleaned up insallation of library API.
[libucw.git] / lib / mempool.c
index 7201c44ca000bbf66c7e3d082f6cdb903a189c21..658f53845a99b73605d1fc6a3475318e82793056 100644 (file)
@@ -294,6 +294,14 @@ mp_realloc_zero(struct mempool *pool, void *ptr, uns size)
   return ptr;
 }
 
+void *
+mp_spread_internal(struct mempool *pool, void *p, uns size)
+{
+  void *old = mp_ptr(pool);
+  void *new = mp_grow_internal(pool, p-old+size);
+  return p-old+new;
+}
+
 void
 mp_restore(struct mempool *pool, struct mempool_state *state)
 {