diff --git a/vm/byte_arrays.hpp b/vm/byte_arrays.hpp index 68b706be7b..4954f31094 100755 --- a/vm/byte_arrays.hpp +++ b/vm/byte_arrays.hpp @@ -7,16 +7,5 @@ PRIMITIVE(byte_array); PRIMITIVE(uninitialized_byte_array); PRIMITIVE(resize_byte_array); -struct growable_byte_array { - cell count; - gc_root elements; - - growable_byte_array(factorvm *vm,cell capacity = 40) : count(0), elements(allot_byte_array(capacity),vm) { } - - void append_bytes(void *elts, cell len); - void append_byte_array(cell elts); - - void trim(); -}; } diff --git a/vm/master.hpp b/vm/master.hpp index 98ed043e05..0eb51e7230 100755 --- a/vm/master.hpp +++ b/vm/master.hpp @@ -54,11 +54,11 @@ #include "generic_arrays.hpp" #include "debug.hpp" #include "arrays.hpp" -#include "vm.hpp" #include "strings.hpp" #include "booleans.hpp" #include "byte_arrays.hpp" #include "tuples.hpp" +#include "vm.hpp" #include "words.hpp" #include "math.hpp" #include "float_bits.hpp" diff --git a/vm/vm.hpp b/vm/vm.hpp index 0ccb86b970..b185a1600e 100644 --- a/vm/vm.hpp +++ b/vm/vm.hpp @@ -929,6 +929,19 @@ struct growable_array { void trim(); }; +//byte_arrays.hpp +struct growable_byte_array { + cell count; + gc_root elements; + + growable_byte_array(factorvm *vm,cell capacity = 40) : count(0), elements(allot_byte_array(capacity),vm) { } + + void append_bytes(void *elts, cell len); + void append_byte_array(cell elts); + + void trim(); +}; + // next method here: