From a6c00ca0d289f7305b1fe40ae8d0fbc55ac0a417 Mon Sep 17 00:00:00 2001 From: axel Date: Sun, 29 Oct 2006 02:44:48 +1000 Subject: [PATCH] Minor edits darcs-hash:20061028164448-ac50b-c53d5f235d01db3a11b01996b77411a213dc5303.gz --- builtin.c | 8 +++++--- common.h | 8 ++++---- parser.c | 10 +++++----- 3 files changed, 14 insertions(+), 12 deletions(-) diff --git a/builtin.c b/builtin.c index 14277775c..0093aa859 100644 --- a/builtin.c +++ b/builtin.c @@ -2875,15 +2875,15 @@ static int builtin_case( wchar_t **argv ) const static builtin_data_t builtin_data[]= { { - L"exit", &builtin_exit, N_( L"Exit the shell" ) + L"exit", &builtin_exit, N_( L"Exit the shell" ) } , { - L"block", &builtin_block, N_( L"Temporarily block delivery of events" ) + L"block", &builtin_block, N_( L"Temporarily block delivery of events" ) } , { - L"builtin", &builtin_builtin, N_( L"Run a builtin command instead of a function" ) + L"builtin", &builtin_builtin, N_( L"Run a builtin command instead of a function" ) } , { @@ -3085,6 +3085,8 @@ int builtin_exists( wchar_t *cmd ) */ static int internal_help( wchar_t *cmd ) { + CHECK( cmd, 0 ); + if( wcscmp( cmd, L"for" ) == 0 || wcscmp( cmd, L"while" ) == 0 || wcscmp( cmd, L"function" ) == 0 || diff --git a/common.h b/common.h index 1f31d5479..b787fbe97 100644 --- a/common.h +++ b/common.h @@ -78,9 +78,9 @@ extern wchar_t *program_name; if( !(arg) ) \ { \ debug( 1, \ - L"function %s called with null value for argument %s. " \ - L"This is a bug. " \ - L"If you can reproduce it, please send a bug report to %s.", \ + _( L"function %s called with null value for argument %s. " \ + L"This is a bug. " \ + L"If you can reproduce it, please send a bug report to %s." ), \ __func__, \ #arg, \ PACKAGE_BUGREPORT ); \ @@ -96,7 +96,7 @@ extern wchar_t *program_name; fwprintf( stderr, L"fish: Out of memory on line %d of file %s, shutting down fish\n", __LINE__, __FILE__ ); \ exit(1); \ } \ - + /** Shorthand for wgettext call */ diff --git a/parser.c b/parser.c index 16845f697..e5c0c1fdc 100644 --- a/parser.c +++ b/parser.c @@ -1321,10 +1321,10 @@ int parser_is_help( wchar_t *s, int min_match ) \param tok the tokenizer to read options from \param args the argument list to insert options into */ -static void parse_job_main_loop( process_t *p, - job_t *j, - tokenizer *tok, - array_list_t *args ) +static void parse_job_argument_list( process_t *p, + job_t *j, + tokenizer *tok, + array_list_t *args ) { int is_finished=0; @@ -2193,7 +2193,7 @@ static int parse_job( process_t *p, } else { - parse_job_main_loop( p, j, tok, args ); + parse_job_argument_list( p, j, tok, args ); } }