diff --git a/include/picrin/record.h b/include/picrin/record.h index bf8698f1..d2944c06 100644 --- a/include/picrin/record.h +++ b/include/picrin/record.h @@ -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); diff --git a/record.c b/record.c index 2137e4f1..52fbe050 100644 --- a/record.c +++ b/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); }