X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=src%2Falloc.h;h=89e1dab7c83e5a04385589b4f3539201d9681a14;hb=refs%2Fheads%2Fmaster;hp=bd7c46b697f02900505b4a3827af99c56ecb00ae;hpb=081a7c4eedd6e6aa9da616ed88c82ab85efdb98f;p=muddle-interpreter.git diff --git a/src/alloc.h b/src/alloc.h index bd7c46b..89e1dab 100644 --- a/src/alloc.h +++ b/src/alloc.h @@ -44,7 +44,9 @@ heap_alloc_uv (uint32_t len) } // given a headerless array of objects of known size, -// copy it backwards into newly-allocated pool space +// copy it into newly-allocated pool space +pool_ptr pool_copy_array (const pool_object * objs, uint32_t len); +// same as above, but backwards pool_ptr pool_copy_array_rev (const pool_object * objs, uint32_t len); heap_ptr heap_copy_array_rev (const object * objs, uint32_t len);