add 'pic_' prefix to heap manipulte functions

This commit is contained in:
Yuichi Nishiwaki 2014-02-22 16:54:12 +09:00
parent 5175f0bb8d
commit 7ac4cd9ded
3 changed files with 7 additions and 7 deletions

View File

@ -14,8 +14,8 @@ extern "C" {
struct pic_heap; struct pic_heap;
struct pic_heap *heap_open(); struct pic_heap *pic_heap_open();
void heap_close(struct pic_heap *); void pic_heap_close(struct pic_heap *);
#if defined(__cplusplus) #if defined(__cplusplus)
} }

View File

@ -42,7 +42,7 @@ struct pic_heap {
struct heap_page *pages; struct heap_page *pages;
}; };
void static void
heap_init(struct pic_heap *heap) heap_init(struct pic_heap *heap)
{ {
heap->base.s.ptr = &heap->base; heap->base.s.ptr = &heap->base;
@ -58,7 +58,7 @@ heap_init(struct pic_heap *heap)
} }
struct pic_heap * struct pic_heap *
heap_open() pic_heap_open()
{ {
struct pic_heap *heap; struct pic_heap *heap;
@ -68,7 +68,7 @@ heap_open()
} }
void void
heap_close(struct pic_heap *heap) pic_heap_close(struct pic_heap *heap)
{ {
struct heap_page *page; struct heap_page *page;

View File

@ -48,7 +48,7 @@ pic_open(int argc, char *argv[], char **envp)
pic->rlen = PIC_RESCUE_SIZE; pic->rlen = PIC_RESCUE_SIZE;
/* memory heap */ /* memory heap */
pic->heap = heap_open(); pic->heap = pic_heap_open();
/* symbol table */ /* symbol table */
pic->syms = xh_new_str(); pic->syms = xh_new_str();
@ -151,7 +151,7 @@ pic_close(pic_state *pic)
xh_destroy(pic->macros); xh_destroy(pic->macros);
/* free heaps */ /* free heaps */
heap_close(pic->heap); pic_heap_close(pic->heap);
/* free symbol names */ /* free symbol names */
for (xh_begin(pic->sym_names, &it); ! xh_isend(&it); xh_next(&it)) { for (xh_begin(pic->sym_names, &it); ! xh_isend(&it); xh_next(&it)) {