Drop validation of function code on new function definition - the code has already been validated

darcs-hash:20060602021757-ac50b-02bad63baf4826801ec0433468ec78d9b4a4c0f7.gz
This commit is contained in:
axel 2006-06-02 12:17:57 +10:00
parent a1a2773cbf
commit 6fada015b6

View File

@ -2500,16 +2500,11 @@ static int builtin_end( wchar_t **argv )
wchar_t *def = wcsndup( parser_get_buffer()+current_block->tok_pos,
parser_get_job_pos()-current_block->tok_pos );
//fwprintf( stderr, L"Function: %ls\n", def );
if( !is_interactive || !parser_test( def, sb_err, argv[0] ) )
{
function_add( current_block->param1.function_name,
def,
current_block->param2.function_description,
current_block->param4.function_events,
current_block->param3.function_is_binding );
}
function_add( current_block->param1.function_name,
def,
current_block->param2.function_description,
current_block->param4.function_events,
current_block->param3.function_is_binding );
free(def);
}