mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
Smaller edits
darcs-hash:20060124181410-ac50b-4ec9e2990852a678de7d47a565ed41780b5279fc.gz
This commit is contained in:
parent
452558624c
commit
18d06cf10f
2 changed files with 9 additions and 20 deletions
13
builtin.c
13
builtin.c
|
@ -277,14 +277,10 @@ static int builtin_block( wchar_t **argv )
|
|||
;
|
||||
|
||||
int scope=UNSET;
|
||||
|
||||
int erase = 0;
|
||||
|
||||
int argc=builtin_count_args( argv );
|
||||
|
||||
int type = (1<<EVENT_ANY);
|
||||
|
||||
|
||||
woptind=0;
|
||||
|
||||
const static struct woption
|
||||
|
@ -645,7 +641,7 @@ static int builtin_exec( wchar_t **argv )
|
|||
}
|
||||
|
||||
/**
|
||||
Print the definitions of the given function to sb_out
|
||||
Print the definition of the given function to sb_out
|
||||
stringbuffer. Used by the functions builtin.
|
||||
*/
|
||||
static void functions_def( wchar_t *name )
|
||||
|
@ -932,7 +928,6 @@ static int builtin_functions( wchar_t **argv )
|
|||
for( i=0; i<al_get_count( &names ); i++ )
|
||||
{
|
||||
functions_def( names_arr[i] );
|
||||
|
||||
}
|
||||
free( names_arr );
|
||||
al_destroy( &names );
|
||||
|
@ -941,7 +936,6 @@ static int builtin_functions( wchar_t **argv )
|
|||
|
||||
default:
|
||||
{
|
||||
|
||||
for( i=woptind; i<argc; i++ )
|
||||
{
|
||||
if( !function_exists( argv[i] ) )
|
||||
|
@ -952,13 +946,11 @@ static int builtin_functions( wchar_t **argv )
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
return res;
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -966,8 +958,6 @@ static int builtin_functions( wchar_t **argv )
|
|||
*/
|
||||
static int wcsbindingname( wchar_t *str )
|
||||
{
|
||||
|
||||
|
||||
while( *str )
|
||||
{
|
||||
if( (!iswalnum(*str)) && (*str != L'-' ) )
|
||||
|
@ -1066,7 +1056,6 @@ static int builtin_function( wchar_t **argv )
|
|||
res = 1;
|
||||
break;
|
||||
|
||||
|
||||
case 'd':
|
||||
desc=woptarg;
|
||||
break;
|
||||
|
|
2
env.c
2
env.c
|
@ -305,7 +305,7 @@ static void handle_locale()
|
|||
++_nl_msg_cat_cntr;
|
||||
}
|
||||
#elif HAVE_DCGETTEXT
|
||||
dcgettext("fish","",LC_MESSAGES);
|
||||
dcgettext("fish","Changing language to English",LC_MESSAGES);
|
||||
#endif
|
||||
|
||||
if( is_interactive )
|
||||
|
|
Loading…
Reference in a new issue