moved byte_arrays.hpp inline functions to vm.hpp

db4
Phil Dawes 2009-08-17 21:37:12 +01:00
parent 209755e2de
commit a249b484c4
3 changed files with 14 additions and 12 deletions

View File

@ -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();
};
}

View File

@ -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"

View File

@ -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: