rename ..._from_... to ..._by_...

This commit is contained in:
Yuichi Nishiwaki 2014-02-02 12:25:34 +09:00
parent 2373e7a067
commit f2507b5cbf
6 changed files with 7 additions and 7 deletions

View File

@ -53,7 +53,7 @@ struct pic_cont {
pic_value pic_callcc(pic_state *, struct pic_proc *);
pic_value pic_values(pic_state *, size_t, ...);
pic_value pic_values_from_array(pic_state *, size_t, pic_value *);
pic_value pic_values_by_array(pic_state *, size_t, pic_value *);
#if defined(__cplusplus)
}

View File

@ -15,7 +15,7 @@ pic_value pic_cdr(pic_state *, pic_value);
bool pic_list_p(pic_state *, pic_value);
pic_value pic_list(pic_state *, size_t, ...);
pic_value pic_list_from_array(pic_state *, size_t, pic_value *);
pic_value pic_list_by_array(pic_state *, size_t, pic_value *);
pic_value pic_make_list(pic_state *, int, pic_value);
#define PIC_FOR_EACH_HELPER(var, tmp, list) \

View File

@ -197,7 +197,7 @@ pic_values(pic_state *pic, size_t c, ...)
}
pic_value
pic_values_from_array(pic_state *pic, size_t argc, pic_value *argv)
pic_values_by_array(pic_state *pic, size_t argc, pic_value *argv)
{
size_t i;
pic_value head = pic_none_value();

View File

@ -132,7 +132,7 @@ pic_error_error(pic_state *pic)
e = (struct pic_error *)pic_obj_alloc(pic, sizeof(struct pic_error), PIC_TT_ERROR);
e->type = PIC_ERROR_OTHER;
e->msg = pic_strdup(pic, str);
e->irrs = pic_list_from_array(pic, argc, argv);
e->irrs = pic_list_by_array(pic, argc, argv);
pic_raise(pic, pic_obj_value(e));
}

View File

@ -80,7 +80,7 @@ pic_list(pic_state *pic, size_t c, ...)
}
pic_value
pic_list_from_array(pic_state *pic, size_t c, pic_value *vs)
pic_list_by_array(pic_state *pic, size_t c, pic_value *vs)
{
pic_value v;
size_t i;
@ -397,7 +397,7 @@ pic_pair_list(pic_state *pic)
pic_get_args(pic, "*", &argc, &argv);
return pic_list_from_array(pic, argc, argv);
return pic_list_by_array(pic, argc, argv);
}
static pic_value

View File

@ -95,7 +95,7 @@ pic_proc_apply(pic_state *pic)
pic_error(pic, "apply: wrong number of arguments");
}
return pic_apply(pic, proc, pic_list_from_array(pic, argc, args));
return pic_apply(pic, proc, pic_list_by_array(pic, argc, args));
}
static pic_value