moved byte_arrays.hpp inline functions to vm.hpp
parent
209755e2de
commit
a249b484c4
|
@ -7,16 +7,5 @@ PRIMITIVE(byte_array);
|
|||
PRIMITIVE(uninitialized_byte_array);
|
||||
PRIMITIVE(resize_byte_array);
|
||||
|
||||
struct growable_byte_array {
|
||||
cell count;
|
||||
gc_root<byte_array> 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();
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
|
|
13
vm/vm.hpp
13
vm/vm.hpp
|
@ -929,6 +929,19 @@ struct growable_array {
|
|||
void trim();
|
||||
};
|
||||
|
||||
//byte_arrays.hpp
|
||||
struct growable_byte_array {
|
||||
cell count;
|
||||
gc_root<byte_array> 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:
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue