projects
/
muddle-interpreter.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Implement pool_copy_array
[muddle-interpreter.git]
/
src
/
alloc.h
diff --git
a/src/alloc.h
b/src/alloc.h
index bd7c46b697f02900505b4a3827af99c56ecb00ae..89e1dab7c83e5a04385589b4f3539201d9681a14 100644
(file)
--- 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,
}
// 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);
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);