First stab at getting rid of the ugly state1, state2 properties of block_t

This commit is contained in:
ridiculousfish
2012-08-26 22:42:29 -07:00
parent b5e92a831b
commit 96046ffd30
5 changed files with 225 additions and 128 deletions

View File

@@ -452,8 +452,9 @@ static void event_fire_internal( const event_t *event )
proc_push_interactive(0);
prev_status = proc_get_last_status();
parser_t &parser = parser_t::principal_parser();
parser.push_block( EVENT );
parser.current_block->state1<const event_t *>() = event;
block_t *block = new event_block_t(event);
parser.push_block(block);
parser.eval( buffer, io_chain_t(), TOP );
parser.pop_block();
proc_pop_interactive();