[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: gEDA-user: Small patch to aid use of lib dmalloc



On Tue, 2010-12-07 at 10:04 +1100, Stephen Ecob wrote:

> Dropping the (a) ? (a) : 1 foolishness would be cleaner, but could
> expose latent bugs in the 71 callers of the mymem allocators.
> I'm happy to proceed either way.  What is your preference ?

Let me push a big patch nuking the My* allocation functions, that would
make me feel much happier.

There is of course the risk that it exposes a latent bug, but I'm
prepared to take that on my head.

The current BSD man pages suggest realloc and free should work with a
NULL pointer, and I'm pretty sure we have cases where we might call
free (NULL); directly elsewhere.


-- 
Peter Clifton

Electrical Engineering Division,
Engineering Department,
University of Cambridge,
9, JJ Thomson Avenue,
Cambridge
CB3 0FA

Tel: +44 (0)7729 980173 - (No signal in the lab!)
Tel: +44 (0)1223 748328 - (Shared lab phone, ask for me)



_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user