Use GCC's `malloc' attribute for malloc-like routines.
authorLudovic Courtès <ludo@gnu.org>
Fri, 28 May 2010 13:29:12 +0000 (15:29 +0200)
committerLudovic Courtès <ludo@gnu.org>
Fri, 28 May 2010 15:02:13 +0000 (17:02 +0200)
commite3401c659eeb43e72f408a2cf9bdbe7ec9d14f12
tree52c5ffdc007083798cb793697297e8edfcfe80c8
parent18dcd80e37d52d8406f02c8b2369b67692057cfd
Use GCC's `malloc' attribute for malloc-like routines.

* libguile/__scm.h (SCM_MALLOC): New macro.

* libguile/gc.h (scm_malloc, scm_calloc, scm_strdup, scm_strndup,
  scm_gc_malloc_pointerless, scm_gc_calloc, scm_gc_malloc,
  scm_gc_strdup, scm_gc_strndup): Mark as `SCM_MALLOC'.
libguile/__scm.h
libguile/gc.h