pic_alloc is the right name, not pic_malloc

This commit is contained in:
Yuichi Nishiwaki 2014-03-04 00:30:11 +09:00
parent d8d34353aa
commit 4bf2262605
2 changed files with 3 additions and 3 deletions

View File

@ -126,8 +126,8 @@ typedef struct {
typedef pic_value (*pic_func_t)(pic_state *);
void *pic_malloc(pic_state *, size_t);
#define pic_alloc(pic,size) pic_malloc(pic,size) /* obsoleted */
void *pic_alloc(pic_state *, size_t);
#define pic_malloc(pic,size) pic_alloc(pic,size) /* obsoleted */
void *pic_realloc(pic_state *, void *, size_t);
void *pic_calloc(pic_state *, size_t, size_t);
struct pic_object *pic_obj_alloc(pic_state *, size_t, enum pic_tt);

View File

@ -131,7 +131,7 @@ alloc(void *ptr, size_t size)
}
void *
pic_malloc(pic_state *pic, size_t size)
pic_alloc(pic_state *pic, size_t size)
{
void *ptr;