sys: sys_delete -> calls alloc_delete
This commit is contained in:
@@ -21,6 +21,7 @@ typedef struct
|
|||||||
|
|
||||||
void sys_init(sys_t *);
|
void sys_init(sys_t *);
|
||||||
lisp_t *sys_alloc(sys_t *, tag_t type);
|
lisp_t *sys_alloc(sys_t *, tag_t type);
|
||||||
|
void sys_delete(sys_t *, lisp_t *);
|
||||||
void sys_free(sys_t *);
|
void sys_free(sys_t *);
|
||||||
|
|
||||||
// Debugging function: provides total memory usage from system.
|
// Debugging function: provides total memory usage from system.
|
||||||
|
|||||||
@@ -34,6 +34,11 @@ lisp_t *sys_alloc(sys_t *sys, tag_t type)
|
|||||||
return NIL;
|
return NIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void sys_delete(sys_t *sys, lisp_t *lisp)
|
||||||
|
{
|
||||||
|
alloc_delete(&sys->memory, lisp);
|
||||||
|
}
|
||||||
|
|
||||||
u64 sys_cost(sys_t *sys)
|
u64 sys_cost(sys_t *sys)
|
||||||
{
|
{
|
||||||
return alloc_cost(&sys->memory) + sym_table_cost(&sys->symtable);
|
return alloc_cost(&sys->memory) + sym_table_cost(&sys->symtable);
|
||||||
|
|||||||
Reference in New Issue
Block a user