record_new -> make_record
This commit is contained in:
parent
46dec7bc7e
commit
1d03b07862
|
@ -17,7 +17,7 @@ struct pic_record {
|
|||
#define pic_record_p(v) (pic_type(v) == PIC_TT_RECORD)
|
||||
#define pic_record_ptr(v) ((struct pic_record *)pic_ptr(v))
|
||||
|
||||
struct pic_record *pic_record_new(pic_state *, pic_value);
|
||||
struct pic_record *pic_make_record(pic_state *, pic_value);
|
||||
|
||||
pic_value pic_record_type(pic_state *, struct pic_record *);
|
||||
pic_value pic_record_ref(pic_state *, struct pic_record *, pic_sym);
|
||||
|
|
4
record.c
4
record.c
|
@ -6,7 +6,7 @@
|
|||
#include "picrin/record.h"
|
||||
|
||||
struct pic_record *
|
||||
pic_record_new(pic_state *pic, pic_value rectype)
|
||||
pic_make_record(pic_state *pic, pic_value rectype)
|
||||
{
|
||||
struct pic_record *rec;
|
||||
|
||||
|
@ -52,7 +52,7 @@ pic_record_make_record(pic_state *pic)
|
|||
|
||||
pic_get_args(pic, "o", &rectype);
|
||||
|
||||
rec = pic_record_new(pic, rectype);
|
||||
rec = pic_make_record(pic, rectype);
|
||||
|
||||
return pic_obj_value(rec);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue