stx->sym property is no longer used

This commit is contained in:
Yuichi Nishiwaki 2014-02-12 11:02:59 +09:00
parent 3d97e7f749
commit 6b69e8e74b
2 changed files with 3 additions and 5 deletions

View File

@ -17,7 +17,6 @@ struct pic_senv {
struct pic_syntax {
PIC_OBJECT_HEADER
pic_sym sym;
struct pic_proc *macro;
struct pic_senv *senv;
};

View File

@ -60,12 +60,11 @@ new_local_senv(pic_state *pic, pic_value formals, struct pic_senv *up)
}
struct pic_syntax *
syntax_new(pic_state *pic, pic_sym sym, struct pic_proc *macro, struct pic_senv *mac_env)
syntax_new(pic_state *pic, struct pic_proc *macro, struct pic_senv *mac_env)
{
struct pic_syntax *stx;
stx = (struct pic_syntax *)pic_obj_alloc(pic, sizeof(struct pic_syntax), PIC_TT_SYNTAX);
stx->sym = sym;
stx->senv = mac_env;
stx->macro = macro;
return stx;
@ -152,9 +151,9 @@ defsyntax(pic_state *pic, pic_sym sym, struct pic_proc *macro, struct pic_senv *
struct pic_syntax *stx;
pic_sym uniq;
uniq = pic_gensym(pic, sym);
stx = syntax_new(pic, sym, macro, mac_env);
stx = syntax_new(pic, macro, mac_env);
uniq = pic_gensym(pic, sym);
xh_put_int(pic->lib->senv->name, sym, uniq);
xh_put_int(pic->macros, uniq, (long)stx);
}