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; | ||||||
| 
 | 
 | ||||||
| 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) | ||||||
| } | } | ||||||
|  |  | ||||||
							
								
								
									
										6
									
								
								src/gc.c
								
								
								
								
							
							
						
						
									
										6
									
								
								src/gc.c
								
								
								
								
							|  | @ -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; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -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)) { | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	 Yuichi Nishiwaki
						Yuichi Nishiwaki