rename ..._from_... to ..._by_...
This commit is contained in:
parent
2373e7a067
commit
f2507b5cbf
|
@ -53,7 +53,7 @@ struct pic_cont {
|
||||||
|
|
||||||
pic_value pic_callcc(pic_state *, struct pic_proc *);
|
pic_value pic_callcc(pic_state *, struct pic_proc *);
|
||||||
pic_value pic_values(pic_state *, size_t, ...);
|
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)
|
#if defined(__cplusplus)
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,7 +15,7 @@ pic_value pic_cdr(pic_state *, pic_value);
|
||||||
|
|
||||||
bool pic_list_p(pic_state *, pic_value);
|
bool pic_list_p(pic_state *, pic_value);
|
||||||
pic_value pic_list(pic_state *, size_t, ...);
|
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);
|
pic_value pic_make_list(pic_state *, int, pic_value);
|
||||||
|
|
||||||
#define PIC_FOR_EACH_HELPER(var, tmp, list) \
|
#define PIC_FOR_EACH_HELPER(var, tmp, list) \
|
||||||
|
|
|
@ -197,7 +197,7 @@ pic_values(pic_state *pic, size_t c, ...)
|
||||||
}
|
}
|
||||||
|
|
||||||
pic_value
|
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;
|
size_t i;
|
||||||
pic_value head = pic_none_value();
|
pic_value head = pic_none_value();
|
||||||
|
|
|
@ -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 = (struct pic_error *)pic_obj_alloc(pic, sizeof(struct pic_error), PIC_TT_ERROR);
|
||||||
e->type = PIC_ERROR_OTHER;
|
e->type = PIC_ERROR_OTHER;
|
||||||
e->msg = pic_strdup(pic, str);
|
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));
|
pic_raise(pic, pic_obj_value(e));
|
||||||
}
|
}
|
||||||
|
|
|
@ -80,7 +80,7 @@ pic_list(pic_state *pic, size_t c, ...)
|
||||||
}
|
}
|
||||||
|
|
||||||
pic_value
|
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;
|
pic_value v;
|
||||||
size_t i;
|
size_t i;
|
||||||
|
@ -397,7 +397,7 @@ pic_pair_list(pic_state *pic)
|
||||||
|
|
||||||
pic_get_args(pic, "*", &argc, &argv);
|
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
|
static pic_value
|
||||||
|
|
|
@ -95,7 +95,7 @@ pic_proc_apply(pic_state *pic)
|
||||||
pic_error(pic, "apply: wrong number of arguments");
|
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
|
static pic_value
|
||||||
|
|
Loading…
Reference in New Issue