[PATCH 1/4] dive.h: add a 'unsafe' variant of FOR_EACH_PICTURE

Lubomir I. Ivanov neolit123 at gmail.com
Tue Oct 28 07:58:38 PDT 2014

On 28 October 2014 16:38, Dirk Hohndel <dirk at 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.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-dive.h-add-a-variant-of-FOR_EACH_PICTURE.patch
Type: application/octet-stream
Size: 1598 bytes
Desc: not available
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20141028/d4d5e26b/attachment.obj>

More information about the subsurface mailing list