dict_new -> make_dict

This commit is contained in:
Yuichi Nishiwaki 2014-09-12 19:41:20 +09:00
parent d08e401481
commit a99fb41c63
4 changed files with 5 additions and 5 deletions

4
dict.c
View File

@ -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);
}

View File

@ -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);

2
lib.c
View File

@ -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))) {

2
proc.c
View File

@ -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;
}