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:10:29 +0800 |
commit | 9c06938adcc7670201ed5e94ca2c35ec18702373 (patch) | |
tree | 07dc0c541edd0e11314e969174487610bf843d0c /dive.h | |
parent | c32c28d40b627fa08051697f44a829c7f19854d0 (diff) | |
download | subsurface-9c06938adcc7670201ed5e94ca2c35ec18702373.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
@@ -818,6 +818,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" |