removed some global functions from utilities.cpp

db4
Phil Dawes 2009-08-17 21:37:19 +01:00
parent 1c656e1bac
commit 390712b00a
2 changed files with 0 additions and 38 deletions

View File

@ -35,11 +35,6 @@ void factorvm::nl()
fputs("\n",stdout); fputs("\n",stdout);
} }
void nl()
{
return vm->nl();
}
void factorvm::print_string(const char *str) void factorvm::print_string(const char *str)
{ {
fputs(str,stdout); fputs(str,stdout);
@ -55,41 +50,21 @@ void factorvm::print_cell(cell x)
printf(CELL_FORMAT,x); printf(CELL_FORMAT,x);
} }
void print_cell(cell x)
{
return vm->print_cell(x);
}
void factorvm::print_cell_hex(cell x) void factorvm::print_cell_hex(cell x)
{ {
printf(CELL_HEX_FORMAT,x); printf(CELL_HEX_FORMAT,x);
} }
void print_cell_hex(cell x)
{
return vm->print_cell_hex(x);
}
void factorvm::print_cell_hex_pad(cell x) void factorvm::print_cell_hex_pad(cell x)
{ {
printf(CELL_HEX_PAD_FORMAT,x); printf(CELL_HEX_PAD_FORMAT,x);
} }
void print_cell_hex_pad(cell x)
{
return vm->print_cell_hex_pad(x);
}
void factorvm::print_fixnum(fixnum x) void factorvm::print_fixnum(fixnum x)
{ {
printf(FIXNUM_FORMAT,x); printf(FIXNUM_FORMAT,x);
} }
void print_fixnum(fixnum x)
{
return vm->print_fixnum(x);
}
cell factorvm::read_cell_hex() cell factorvm::read_cell_hex()
{ {
cell cell; cell cell;
@ -97,9 +72,4 @@ cell factorvm::read_cell_hex()
return cell; return cell;
} }
cell read_cell_hex()
{
return vm->read_cell_hex();
};
} }

8
vm/utilities.hpp Normal file → Executable file
View File

@ -1,15 +1,7 @@
namespace factor namespace factor
{ {
void *safe_malloc(size_t size); void *safe_malloc(size_t size);
vm_char *safe_strdup(const vm_char *str); vm_char *safe_strdup(const vm_char *str);
void nl();
void print_string(const char *str); void print_string(const char *str);
void print_cell(cell x);
void print_cell_hex(cell x);
void print_cell_hex_pad(cell x);
void print_fixnum(fixnum x);
cell read_cell_hex();
} }