diff options
author | 2006-10-05 09:32:06 +1000 | |
---|---|---|
committer | 2006-10-05 09:32:06 +1000 | |
commit | 873fd833073ddf1afa57db321e438e19d5e6186e (patch) | |
tree | 7131ced91fbe6367db5f425d0a93e8e6de77bbf7 /builtin.c | |
parent | d1078f8582bff8365d233664458c509305350f5c (diff) |
Drop the optional checking of block type for the end builtin
darcs-hash:20061004233206-ac50b-cf72c879b4b58c8e5ba4e1dff5c2746ca2e8844f.gz
Diffstat (limited to 'builtin.c')
-rw-r--r-- | builtin.c | 31 |
1 files changed, 0 insertions, 31 deletions
@@ -2759,37 +2759,6 @@ static int builtin_end( wchar_t **argv ) variables in the current loop scope won't die between laps. */ int kill_block = 1; - wchar_t *type = argv[1]; - if( type ) - { - int t = parser_get_block_type( type ); - if( t != current_block->type ) - { - if( t == -1 ) - { - sb_printf( sb_err, - BUILTIN_END_BLOCK_UNKNOWN, - argv[0], - type, - parser_get_block_command( current_block->type ) ); - } - else - { - sb_printf( sb_err, - BUILTIN_END_BLOCK_MISMATCH, - argv[0], - type, - parser_get_block_command( current_block->type ) ); - } - - builtin_print_help( argv[0], sb_err ); - return 1; - - - } - - } - switch( current_block->type ) { |