mirror of
https://github.com/nunuhara/xsystem4.git
synced 2026-10-14 10:09:10 +03:00
Move heap management code into heap.c
This commit is contained in:
+3
-2
@@ -17,9 +17,10 @@
|
||||
#include <stdio.h>
|
||||
#include <chibi/eval.h>
|
||||
|
||||
#include "vm.h"
|
||||
#include "heap.h"
|
||||
#include "page.h"
|
||||
#include "utfsjis.h"
|
||||
#include "vm.h"
|
||||
|
||||
struct variable {
|
||||
enum ain_data_type data_type;
|
||||
@@ -49,7 +50,7 @@ static struct page *get_page(int pageno)
|
||||
{
|
||||
if (!page_index_valid(pageno))
|
||||
return NULL;
|
||||
return vm_get_page(pageno);
|
||||
return heap_get_page(pageno);
|
||||
}
|
||||
|
||||
static struct variable *get_global_by_name(const char *name)
|
||||
|
||||
Reference in New Issue
Block a user