inline-expand a small function

This commit is contained in:
Yuichi Nishiwaki 2014-02-12 10:42:17 +09:00
parent 013d734033
commit 9cf7d72e82
1 changed files with 1 additions and 10 deletions

View File

@ -61,12 +61,6 @@ pic_core_syntactic_env(pic_state *pic)
#undef register_core_syntax
static struct pic_senv *
new_global_senv(pic_state *pic)
{
return pic->lib->senv;
}
static struct pic_senv *
new_local_senv(pic_state *pic, pic_value formals, struct pic_senv *up)
{
@ -553,18 +547,15 @@ macroexpand_list(pic_state *pic, pic_value list, struct pic_senv *senv)
pic_value
pic_macroexpand(pic_state *pic, pic_value expr)
{
struct pic_senv *senv;
pic_value v;
senv = new_global_senv(pic);
#if DEBUG
puts("before expand:");
pic_debug(pic, expr);
puts("");
#endif
v = macroexpand(pic, expr, senv);
v = macroexpand(pic, expr, pic->lib->senv);
#if DEBUG
puts("after expand:");