From aeef3dc501dd598e5b3dea3fc5d1552a032d3917 Mon Sep 17 00:00:00 2001 From: Mark H Weaver Date: Sat, 30 Mar 2013 23:09:01 -0400 Subject: [PATCH 1/3] Add 'scm_gc_typed_calloc' macro. * libguile/gc.h (scm_gc_typed_calloc): New macro. --- libguile/gc.h | 1 + 1 file changed, 1 insertion(+) diff --git a/libguile/gc.h b/libguile/gc.h index 9f00e01..c6f7a4b 100644 --- a/libguile/gc.h +++ b/libguile/gc.h @@ -207,6 +207,7 @@ SCM_API char *scm_gc_strdup (const char *str, const char *what) SCM_API char *scm_gc_strndup (const char *str, size_t n, const char *what) SCM_MALLOC; +#define scm_gc_typed_calloc(t) ((t *) scm_gc_calloc (sizeof (t), #t)) #ifdef BUILDING_LIBGUILE #include "libguile/bdw-gc.h" -- 1.7.10.4