removed global functions from byte_arrays.cpp and tuples.cpp
parent
9e2d40a228
commit
10bf5ca17c
|
@ -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()
|
||||
{
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
namespace factor
|
||||
{
|
||||
|
||||
byte_array *allot_byte_array(cell size);
|
||||
|
||||
PRIMITIVE(byte_array);
|
||||
PRIMITIVE(uninitialized_byte_array);
|
||||
PRIMITIVE(resize_byte_array);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue