removed global functions from byte_arrays.cpp and tuples.cpp

db4
Phil Dawes 2009-08-17 21:37:17 +01:00
parent 9e2d40a228
commit 10bf5ca17c
4 changed files with 1 additions and 12 deletions

View File

@ -10,10 +10,6 @@ byte_array *factorvm::allot_byte_array(cell size)
return array;
}
byte_array *allot_byte_array(cell size)
{
return vm->allot_byte_array(size);
}
inline void factorvm::vmprim_byte_array()
{

View File

@ -1,8 +1,6 @@
namespace factor
{
byte_array *allot_byte_array(cell size);
PRIMITIVE(byte_array);
PRIMITIVE(uninitialized_byte_array);
PRIMITIVE(resize_byte_array);

View File

@ -358,7 +358,7 @@ 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) { }
growable_byte_array(factorvm *myvm,cell capacity = 40) : count(0), elements(myvm->allot_byte_array(capacity),myvm) { }
void append_bytes(void *elts, cell len);
void append_byte_array(cell elts);

View File

@ -12,11 +12,6 @@ tuple *factorvm::allot_tuple(cell layout_)
return t.untagged();
}
tuple *allot_tuple(cell layout_)
{
return vm->allot_tuple(layout_);
}
inline void factorvm::vmprim_tuple()
{
gc_root<tuple_layout> layout(dpop(),this);