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:
axel
2006-07-03 20:39:57 +10:00
parent 38175cdd30
commit d56ab1d365
24 changed files with 77 additions and 84 deletions

View File

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