This is the official upstream of the Subsurface divelog program
Find a file
Linus Torvalds 9741913124 Start parsing gas mixes
The suunto xml is just completely crazy.  What's the helium percentage
companion to "o2pct"? Would it be "hepct"? No. It's "hepct_0".

Ok, so they didn't number the first o2pct, which could be seen as sane:
that's the only mix value that should always exist.  And they clearly
started their indexing with 0.  So with multiple mixes, you'd then
expect "o2pct_1" and "hepct_1", right?

Wrong! Because XML people are crazy, the second O2 mix percentage is
obviously "o2pct_2".  So the O2 percentages are one-based, with an
implicit one.  But the He percentages are zero-based with an explicit
zero.  So the second mix is "o2pct_2" and "hepct_1".

I'd like to ask what drugs Suunto people are on, but hey, it's a Finnish
company.  No need to ask.  Vodka explains everything.  LOTS AND LOTS OF
VODKA.

In comparison, the libdivecomputer output is nice and sane, and uses a
'gasmix' node.  Of course, now we have so many different XML nesting
nodes to check that I just made it an array of different noces.  That
also allows me to mark the suunto case, so that we only do the "check
for crazy alcoholic xml entries" when it's a suunto file.

The "type of file" thing is probably a good idea for deciding on default
units too. Some day.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2011-09-01 13:32:52 -07:00
dives Make the multi-dive files valid XML 2011-08-28 17:24:53 -07:00
.gitignore Add .gitignore file for current state 2011-08-30 18:42:57 -07:00
display.h Make the main display saner 2011-08-31 18:30:42 -07:00
dive.h Start parsing gas mixes 2011-09-01 13:32:52 -07:00
divelist.c Use a gtk table instead of hbox 2011-08-31 11:52:16 -07:00
info.c Add some extended dive info fields 2011-08-31 20:36:51 -07:00
main.c Add some extended dive info fields 2011-08-31 20:36:51 -07:00
Makefile Rename some files to be more appropriate 2011-09-01 10:09:53 -07:00
parse-xml.c Start parsing gas mixes 2011-09-01 13:32:52 -07:00
profile.c Do something half-way sane (no SIGSEGV) when there are no dives 2011-08-31 16:40:22 -07:00
README Rename some files to be more appropriate 2011-09-01 10:09:53 -07:00
scripts Start archiving the stupid XML files 2011-08-28 16:18:53 -07:00

Half-arsed divelog software in C.

I'm tired of java programs that don't work etc. 

License: GPLv2