mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-31 12:21:19 -03:00
Second checkin of halloc changeover. Make the argv array, but not it's contents, be allocated using halloc. Also make list_to_char_arr use halloc
darcs-hash:20060206151817-ac50b-e8fd4cff831ee975c5bf3855d9ecfc15a3fb9215.gz
This commit is contained in:
6
parser.c
6
parser.c
@@ -1376,7 +1376,7 @@ static void parse_job_main_loop( process_t *p,
|
||||
return;
|
||||
}
|
||||
p->pipe_fd = wcstol( tok_last( tok ), 0, 10 );
|
||||
p->argv = list_to_char_arr( args );
|
||||
p->argv = list_to_char_arr( j, args );
|
||||
p->next = halloc( j, sizeof( process_t ) );
|
||||
if( p->next == 0 )
|
||||
{
|
||||
@@ -1398,7 +1398,7 @@ static void parse_job_main_loop( process_t *p,
|
||||
|
||||
case TOK_END:
|
||||
{
|
||||
p->argv = list_to_char_arr( args );
|
||||
p->argv = list_to_char_arr( j, args );
|
||||
if( tok_has_next(tok))
|
||||
tok_next(tok);
|
||||
|
||||
@@ -2089,7 +2089,7 @@ static int parse_job( process_t *p,
|
||||
{
|
||||
if( p->type == INTERNAL_BUILTIN && parser_skip_arguments( (wchar_t *)al_get(&args, 0) ) )
|
||||
{
|
||||
p->argv = list_to_char_arr( &args );
|
||||
p->argv = list_to_char_arr( j, &args );
|
||||
// tok_next(tok);
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user