diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-01-07 13:13:10 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-01-07 14:10:44 -0800 |
commit | ab7aecf16e960c14c0f5e565bb75c68ee85e2928 (patch) | |
tree | c0cc30edcd13ab387637c13ea903ba2d1d8f1759 /dive.h | |
parent | e47e37e5a6eb5e4d1386d4b7f02d9997e22b39f1 (diff) | |
download | subsurface-ab7aecf16e960c14c0f5e565bb75c68ee85e2928.tar.gz |
Simplify dive planning code
This simplifies the dive planning code by:
- allowing empty gas mixes (which means "pick previous gas")
- avoiding unnecessary strdup/free calls (this requires us to handle
"const char *" in the parsers, but that was already true from a code
standpoint, just not a type one)
- re-use the "plan()" function for a successful dive plan, rather than
open-coding the dive plan segment handling.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'dive.h')
0 files changed, 0 insertions, 0 deletions