some similar functions
Tomaz Canabrava
tcanabrava at kde.org
Sat Nov 16 17:09:23 UTC 2013
I removed the first one ;p
but you can easily not apply my patch.
On Sat, Nov 16, 2013 at 10:56 PM, Dirk Hohndel <dirk at hohndel.org> wrote:
> On Sat, 2013-11-16 at 19:16 -0200, Tomaz Canabrava wrote:
> > int get_index_for_dive(struct dive *dive) {
> > int i;
> > struct dive *d;
> > for_each_dive(i, d)
> > if (d == dive)
> > return i;
> > return -1;
> > }
> >
> > int get_divenr(struct dive *dive)
> > {
> > int divenr = -1;
> > while (++divenr < dive_table.nr && get_dive(divenr) != dive)
> > ;
> > return divenr;
> > }
> >
> >
> > Safe to remove one of them both?
>
> Yes, funny we have two. I like the first one better :-)
>
> /D
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.hohndel.org/pipermail/subsurface/attachments/20131116/70ee51e7/attachment.html>
More information about the subsurface
mailing list