add 'pic_' prefix to heap manipulte functions
This commit is contained in:
parent
5175f0bb8d
commit
7ac4cd9ded
|
@ -14,8 +14,8 @@ extern "C" {
|
|||
|
||||
struct pic_heap;
|
||||
|
||||
struct pic_heap *heap_open();
|
||||
void heap_close(struct pic_heap *);
|
||||
struct pic_heap *pic_heap_open();
|
||||
void pic_heap_close(struct pic_heap *);
|
||||
|
||||
#if defined(__cplusplus)
|
||||
}
|
||||
|
|
6
src/gc.c
6
src/gc.c
|
@ -42,7 +42,7 @@ struct pic_heap {
|
|||
struct heap_page *pages;
|
||||
};
|
||||
|
||||
void
|
||||
static void
|
||||
heap_init(struct pic_heap *heap)
|
||||
{
|
||||
heap->base.s.ptr = &heap->base;
|
||||
|
@ -58,7 +58,7 @@ heap_init(struct pic_heap *heap)
|
|||
}
|
||||
|
||||
struct pic_heap *
|
||||
heap_open()
|
||||
pic_heap_open()
|
||||
{
|
||||
struct pic_heap *heap;
|
||||
|
||||
|
@ -68,7 +68,7 @@ heap_open()
|
|||
}
|
||||
|
||||
void
|
||||
heap_close(struct pic_heap *heap)
|
||||
pic_heap_close(struct pic_heap *heap)
|
||||
{
|
||||
struct heap_page *page;
|
||||
|
||||
|
|
|
@ -48,7 +48,7 @@ pic_open(int argc, char *argv[], char **envp)
|
|||
pic->rlen = PIC_RESCUE_SIZE;
|
||||
|
||||
/* memory heap */
|
||||
pic->heap = heap_open();
|
||||
pic->heap = pic_heap_open();
|
||||
|
||||
/* symbol table */
|
||||
pic->syms = xh_new_str();
|
||||
|
@ -151,7 +151,7 @@ pic_close(pic_state *pic)
|
|||
xh_destroy(pic->macros);
|
||||
|
||||
/* free heaps */
|
||||
heap_close(pic->heap);
|
||||
pic_heap_close(pic->heap);
|
||||
|
||||
/* free symbol names */
|
||||
for (xh_begin(pic->sym_names, &it); ! xh_isend(&it); xh_next(&it)) {
|
||||
|
|
Loading…
Reference in New Issue