bind-stack allocate CST iterate

This commit is contained in:
John Kerl 2016-10-14 16:52:36 -04:00
parent cfee7b607f
commit 8a118c820a
2 changed files with 1 additions and 15 deletions

View file

@ -283,11 +283,6 @@ void mlr_dsl_cst_handle_top_level_statement_block(
variables_t* pvars,
cst_outputs_t* pcst_outputs);
void mlr_dsl_cst_handle_statement_block( // xxx rm
sllv_t* pcst_block, // block bodies for begin, main, end; cond, if, for, while
variables_t* pvars,
cst_outputs_t* pcst_outputs);
// Recursive entry point: block bodies for begin, main, end; cond, if, for, while.
void mlr_dsl_cst_handle_statement_list( // xxx rename to handle statement block
sllv_t* pcst_statements,

View file

@ -2068,17 +2068,8 @@ void mlr_dsl_cst_handle_top_level_statement_block(
}
// ================================================================
// xxx copy to ..._for_filter
// xxx rename to ..._for_put
void mlr_dsl_cst_handle_statement_block(
sllv_t* pcst_block,
variables_t* pvars,
cst_outputs_t* pcst_outputs)
{
mlr_dsl_cst_handle_statement_list(pcst_block, pvars, pcst_outputs);
bind_stack_clear(pvars->pbind_stack); // clear the baseframe
}
// xxx whack
// This is for statement lists not recursively contained within a loop body -- including the
// main/begin/end statements. Since there is no containing loop body, there is no need to check