On 28 October 2014 16:38, Dirk Hohndel <d...@hohndel.org> wrote: > On Tue, Oct 28, 2014 at 01:35:13PM +0200, Lubomir I. Ivanov wrote: > So if this warning really keeps you up at night (just kidding) I'll > propose this: create a second macro > > FOR_EACH_PICTURE_NON_PTR(_divestruct) \ > for (struct picture *picture = (_divestruct).picture_list; picture; > picture = picture->next) > > and pass the structure to it instead of a pointer to the structure >
patch update attached, with this variation of the macro. lubomir --
0001-dive.h-add-a-variant-of-FOR_EACH_PICTURE.patch
Description: Binary data
_______________________________________________ subsurface mailing list subsurface@subsurface-divelog.org http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface