On Mon, 6 Jun 2011 02:10:10 -0700 Andrew Poelstra <as...@sfu.ca> wrote:
> There are two leaks I fixed: > > 1. ENDALL_LOOP did not free memory. Now it does. > > 2. If you return early from a list using the macro.h macros, > list memory is not freed. I added an END_LOOP_EARLY macro > to handle this. However, there are a few problems with > this approach: > > a. It isn't obvious, especially to new devs, that you > need to prefix all early returns with this macro. > Plus, it's ugly. > > b. It only works on 1-level-deep loops. Supporting double- > or higher nesting will be very difficult with the current > macro setup. > > I dunno what should be done about this. I do: C++. Automatic destruction is your friend. <ducks and runs> :-) Regards, Colin _______________________________________________ geda-user mailing list geda-user@moria.seul.org http://www.seul.org/cgi-bin/mailman/listinfo/geda-user