]> git.tdb.fi Git - ext/subsurface.git/commit
Start cleaning up dive accessors
authorLinus Torvalds <torvalds@linux-foundation.org>
Wed, 31 Aug 2011 23:33:20 +0000 (16:33 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 31 Aug 2011 23:33:20 +0000 (16:33 -0700)
commit00d798854aa2594b819f50dc135efca96a93adb9
tree7ffccc25fb47c287c7677fc965d29c4e5ae69913
parentc17300cfaa7dcc95b70112281491b8fb1a530f8e
Start cleaning up dive accessors

I'm going to add a menu to import (and eventually export) dives, and so
we'd like to be able to start out with no dives at all.  Right now we
croak if that happens - it's not like the code has been written with
actual end users in mind.

So start cleaning things up.  First make the 'current_dive' macro work
right even for invalid dives.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
display.h
dive.h