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:
axel
2006-02-07 01:18:17 +10:00
parent e756f7d619
commit 6291be256b
7 changed files with 22 additions and 20 deletions

View File

@@ -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