diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-01-09 08:49:21 +0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-01-09 09:31:19 +0800 |
commit | 110c07e27b61cacacf4daba3a4606974c995721d (patch) | |
tree | 305e887c92238b58ad67f896e013394368a112f4 /dive.h | |
parent | 0d93470c50e6ebaa0128ba182a94090d6d000278 (diff) | |
download | subsurface-110c07e27b61cacacf4daba3a4606974c995721d.tar.gz |
Add unit-aware conversion of pressure data
This just adds (and uses) a string_to_pressure() to parse pressure units
correctly when filling in cylinder pressures.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'dive.h')
-rw-r--r-- | dive.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -801,6 +801,7 @@ extern double strtod_flags(const char *str, const char **ptr, unsigned int flags extern weight_t string_to_weight(const char *str); extern depth_t string_to_depth(const char *str); +extern pressure_t string_to_pressure(const char *str); #include "pref.h" |