From a99fb41c63cab8f2b4c5624946e084d40c5d4b71 Mon Sep 17 00:00:00 2001 From: Yuichi Nishiwaki Date: Fri, 12 Sep 2014 19:41:20 +0900 Subject: [PATCH] dict_new -> make_dict --- dict.c | 4 ++-- include/picrin/dict.h | 2 +- lib.c | 2 +- proc.c | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dict.c b/dict.c index 8adfc3b5..5bd25ff0 100644 --- a/dict.c +++ b/dict.c @@ -7,7 +7,7 @@ #include "picrin/cont.h" struct pic_dict * -pic_dict_new(pic_state *pic) +pic_make_dict(pic_state *pic) { struct pic_dict *dict; @@ -70,7 +70,7 @@ pic_dict_dict(pic_state *pic) pic_get_args(pic, ""); - dict = pic_dict_new(pic); + dict = pic_make_dict(pic); return pic_obj_value(dict); } diff --git a/include/picrin/dict.h b/include/picrin/dict.h index 8bc58ad8..bf681cad 100644 --- a/include/picrin/dict.h +++ b/include/picrin/dict.h @@ -17,7 +17,7 @@ struct pic_dict { #define pic_dict_p(v) (pic_type(v) == PIC_TT_DICT) #define pic_dict_ptr(v) ((struct pic_dict *)pic_ptr(v)) -struct pic_dict *pic_dict_new(pic_state *); +struct pic_dict *pic_make_dict(pic_state *); pic_value pic_dict_ref(pic_state *, struct pic_dict *, pic_sym); void pic_dict_set(pic_state *, struct pic_dict *, pic_sym, pic_value); diff --git a/lib.c b/lib.c index f52626a4..b752fcc7 100644 --- a/lib.c +++ b/lib.c @@ -78,7 +78,7 @@ import_table(pic_state *pic, pic_value spec) pic_sym sym; xh_iter it; - imports = pic_dict_new(pic); + imports = pic_make_dict(pic); if (pic_list_p(spec)) { if (pic_eq_p(pic_car(pic, spec), pic_sym_value(sONLY))) { diff --git a/proc.c b/proc.c index c06dce80..c604c87e 100644 --- a/proc.c +++ b/proc.c @@ -53,7 +53,7 @@ struct pic_dict * pic_attr(pic_state *pic, struct pic_proc *proc) { if (proc->attr == NULL) { - proc->attr = pic_dict_new(pic); + proc->attr = pic_make_dict(pic); } return proc->attr; }