Add switch fo scope hiding in output of functions builtin

darcs-hash:20070922221920-75c98-7a17d24162a3fbdfd9c05690d2358511a3ca0281.gz
This commit is contained in:
liljencrantz 2007-09-23 08:19:20 +10:00
parent e1afe17671
commit e6b9955fc1

View file

@ -880,9 +880,9 @@ static void functions_def( wchar_t *name, string_buffer_t *out )
event_get( &search, &ev );
sb_append2( out,
L"function ",
name,
(void *)0);
L"function ",
name,
(void *)0);
if( desc && wcslen(desc) )
{
@ -892,6 +892,11 @@ static void functions_def( wchar_t *name, string_buffer_t *out )
free( esc_desc );
}
if( !function_get_shadows( name ) )
{
sb_append2( out, L" --no-scope-shadowing", (void *)0 );
}
for( i=0; i<al_get_count( &ev); i++ )
{
event_t *next = (event_t *)al_get( &ev, i );