From 214d974164837996607e1c9b4d04957d2f15343e Mon Sep 17 00:00:00 2001 From: dkf Date: Mon, 1 Feb 2010 10:32:53 +0000 Subject: Use attemptckalloc instead of ckalloc; RE engine knows how to deal with failure --- generic/regcustom.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/generic/regcustom.h b/generic/regcustom.h index ac33087..2f30ffd 100644 --- a/generic/regcustom.h +++ b/generic/regcustom.h @@ -37,9 +37,9 @@ */ #define FUNCPTR(name, args) (*name)args -#define MALLOC(n) ckalloc(n) +#define MALLOC(n) VS(attemptckalloc(n)) #define FREE(p) ckfree(VS(p)) -#define REALLOC(p,n) ckrealloc(VS(p),n) +#define REALLOC(p,n) VS(attemptckrealloc(VS(p),n)) /* * Do not insert extras between the "begin" and "end" lines - this chunk is -- cgit v0.12