dict_new -> make_dict
This commit is contained in:
parent
d08e401481
commit
a99fb41c63
4
dict.c
4
dict.c
|
@ -7,7 +7,7 @@
|
||||||
#include "picrin/cont.h"
|
#include "picrin/cont.h"
|
||||||
|
|
||||||
struct pic_dict *
|
struct pic_dict *
|
||||||
pic_dict_new(pic_state *pic)
|
pic_make_dict(pic_state *pic)
|
||||||
{
|
{
|
||||||
struct pic_dict *dict;
|
struct pic_dict *dict;
|
||||||
|
|
||||||
|
@ -70,7 +70,7 @@ pic_dict_dict(pic_state *pic)
|
||||||
|
|
||||||
pic_get_args(pic, "");
|
pic_get_args(pic, "");
|
||||||
|
|
||||||
dict = pic_dict_new(pic);
|
dict = pic_make_dict(pic);
|
||||||
|
|
||||||
return pic_obj_value(dict);
|
return pic_obj_value(dict);
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,7 +17,7 @@ struct pic_dict {
|
||||||
#define pic_dict_p(v) (pic_type(v) == PIC_TT_DICT)
|
#define pic_dict_p(v) (pic_type(v) == PIC_TT_DICT)
|
||||||
#define pic_dict_ptr(v) ((struct pic_dict *)pic_ptr(v))
|
#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);
|
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);
|
void pic_dict_set(pic_state *, struct pic_dict *, pic_sym, pic_value);
|
||||||
|
|
2
lib.c
2
lib.c
|
@ -78,7 +78,7 @@ import_table(pic_state *pic, pic_value spec)
|
||||||
pic_sym sym;
|
pic_sym sym;
|
||||||
xh_iter it;
|
xh_iter it;
|
||||||
|
|
||||||
imports = pic_dict_new(pic);
|
imports = pic_make_dict(pic);
|
||||||
|
|
||||||
if (pic_list_p(spec)) {
|
if (pic_list_p(spec)) {
|
||||||
if (pic_eq_p(pic_car(pic, spec), pic_sym_value(sONLY))) {
|
if (pic_eq_p(pic_car(pic, spec), pic_sym_value(sONLY))) {
|
||||||
|
|
2
proc.c
2
proc.c
|
@ -53,7 +53,7 @@ struct pic_dict *
|
||||||
pic_attr(pic_state *pic, struct pic_proc *proc)
|
pic_attr(pic_state *pic, struct pic_proc *proc)
|
||||||
{
|
{
|
||||||
if (proc->attr == NULL) {
|
if (proc->attr == NULL) {
|
||||||
proc->attr = pic_dict_new(pic);
|
proc->attr = pic_make_dict(pic);
|
||||||
}
|
}
|
||||||
return proc->attr;
|
return proc->attr;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue