mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-07 10:01:14 -03:00
Switch from die_mem function to DIE_MEM macro in order to be able to give a line and file for the OOM message
darcs-hash:20060703103957-ac50b-8d7a860d931fd087f6d1759bc1e934dba1cfefe2.gz
This commit is contained in:
@@ -481,7 +481,7 @@ static int builtin_block( wchar_t **argv )
|
||||
event_block_t *eb = malloc( sizeof( event_block_t ) );
|
||||
|
||||
if( !eb )
|
||||
die_mem();
|
||||
DIE_MEM();
|
||||
|
||||
eb->type = type;
|
||||
|
||||
@@ -1112,7 +1112,7 @@ static int builtin_function( wchar_t **argv )
|
||||
|
||||
e = halloc( current_block, sizeof(event_t));
|
||||
if( !e )
|
||||
die_mem();
|
||||
DIE_MEM();
|
||||
e->type = EVENT_SIGNAL;
|
||||
e->param1.signal = sig;
|
||||
e->function_name=0;
|
||||
@@ -1136,7 +1136,7 @@ static int builtin_function( wchar_t **argv )
|
||||
|
||||
e = halloc( current_block, sizeof(event_t));
|
||||
if( !e )
|
||||
die_mem();
|
||||
DIE_MEM();
|
||||
e->type = EVENT_VARIABLE;
|
||||
e->param1.variable = halloc_wcsdup( current_block, woptarg );
|
||||
e->function_name=0;
|
||||
@@ -1153,7 +1153,7 @@ static int builtin_function( wchar_t **argv )
|
||||
|
||||
e = halloc( current_block, sizeof(event_t));
|
||||
if( !e )
|
||||
die_mem();
|
||||
DIE_MEM();
|
||||
|
||||
if( ( opt == 'j' ) &&
|
||||
( wcscasecmp( woptarg, L"caller" ) == 0 ) )
|
||||
|
||||
Reference in New Issue
Block a user