aboutsummaryrefslogtreecommitdiffhomepage
path: root/parse_util.c
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2006-07-03 20:39:57 +1000
committerGravatar axel <axel@liljencrantz.se>2006-07-03 20:39:57 +1000
commitd56ab1d365e6d54535f5942c323c36baebaa7e65 (patch)
treea1b31411698d88391d6ad7460beea99f31f0877a /parse_util.c
parent38175cdd30cb4897ee3fda8c9afcd9f23d0525f4 (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 'parse_util.c')
-rw-r--r--parse_util.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/parse_util.c b/parse_util.c
index 2209c3a6..f413f751 100644
--- a/parse_util.c
+++ b/parse_util.c
@@ -274,7 +274,7 @@ static void job_or_process_extent( const wchar_t *buff,
if( !buffcpy )
{
- die_mem();
+ DIE_MEM();
}
for( tok_init( &tok, buffcpy, TOK_ACCEPT_UNFINISHED );
@@ -376,7 +376,7 @@ void parse_util_token_extent( const wchar_t *buff,
if( !buffcpy )
{
- die_mem();
+ DIE_MEM();
}
for( tok_init( &tok, buffcpy, TOK_ACCEPT_UNFINISHED );
@@ -527,7 +527,7 @@ int parse_util_load( const wchar_t *cmd,
halloc_register_function_void( global_context, &parse_util_destroy );
if( !all_loaded )
{
- die_mem();
+ DIE_MEM();
}
hash_init( all_loaded, &hash_wcs_func, &hash_wcs_cmp );
}
@@ -539,7 +539,7 @@ int parse_util_load( const wchar_t *cmd,
loaded = malloc( sizeof( hash_table_t ) );
if( !loaded )
{
- die_mem();
+ DIE_MEM();
}
hash_init( loaded, &hash_wcs_func, &hash_wcs_cmp );
hash_put( all_loaded, wcsdup(path_var_name), loaded );
@@ -598,7 +598,7 @@ int parse_util_load( const wchar_t *cmd,
{
tm = malloc(sizeof(time_t)*2);
if( !tm )
- die_mem();
+ DIE_MEM();
}
tm[0] = buf.st_mtime;
@@ -632,7 +632,7 @@ int parse_util_load( const wchar_t *cmd,
{
tm = malloc(sizeof(time_t)*2);
if( !tm )
- die_mem();
+ DIE_MEM();
tm[0] = 0;
tm[1] = time(0);
@@ -675,7 +675,7 @@ wchar_t *parse_util_unescape_wildcards( const wchar_t *str )
wchar_t *unescaped = wcsdup(str);
if( !unescaped )
- die_mem();
+ DIE_MEM();
for( in=out=unescaped; *in; in++ )
{