Correct minor typos, stupid error messages, indentation and drop unused variable.

darcs-hash:20070921140752-75c98-74318b9daffa071845187bcc0b72259ca37b7e18.gz
This commit is contained in:
liljencrantz 2007-09-22 00:07:52 +10:00
parent d2d397d9eb
commit 084c0c5f80
4 changed files with 10 additions and 13 deletions

2
exec.c
View file

@ -1324,8 +1324,6 @@ void exec( job_t *j )
( !sb_err->used ) &&
( !p->next );
int has_file_redirect = 0;
/*
If the output of a builtin is to be sent to an internal
buffer, there is no need to fork. This helps out the

View file

@ -145,7 +145,7 @@ static int indent( string_buffer_t *out, wchar_t *in, int flags )
case TOK_PIPE:
{
sb_append( out, L"| " );
sb_append( out, L" | " );
is_command = 1;
break;
}
@ -202,7 +202,7 @@ static int indent( string_buffer_t *out, wchar_t *in, int flags )
default:
{
debug( 0, L"Unknown wha? %ls", last );
debug( 0, L"Unknown token '%ls'", last );
exit(1);
}
}
@ -282,10 +282,10 @@ int main( int argc, char **argv )
int opt_index = 0;
int opt = getopt_long( argc,
argv,
GETOPT_STRING,
long_options,
&opt_index );
argv,
GETOPT_STRING,
long_options,
&opt_index );
if( opt == -1 )
break;

View file

@ -42,10 +42,9 @@
#define VAR_COUNT ( sizeof(highlight_var)/sizeof(wchar_t *) )
static void highlight_universal_internal( wchar_t * buff,
int *color,
int pos,
array_list_t *error );
int *color,
int pos,
array_list_t *error );
/**
The environment variables used to specify the color of different tokens.

View file

@ -1,5 +1,5 @@
/** \file input.c
a
Functions for reading a character of input from stdin, using the
inputrc information for key bindings.