Further halloc:ification if fish

darcs-hash:20060206181101-ac50b-db0aac307a81e7f0677acd15a9f38ff8c7ff36d2.gz
This commit is contained in:
axel
2006-02-07 04:11:01 +10:00
parent 4e77ee4516
commit 57d53c70e3
10 changed files with 113 additions and 172 deletions

4
exec.c
View File

@@ -792,7 +792,7 @@ void exec( job_t *j )
int i;
string_buffer_t sb;
wchar_t * def = halloc_wcsdup( j, function_get_definition( p->argv[0] ));
wchar_t * def = halloc_register( j, wcsdup( function_get_definition( p->argv[0] )));
//fwprintf( stderr, L"run function %ls\n", argv[0] );
if( def == 0 )
{
@@ -803,7 +803,7 @@ void exec( job_t *j )
parser_push_block( FUNCTION_CALL );
current_block->param2.function_call_process = p;
current_block->param1.function_name = wcsdup( p->argv[0] );
current_block->param1.function_name = halloc_register( current_block, wcsdup( p->argv[0] ) );
if( builtin_count_args(p->argv)>1 )
{