Re: [PATCH 1/2] Introduce leaky().
On Tue, Jun 24, 2008 at 09:28:30PM +0000, Jakub Narebski wrote:
Show 8 quoted lines
> Pierre Habouzit <madcoder@debian.org> writes:
>
> > diff --git a/Makefile b/Makefile
>
> > +#
> > +# Define COLLECT_LEAKS_AT_EXIT if you want memory marked as leaky() at exit.
>
> I think s/at exit/to be freed &/;
> > diff --git a/cache.h b/cache.h
>
> Hmmm... cache?
well cache.h has the prototypes for alloc.c that feels like the proper
place, but I don't care much :)
Show 12 quoted lines
> > /* alloc.c */
> > +#ifdef COLLECT_LEAKS_AT_EXIT
> > +extern void *leaky(void *);
> > +#else
> > +# define leaky(x) x
> > +#endif
>
> Not
>
> +# define leaky(x) (x)
>
> to be careful?
--
·O· Pierre Habouzit
··O madcoder@debian.org
OOO http://www.madism.org