From 1a646d3379275698e4fdeb846407eef691f0d83f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bj=C3=B6rn=20Lindqvist?= Date: Wed, 23 Nov 2016 04:00:08 +0100 Subject: [PATCH] VM: removing array_to_stack() from the factor_vm class --- vm/contexts.cpp | 2 +- vm/vm.hpp | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/vm/contexts.cpp b/vm/contexts.cpp index c922090ea7..d110418db5 100644 --- a/vm/contexts.cpp +++ b/vm/contexts.cpp @@ -240,7 +240,7 @@ void factor_vm::primitive_retainstack_for() { } // returns pointer to top of stack -cell factor_vm::array_to_stack(array* array, cell bottom) { +static cell array_to_stack(array* array, cell bottom) { cell depth = array_capacity(array) * sizeof(cell); memcpy((void*)bottom, array + 1, depth); return bottom + depth - sizeof(cell); diff --git a/vm/vm.hpp b/vm/vm.hpp index 06aefee99b..c52f1478cf 100644 --- a/vm/vm.hpp +++ b/vm/vm.hpp @@ -169,7 +169,6 @@ struct factor_vm { void primitive_datastack_for(); cell retainstack_to_array(context* ctx); void primitive_retainstack_for(); - cell array_to_stack(array* array, cell bottom); void primitive_set_datastack(); void primitive_set_retainstack(); void primitive_check_datastack(); @@ -683,7 +682,6 @@ struct factor_vm { void init_factor(vm_parameters* p); void pass_args_to_factor(int argc, vm_char** argv); void stop_factor(); - void start_embedded_factor(vm_parameters* p); void start_standalone_factor(int argc, vm_char** argv); char* factor_eval_string(char* string); void factor_eval_free(char* result); -- 2.34.1