summaryrefslogtreecommitdiffstats
path: root/generic/regcustom.h
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2010-02-01 10:32:53 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2010-02-01 10:32:53 (GMT)
commit214d974164837996607e1c9b4d04957d2f15343e (patch)
treef8f4588330768c3fc500d6c565c2e521c8c76da4 /generic/regcustom.h
parentc6ba244014f32c930a14f48a9dfdcd463b986167 (diff)
downloadtcl-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/regcustom.h')
-rw-r--r--generic/regcustom.h4
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