fix sfs for module(!)
svn: r8602
This commit is contained in:
parent
a1b8ba51ad
commit
7ba3c6d79b
|
@ -3250,7 +3250,7 @@ Scheme_Object *scheme_optimize_shift(Scheme_Object *expr, int delta, int after_d
|
|||
/*========================================================================*/
|
||||
|
||||
/* For debugging and measuring the worst-case cost of sfs clears: */
|
||||
#define MAX_SFS_CLEARING 0
|
||||
#define MAX_SFS_CLEARING 1
|
||||
|
||||
#define SFS_LOG(x) /* nothing */
|
||||
|
||||
|
@ -3258,6 +3258,8 @@ Scheme_Object *scheme_sfs(Scheme_Object *o, SFS_Info *info, int max_let_depth)
|
|||
{
|
||||
int init, i;
|
||||
|
||||
SFS_LOG(printf("sfs %d\n", SCHEME_TYPE(o)));
|
||||
|
||||
if (!info) {
|
||||
info = scheme_new_sfs_info(max_let_depth);
|
||||
}
|
||||
|
|
|
@ -4637,7 +4637,9 @@ module_sfs(Scheme_Object *data, SFS_Info *old_info)
|
|||
|
||||
info = scheme_new_sfs_info(m->max_let_depth);
|
||||
info->for_mod = 1;
|
||||
scheme_sfs(data, info, m->max_let_depth);
|
||||
scheme_sfs(scheme_make_syntax_resolved(MODULE_EXPD, data),
|
||||
info,
|
||||
m->max_let_depth);
|
||||
return data;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user