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

@@ -758,11 +758,9 @@ void exec( parser_t &parser, job_t *j )
debug( 0, _( L"Unknown function '%ls'" ), p->argv0() );
break;
}
parser.push_block( shadows?FUNCTION_CALL:FUNCTION_CALL_NO_SHADOW );
parser.current_block->state2<process_t *>() = p;
parser.current_block->state1<wcstring>() = p->argv0();
function_block_t *newv = new function_block_t(p, p->argv0(), shadows);
parser.push_block( newv );
/*
set_argv might trigger an event