Fix typo in user message, remove a few warnings, minor indentation edits

darcs-hash:20070109025356-ac50b-328e42b8898bbc9b40b4841a032ae7871dba9e13.gz
This commit is contained in:
axel 2007-01-09 12:53:56 +10:00
parent d8b5cc6717
commit 602eac89c4
3 changed files with 10 additions and 10 deletions

View file

@ -219,19 +219,19 @@ wchar_t *builtin_help_get( const wchar_t *name )
sb_printf( &cmd, L"__fish_print_help %ls", name_esc );
exec_subshell( (wchar_t *)cmd.buff, &lst );
for( i=0; i<al_get_count( &lst); i++ )
{
sb_append( out, (wchar_t *)al_get( &lst, i ) );
sb_append( out, L"\n" );
if( exec_subshell( (wchar_t *)cmd.buff, &lst ) >= 0 )
{
for( i=0; i<al_get_count( &lst); i++ )
{
sb_append( out, (wchar_t *)al_get( &lst, i ) );
sb_append( out, L"\n" );
}
}
al_destroy( &lst );
sb_destroy( &cmd );
free( name_esc );
return (wchar_t *)out->buff;
}

View file

@ -1678,7 +1678,7 @@ wint_t input_readch()
int i;
CHECK_BLOCK();
CHECK_BLOCK( R_NULL );
/*
Clear the interrupted flag

View file

@ -130,7 +130,7 @@ The fish parser. Contains functions for parsing and evaluating code.
/**
Error when using return builtin outside of function definition
*/
#define INVALID_RETURN_ERR_MSG _( L"'return' command command outside of function definition" )
#define INVALID_RETURN_ERR_MSG _( L"'return' builtin command outside of function definition" )
/**
Error when using else builtin outside of if block