diff options
author | axel <axel@liljencrantz.se> | 2006-07-03 20:39:57 +1000 |
---|---|---|
committer | axel <axel@liljencrantz.se> | 2006-07-03 20:39:57 +1000 |
commit | d56ab1d365e6d54535f5942c323c36baebaa7e65 (patch) | |
tree | a1b31411698d88391d6ad7460beea99f31f0877a /builtin.c | |
parent | 38175cdd30cb4897ee3fda8c9afcd9f23d0525f4 (diff) |
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
Diffstat (limited to 'builtin.c')
-rw-r--r-- | builtin.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 ) ) |