diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2010-02-01 10:32:53 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2010-02-01 10:32:53 (GMT) |
commit | 214d974164837996607e1c9b4d04957d2f15343e (patch) | |
tree | f8f4588330768c3fc500d6c565c2e521c8c76da4 /generic | |
parent | c6ba244014f32c930a14f48a9dfdcd463b986167 (diff) | |
download | tcl-214d974164837996607e1c9b4d04957d2f15343e.zip tcl-214d974164837996607e1c9b4d04957d2f15343e.tar.gz tcl-214d974164837996607e1c9b4d04957d2f15343e.tar.bz2 |
Use attemptckalloc instead of ckalloc; RE engine knows how to deal with failure
Diffstat (limited to 'generic')
-rw-r--r-- | generic/regcustom.h | 4 |
1 files 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 |